diff --git a/examples/main.c b/examples/main.c index bcf90b5a95f9e31a121637ff9b08734a661fe840..084a34723a7b1c3d6e075a67936c14b2380e69ad 100644 --- a/examples/main.c +++ b/examples/main.c @@ -530,7 +530,7 @@ int main(int argc, char *argv[]) { /* Make sure output file is empty, only on one rank. */ char dumpfile[30]; - snprintf(dumpfile, 30, "thread_info_MPI-step%d.dat", j); + snprintf(dumpfile, 30, "thread_info_MPI-step%d.dat", j + 1); FILE *file_thread; if (myrank == 0) { file_thread = fopen(dumpfile, "w"); @@ -582,7 +582,7 @@ int main(int argc, char *argv[]) { #else char dumpfile[30]; - snprintf(dumpfile, 30, "thread_info-step%d.dat", j); + snprintf(dumpfile, 30, "thread_info-step%d.dat", j + 1); FILE *file_thread; file_thread = fopen(dumpfile, "w"); /* Add some information to help with the plots */