diff --git a/examples/main.c b/examples/main.c index 5fa541a5e399fdeed2013fdc14fe7a908bdac259..023e8be500482ea2324e590abffd82d4fface280 100644 --- a/examples/main.c +++ b/examples/main.c @@ -432,13 +432,10 @@ int main(int argc, char *argv[]) { /* Legend */ if (myrank == 0) - printf( - "# Step Time time-step Number of updates Number of g-updates " - "CPU Wall-clock time [%s]\n", - clocks_getunit()); + printf("# %6s %14s %14s %10s %10s %16s [%s]\n", + "Step", "Time", "Time-step", "Updates", "g-Updates", + "Wall-clock time", clocks_getunit()); - return 0; - /* Let loose a runner on the space. */ for (int j = 0; !engine_is_done(&e); j++) { diff --git a/src/engine.c b/src/engine.c index 01b140002086c4096f2500327e71cb143e0204da..82ff038bb2371c64cbcefbb9eb1bc15490d9ff91 100644 --- a/src/engine.c +++ b/src/engine.c @@ -2024,8 +2024,8 @@ void engine_step(struct engine *e) { if (e->nodeID == 0) { /* Print some information to the screen */ - printf("%d %e %e %d %d %.3f\n", e->step, e->time, e->timeStep, updates, - g_updates, e->wallclock_time); + printf(" %6d %14e %14e %10d %10d %21.3f\n", e->step, e->time, e->timeStep, + updates, g_updates, e->wallclock_time); fflush(stdout); /* Write some energy statistics */