Commit 4511d85d authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Less verbose engine_init() in MPI mode

parent 34a46475
......@@ -2175,7 +2175,8 @@ void engine_init(struct engine *e, struct space *s, float dt, int nr_threads,
int home = numa_node_of_cpu(sched_getcpu()), half = nr_cores / 2;
bool done = false, swap_hyperthreads = hyperthreads_present();
if (swap_hyperthreads) message("prefer physical cores to hyperthreads");
if (swap_hyperthreads && nodeID == 0)
message("prefer physical cores to hyperthreads");
while (!done) {
done = true;
......@@ -2272,7 +2273,8 @@ void engine_init(struct engine *e, struct space *s, float dt, int nr_threads,
engine_print_policy(e);
/* Print information about the hydro scheme */
message("Hydrodynamic scheme: %s", SPH_IMPLEMENTATION);
if (e->nodeID == 0)
message("Hydrodynamic scheme: %s", SPH_IMPLEMENTATION);
/* Deal with timestep */
e->timeBase = (timeEnd - timeBegin) / max_nr_timesteps;
......
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