From 9a80921eefaecd60f45e021d0d78a9f67cdd4257 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Thu, 9 Aug 2018 16:32:55 +0200
Subject: [PATCH] Code formatting

---
 src/engine.c       | 26 ++++++++++++++------------
 src/mesh_gravity.c |  3 ++-
 src/scheduler.c    |  4 ++--
 3 files changed, 18 insertions(+), 15 deletions(-)

diff --git a/src/engine.c b/src/engine.c
index 5e9726fa8a..f3ad83eb0c 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -3746,21 +3746,21 @@ void engine_marktasks_mapper(void *map_data, int num_elements,
       /* Activate the send/recv tasks. */
       if (ci->nodeID != engine_rank) {
 
-	/* If the foreign cell is active, we want its ti_end values. */
-	if (ci_active_gravity) scheduler_activate(s, ci->recv_ti);
+        /* If the foreign cell is active, we want its ti_end values. */
+        if (ci_active_gravity) scheduler_activate(s, ci->recv_ti);
 
-          /* If the local cell is active, send its ti_end values. */
-          if (cj_active_gravity)
-            scheduler_activate_send(s, cj->send_ti, ci->nodeID);
+        /* If the local cell is active, send its ti_end values. */
+        if (cj_active_gravity)
+          scheduler_activate_send(s, cj->send_ti, ci->nodeID);
 
       } else if (cj->nodeID != engine_rank) {
 
-          /* If the foreign cell is active, we want its ti_end values. */
-          if (cj_active_gravity) scheduler_activate(s, cj->recv_ti);
+        /* If the foreign cell is active, we want its ti_end values. */
+        if (cj_active_gravity) scheduler_activate(s, cj->recv_ti);
 
-          /* If the local cell is active, send its ti_end values. */
-          if (ci_active_gravity)
-            scheduler_activate_send(s, ci->send_ti, cj->nodeID);
+        /* If the local cell is active, send its ti_end values. */
+        if (ci_active_gravity)
+          scheduler_activate_send(s, ci->send_ti, cj->nodeID);
       }
 #endif
     }
@@ -5336,8 +5336,10 @@ void engine_makeproxies(struct engine *e) {
 
   /* Let's be verbose about this choice */
   if (e->verbose)
-    message("Looking for proxies up to %d top-level cells away (delta_m=%d delta_m=%d)",
-	    delta, delta_m, delta_p);
+    message(
+        "Looking for proxies up to %d top-level cells away (delta_m=%d "
+        "delta_m=%d)",
+        delta, delta_m, delta_p);
 
   /* Loop over each cell in the space. */
   int ind[3];
diff --git a/src/mesh_gravity.c b/src/mesh_gravity.c
index 68c6d07272..d49b850f98 100644
--- a/src/mesh_gravity.c
+++ b/src/mesh_gravity.c
@@ -333,7 +333,8 @@ void pm_mesh_compute_potential(struct pm_mesh* mesh, const struct space* s,
   tic = getticks();
 
   /* Merge everybody's share of the density mesh */
-  MPI_Allreduce(MPI_IN_PLACE, rho, N * N * N, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD);
+  MPI_Allreduce(MPI_IN_PLACE, rho, N * N * N, MPI_DOUBLE, MPI_SUM,
+                MPI_COMM_WORLD);
 
   if (verbose)
     message("Mesh comunication took %.3f %s.",
diff --git a/src/scheduler.c b/src/scheduler.c
index b8a02c8c4b..3b52cb5704 100644
--- a/src/scheduler.c
+++ b/src/scheduler.c
@@ -944,8 +944,8 @@ static void scheduler_splittask_gravity(struct task *t, struct scheduler *s) {
           }
         } /* Split the pair */
       }
-    }  /* pair interaction? */
-  }    /* iterate over the current task. */
+    } /* pair interaction? */
+  }   /* iterate over the current task. */
 }
 
 /**
-- 
GitLab