Skip to content
Snippets Groups Projects
Commit c184f132 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Merge branch 'darwin/fix_grackle_mpi_verbosity' into 'master'

Make grackle verbose only for rank 0 in MPI runs

See merge request !2079
parents 6d89d9a7 5c68ff27
No related branches found
No related tags found
4 merge requests!2165Merge master,!2119Mhd canvas,!2112Prep for remix merge,!2079Make grackle verbose only for rank 0 in MPI runs
...@@ -1280,8 +1280,10 @@ void cooling_init_units(const struct unit_system* us, ...@@ -1280,8 +1280,10 @@ void cooling_init_units(const struct unit_system* us,
void cooling_init_grackle(struct cooling_function_data* cooling) { void cooling_init_grackle(struct cooling_function_data* cooling) {
#ifdef SWIFT_DEBUG_CHECKS #ifdef SWIFT_DEBUG_CHECKS
/* enable verbose for grackle */ /* Enable verbose for grackle for rank 0 only. */
grackle_verbose = 1; if (engine_rank == 0) {
grackle_verbose = 1;
}
#endif #endif
chemistry_data* chemistry = &cooling->chemistry_data; chemistry_data* chemistry = &cooling->chemistry_data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment