summaryrefslogtreecommitdiffstats
path: root/perform/pio_perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'perform/pio_perf.c')
-rw-r--r--perform/pio_perf.c12
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);
+ }
}
/*