improved revision of write_dump output frequency setting for 64-bit timesteps

This commit is contained in:
Axel Kohlmeyer
2024-03-06 11:13:50 -05:00
parent ea52699893
commit c984d5c94a

View File

@ -47,7 +47,8 @@ void WriteDump::command(int narg, char **arg)
// 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];
dumpargs[0] = (char *) "WRITE_DUMP"; // dump id