How to disable half storage mode in nlist (Python api) #1962
-
Hi I need the neighborlist to add a custom force based on the local density of particles in my simulation. I am using
These are the results or time step 0 and 1. I believe the reason why only half of the neighbors are considered in the next time step might be related to the half_nlist property being on, But I could not find a way to change this. Could you please help me understand what might be the solution? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
The |
Beta Was this translation helpful? Give feedback.
-
Thanks for your response. Are there any workarounds? Can i change something in the source code to run on CPU but access the full neighbor list? |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer. I'm trying to run the same code on GPU and it works but sometimes I get the following error:
My code:
Thanks for your help in advance. |
Beta Was this translation helpful? Give feedback.
No, there are no workarounds. Your proposed change to the
NeighborList
code would break pair force computations and many otherNeighborList
consumers.