Commit 919db29c authored by Loic Hausammann's avatar Loic Hausammann
Browse files

Logger: use a single line for turning off the logger

parent 51667b1b
......@@ -1217,10 +1217,9 @@ int main(int argc, char *argv[]) {
#ifdef WITH_MPI
/* Split the space. */
engine_split(&e, &initial_partition);
if (with_logger) {
/* Turn off the logger to avoid writing the communications */
e.policy &= ~engine_policy_logger;
if (with_logger) e.policy &= ~engine_policy_logger;
if (with_logger) {
/* Turn it back on */
Markdown is supported
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