work around "fix not computed at compatible times" errors with write_dump

This commit is contained in:
Axel Kohlmeyer
2022-05-12 14:12:13 -04:00
parent 301bd95900
commit c3a454370e

View File

@ -51,7 +51,8 @@ void WriteDump::command(int narg, char **arg)
dumpargs[0] = (char *) "WRITE_DUMP"; // dump id
dumpargs[1] = arg[0]; // group
dumpargs[2] = arg[1]; // dump style
dumpargs[3] = (char *) "1"; // dump frequency
std::string ntimestep = std::to_string(MAX(update->ntimestep,1));
dumpargs[3] = (char *) ntimestep.c_str(); // dump frequency
for (int i = 2; i < modindex; ++i)
dumpargs[i+2] = arg[i];