I am getting Nan when using fix box/relax with the 17 Jan 2017 version. I am attaching a short input file along with the potential so you (hopefully) can reproduce the error. The potential is an EAM, and the input used to work fine with previous (before 9 Jan 2017) versions of lammps.
I am getting Nan when using fix box/relax with the 17 Jan 2017 version. I am attaching a short input file along with the potential so you (hopefully) can reproduce the error. The potential is an EAM, and the input used to work fine with previous (before 9 Jan 2017) versions of lammps.
thanks for reporting. this is quite unexpected behavior and is likely
related to the recent refactoring of the neighbor list code.
in this case it looks as if adding fix box/relax results in some
inconsistency in how neighbor lists are created in binning mode.
somehow the wrong bins are used and thus atom i and atom j can be the
same atom resulting in a division by zero.
you can verify this by using nsq neighbor mode. that will run the code
very slowly, but without the NaNs due to a division by zero since r_ij
becomes zero for i==j.