-
We have a custom More specifically, we have something like
In Python, if I initialize with nlist_1 and nlist_2 reference the same NeighborList object
and run with
Everything is OK. However, as long as nlist1 and nlist2 reference different NeighborList objects:
Running |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Please build in debug mode and share a backtrace. Even without your code, I might notice something suspicious. I'm not aware of any issues with deepcopy -- but could you also try
to see if that helps? The unit tests instantiate hundreds of neighbor lists when they are run without problems. |
Beta Was this translation helpful? Give feedback.
If the backtrace ends in your
Stokes.cc
file then I would guess thatnlist_res
is a null pointer. You can confirm by printing out the pointer, either in gdb or in the code itself.Did you configure the Python side of your code to attach the 2nd nlist? That is the point that the C++ objects are created.