store LAMMPS version of restart, if initialized from restart file

This commit is contained in:
Axel Kohlmeyer
2022-11-10 02:24:35 -05:00
parent 1fa7308ade
commit 4392b9c8cb
4 changed files with 12 additions and 0 deletions

View File

@ -130,6 +130,7 @@ LAMMPS::LAMMPS(int narg, char **arg, MPI_Comm communicator) :
version = (const char *) LAMMPS_VERSION;
num_ver = utils::date2num(version);
restart_ver = -1;
external_comm = 0;
mdicomm = nullptr;
@ -993,6 +994,8 @@ void LAMMPS::destroy()
delete python;
python = nullptr;
restart_ver = -1; // reset last restart version id
}
/* ----------------------------------------------------------------------