Commit 2a65eeca authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Make the mem report numbers consistent when restarting a simulation.

parent 73b320f5
......@@ -1334,7 +1334,7 @@ int main(int argc, char *argv[]) {
/* Generate the task statistics. */
char dumpfile[40];
snprintf(dumpfile, 40, "thread_stats-step%d.dat", j + 1);
snprintf(dumpfile, 40, "thread_stats-step%d.dat", e.step + 1);
task_dump_stats(dumpfile, &e, /* header = */ 0, /* allranks = */ 1);
}
......@@ -1353,7 +1353,7 @@ int main(int argc, char *argv[]) {
snprintf(dumpfile, 40, "memuse_report-rank%d-step%d.dat", engine_rank,
j + 1);
#else
snprintf(dumpfile, 40, "memuse_report-step%d.dat", j + 1);
snprintf(dumpfile, 40, "memuse_report-step%d.dat", e.step + 1);
#endif // WITH_MPI
memuse_log_dump(dumpfile);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment