From 0c082205a7bd629fb828cf654865cd66e6a5741d Mon Sep 17 00:00:00 2001
From: Pedro Gonnet <gonnet@google.com>
Date: Tue, 27 Jun 2017 22:40:34 +0200
Subject: [PATCH] formatting.

---
 src/cell.c   | 5 +++--
 src/cell.h   | 4 ++--
 src/runner.c | 5 +++--
 3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/cell.c b/src/cell.c
index f4ed314ecc..264b58b1d7 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -1356,7 +1356,7 @@ void cell_activate_drift_part(struct cell *c, struct scheduler *s) {
  */
 void cell_activate_sorts(struct cell *c, int sid, struct scheduler *s) {
 
-  void cell_activate_sorts_up(struct cell *c, struct scheduler *s) {
+  void cell_activate_sorts_up(struct cell * c, struct scheduler * s) {
     if (c == c->super) {
       scheduler_activate(s, c->sorts);
       if (c->nodeID == engine_rank) scheduler_activate(s, c->drift_part);
@@ -1366,7 +1366,8 @@ void cell_activate_sorts(struct cell *c, int sid, struct scheduler *s) {
         parent->do_sub_sort = 1;
         if (parent == c->super) {
           scheduler_activate(s, parent->sorts);
-          if (parent->nodeID == engine_rank) scheduler_activate(s, parent->drift_part);
+          if (parent->nodeID == engine_rank)
+            scheduler_activate(s, parent->drift_part);
           break;
         }
       }
diff --git a/src/cell.h b/src/cell.h
index 9aaea48187..ba1edb1a94 100644
--- a/src/cell.h
+++ b/src/cell.h
@@ -339,10 +339,10 @@ struct cell {
 
   /*! Do any of this cell's sub-cells need to be drifted? */
   char do_sub_drift;
-  
+
   /*! Bit mask of sorts that need to be computed for this cell. */
   unsigned int do_sort;
-  
+
   /*! Do any of this cell's sub-cells need to be sorted? */
   char do_sub_sort;
 
diff --git a/src/runner.c b/src/runner.c
index 1ad73035e3..0dd6d06684 100644
--- a/src/runner.c
+++ b/src/runner.c
@@ -332,13 +332,14 @@ void runner_do_sort(struct runner *r, struct cell *c, int flags, int cleanup,
   float buff[8];
 
   TIMER_TIC;
-  
+
   /* We need to do the local sorts plus whatever was requested further up. */
   flags |= c->do_sort;
   if (flags == 0 && !c->do_sub_sort) return;
 
   /* Check that the particles have been moved to the current time */
-  if (flags && !cell_are_part_drifted(c, r->e)) error("Sorting un-drifted cell");
+  if (flags && !cell_are_part_drifted(c, r->e))
+    error("Sorting un-drifted cell");
 
 #ifdef SWIFT_DEBUG_CHECKS
   /* Make sure the sort flags are consistent (downward). */
-- 
GitLab