improved revision of write_dump output frequency setting for 64-bit timesteps
This commit is contained in:
@ -47,7 +47,8 @@ void WriteDump::command(int narg, char **arg)
|
|||||||
|
|
||||||
// work around "fix not computed at compatible times" errors.
|
// work around "fix not computed at compatible times" errors.
|
||||||
|
|
||||||
const int dumpfreq = MAX(1, update->nsteps);
|
int dumpfreq = MAX(1, update->nsteps);
|
||||||
|
dumpfreq += update->ntimestep % dumpfreq;
|
||||||
|
|
||||||
auto dumpargs = new char *[modindex + 2];
|
auto dumpargs = new char *[modindex + 2];
|
||||||
dumpargs[0] = (char *) "WRITE_DUMP"; // dump id
|
dumpargs[0] = (char *) "WRITE_DUMP"; // dump id
|
||||||
|
|||||||
Reference in New Issue
Block a user