Using neighbor_modify delay and every together

Dear lammps users,

After reading the documentation, it’s not clear to me ​
​what the combination of “delay” and “every” entails for neighbor list build period. In:

neighbor_modify delay 3 every 5​

​Does it mean the list is built every 5 steps or every 5+3=8 steps?

In:
neighbor_modify delay 5 every 3

Does it mean the list is built every 6 steps (n*every > delay), or again, 8 steps?

Thanks in advance!

-Jose​

Dear lammps users,

After reading the documentation, it's not clear to me
what the combination of "delay" and "every" entails for neighbor list build
period. In:
neighbor_modify delay 3 every 5

Does it mean the list is built every 5 steps or every 5+3=8 steps?
In:
neighbor_modify delay 5 every 3
Does it mean the list is built every 6 steps (n*every > delay), or again, 8
steps?

neither of those two choices are valid. delay has to be a multiplier
of every. also, you are neglecting the effect of the check yes/no
flag.

every is the frequency at that the neighbor list rebuild code is
entered, if the number of steps since the last rebuild is less then
delay, nothing happens. if it is equal or more, then it depends on the
check flag. if check is no, the lists are rebuilt. if check is yes,
the code determines the distance since the last rebuild each atom has
traveled. if it is less than half of the neighbor list skin, no
rebuild is done, otherwise it is done.

it is all in the docs. check it out and please read all the way to the
bottom. ;-).

http://lammps.sandia.gov/doc/neigh_modify.html

Dear lammps users,

After reading the documentation, it’s not clear to me ​
​what the combination of “delay” and “every” entails for neighbor list build period. In:
neighbor_modify delay 3 every 5​

​Does it mean the list is built every 5 steps or every 5+3=8 steps?

Every 5 steps, starting from the third step.

In:
neighbor_modify delay 5 every 3

Every 3 steps, starting from the fifth step.

Ray

I didn’t read the Restriction at the bottom of the page, my bad.

Thanks for the clarification.