diff --git a/examples/main.c b/examples/main.c index 41b303836c443298f2ebea2a6563d367572a8d1e..5b9d2bf976c94dabd94cf8b041a1deab005fdcfa 100644 --- a/examples/main.c +++ b/examples/main.c @@ -262,13 +262,22 @@ int main(int argc, char *argv[]) { message( "Executing a dry run. No i/o or time integration will be performed."); - /* Report CPU frequency. */ + /* Report CPU frequency.*/ cpufreq = clocks_get_cpufreq(); if (myrank == 0) { - message("Running on: %s",hostname()); message("CPU frequency used for tick conversion: %llu Hz", cpufreq); } + /* Report host name(s). */ + if (myrank == 0) { + message("Rank 0 Running on: %s", hostname()); + } +#ifdef WITH_MPI + else if (verbose > 1) { + message("Rank %d running on: %s", myrank, hostname()); + } +#endif + /* Do we choke on FP-exceptions ? */ if (with_fp_exceptions) { feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);