Hi all,
I am using LAMMPS version 29 September 2021 to simulate multiple coarse-grained polymer chains in a cubic box with PBCs in constant NVE + Langevin thermostat. The atom style is full and forces are computed using lj/cut/coulomb/debye and harmonic springs for covalent bonds.
In addition to this, I am using charge/regulation fixes for acid/base protonation/deprotonation.
The simnulations are running nicely except when I am restarting them using the read_restart command. I have tried using simple restart and mpiio options and both of them are giving different errors; the input script is attached. I have checked the remap option while read_restart but couldn’t get any help.
With MPIIO:
Reading restart file …
restart file = 29 Sep 2021, LAMMPS = 29 Sep 2021
restoring atom style full from restart
orthogonal box = (-250.00000 -250.00000 -250.00000) to (250.00000 250.00000 250.00000)
2 by 3 by 4 MPI processor grid
restoring pair style lj/cut/coul/debye from restart
restoring bond style harmonic from restart
ERROR on proc 0: Unexpected end of file while reading file ‘rst.mpiio.5000000’ (src/modify.cpp: 1540)
Without MPIIO:
Reading restart file …
restart file = 29 Sep 2021, LAMMPS = 29 Sep 2021
restoring atom style full from restart
orthogonal box = (-250.00000 -250.00000 -250.00000) to (250.00000 250.00000 250.00000)
2 by 3 by 4 MPI processor grid
restoring pair style lj/cut/coul/debye from restart
restoring bond style harmonic from restart
libc++abi: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc
libc++abi: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc
[] *** Process received signal ***
[] Signal: Aborted (6)
[] Signal code: (-6)
[] [ 0] libc++abi: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc
The command for running simulations is given below:
mpirun -np $NCPUS lmp_mpi -log my.log -in in.poly
Here, $NCPUS is supplied from the submission script. Each MPI process is using 1 OpenMP thread.
Without charge/regulation without and with MPIIO, simulations are restarting without any error.
Any help is appreciated.
Sincerely,
Piyush
in.poly (1.71 KB)