I am having problems with lammps and reax/c crashing due to (ostensibly) memory allocation issues. This particular issue seems to have persisted into the August 31 version of lammps which I recently downloaded. I am mainly running using lammps compiled serially (although the problems also exist when using MPI), using the -O3 and -ffast-math optimization flags. I have also tried running with debug information and with no optimization flags (-O0), but receive the same errors. I have attached a crash.zip file that contains a small system to illustrate the errors I am encountering.
- By far, the most common error I am encountering is the “ran out of space on far_nbrs: top=X, max=Y” error (where X > Y). In the attached files, running “crash.lmp” by reading in the configuration datafile “crash2.dat” will reproduce this error.
- I also am receiving a “bondchk failed” error. Running “crash.lmp” by reading in the configuration datafile “crash.dat” will reproduce this error.
- I have also received a “realloc(): invalid next size” error. Running “crash.lmp” by reading in the configuration datafile “crash3.dat” will reproduce this error.
The various configuration datafiles I have attached were generated from restart files for this small system. That is, crash2.dat was created from the last restart file output by the simulation running from crash.dat, and so on.
These problems do not exist with all configurations and seem to appear randomly, as some of the systems I am attempting to run will be error free. As such it’s been difficult for me to pinpoint a specific issue. Does anyone have any advice on how to deal with these problems?
Thank you very much,
Jason Lai
crash.zip (7.52 KB)