diff options
-rw-r--r-- | perform/pio_perf.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/perform/pio_perf.c b/perform/pio_perf.c index 4e2da0e..902817c 100644 --- a/perform/pio_perf.c +++ b/perform/pio_perf.c @@ -779,10 +779,16 @@ output_report(FILE *output, const char *fmt, ...) static void print_indent(register FILE *output, register int indent) { - indent *= TAB_SPACE; + int myrank; + + MPI_Comm_rank(pio_comm_g, &myrank); - for (; indent > 0; --indent) - fputc(' ', output); + if (myrank == 0) { + indent *= TAB_SPACE; + + for (; indent > 0; --indent) + fputc(' ', output); + } } /* |