another workaround for rerun

This commit is contained in:
Axel Kohlmeyer
2022-01-18 04:56:47 -05:00
parent dc6e558191
commit 241a44f1af
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@
namespace LAMMPS_NS {
class Dump : protected Pointers {
friend class Output;
public:
char *id; // user-defined name of Dump
char *style; // style of Dump

View File

@ -632,7 +632,7 @@ int Output::check_time_dumps(bigint ntimestep)
{
next_dump_any = MAXBIGINT;
for (int idump = 0; idump < ndump; idump++)
if ((last_dump[idump] >= 0) && !update->whichflag)
if ((last_dump[idump] >= 0) && !update->whichflag && !dump[idump]->multifile)
error->all(FLERR, "Cannot reset timestep with active dump - must undump first");
if (restart_flag_single) {