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

Correctly name the thread-plot output files taking into account thread 0

parent e38c74c8
......@@ -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 */
......
Supports Markdown
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