Skip to content
Snippets Groups Projects
Commit 832e9f4e authored by Volker Springel's avatar Volker Springel
Browse files

in case an out of sequence snapshot at the final time is produced, make sure...

in case an out of sequence snapshot at the final time is produced, make sure that also the group finder is run if enabled
parent 27e822d9
Branches
No related tags found
No related merge requests found
...@@ -172,11 +172,11 @@ void sim::run(void) ...@@ -172,11 +172,11 @@ void sim::run(void)
{ {
mpi_printf("\nFinal time=%g reached. Simulation ends.\n", All.TimeMax); mpi_printf("\nFinal time=%g reached. Simulation ends.\n", All.TimeMax);
if(All.Ti_lastoutput != All.Ti_Current) /* make a snapshot at the final time in case none has been produced at this time */ /* make a snapshot at the final time in case none has been produced at this time yet */
if(All.Ti_lastoutput != All.Ti_Current)
{ {
snap_io Snap(&Sp, Communicator, All.SnapFormat); /* get an I/O object */ All.Ti_nextoutput = All.Ti_Current;
/* this snapshot will be overwritten if All.TimeMax is increased and the run is continued */ create_snapshot_if_desired();
Snap.write_snapshot(All.SnapshotFileCount++, NORMAL_SNAPSHOT);
} }
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment