Commit 531d891a authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Less verbose start-up when running over MPI.

parent 8768ef48
......@@ -4530,7 +4530,7 @@ void engine_init(struct engine *e, struct space *s,
if (with_aff) engine_unpin();
#endif
if (with_aff) {
if (with_aff && nodeID == 0) {
#ifdef HAVE_SETAFFINITY
#ifdef WITH_MPI
printf("[%04i] %s engine_init: cpu map is [ ", nodeID,
......
......@@ -2928,14 +2928,15 @@ void space_init(struct space *s, const struct swift_params *params,
hydro_space_init(&s->hs, s);
ticks tic = getticks();
message("first init...");
if (verbose) message("first init...");
/* Set the particles in a state where they are ready for a run */
space_first_init_parts(s);
space_first_init_xparts(s);
space_first_init_gparts(s);
space_first_init_sparts(s);
message("took %.3f %s.", clocks_from_ticks(getticks() - tic),
clocks_getunit());
if (verbose)
message("took %.3f %s.", clocks_from_ticks(getticks() - tic),
clocks_getunit());
/* Init the space lock. */
if (lock_init(&s->lock) != 0) error("Failed to create space spin-lock.");
......@@ -2957,7 +2958,8 @@ void space_replicate(struct space *s, int replicate, int verbose) {
if (replicate < 1) error("Invalid replicate value: %d", replicate);
message("Replicating space %d times along each axis.", replicate);
if (verbose)
message("Replicating space %d times along each axis.", replicate);
const int factor = replicate * replicate * replicate;
......
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