Code beautification with uncrustify
[alexxy/gromacs.git] / src / gromacs / selection / position.cpp
index 541366d9bf5c727ebd93add78d4975021d88c299..b2c61669096e962d115e5a1768d893e4dd6360c9 100644 (file)
@@ -58,7 +58,7 @@ gmx_ana_pos_clear(gmx_ana_pos_t *pos)
     pos->v  = NULL;
     pos->f  = NULL;
     gmx_ana_indexmap_clear(&pos->m);
-    pos->g  = NULL;
+    pos->g        = NULL;
     pos->nalloc_x = 0;
 }
 
@@ -156,11 +156,11 @@ gmx_ana_pos_init_const(gmx_ana_pos_t *pos, const rvec x)
 void
 gmx_ana_pos_deinit(gmx_ana_pos_t *pos)
 {
-    pos->nr = 0;
+    pos->nr               = 0;
     sfree(pos->x); pos->x = NULL;
     sfree(pos->v); pos->v = NULL;
     sfree(pos->f); pos->f = NULL;
-    pos->nalloc_x = 0;
+    pos->nalloc_x         = 0;
     gmx_ana_indexmap_deinit(&pos->m);
 }
 
@@ -252,17 +252,17 @@ gmx_ana_pos_set_evalgrp(gmx_ana_pos_t *pos, gmx_ana_index_t *g)
 void
 gmx_ana_pos_empty_init(gmx_ana_pos_t *pos)
 {
-    pos->nr = 0;
-    pos->m.nr = 0;
+    pos->nr        = 0;
+    pos->m.nr      = 0;
     pos->m.mapb.nr = 0;
-    pos->m.b.nr = 0;
-    pos->m.b.nra = 0;
+    pos->m.b.nr    = 0;
+    pos->m.b.nra   = 0;
     /* This should not really be necessary, but do it for safety... */
     pos->m.mapb.index[0] = 0;
-    pos->m.b.index[0] = 0;
+    pos->m.b.index[0]    = 0;
     /* This function should only be used to construct all the possible
      * positions, so the result should always be static. */
-    pos->m.bStatic = true;
+    pos->m.bStatic    = true;
     pos->m.bMapStatic = true;
 }
 
@@ -274,8 +274,8 @@ gmx_ana_pos_empty_init(gmx_ana_pos_t *pos)
 void
 gmx_ana_pos_empty(gmx_ana_pos_t *pos)
 {
-    pos->nr = 0;
-    pos->m.nr = 0;
+    pos->nr        = 0;
+    pos->m.nr      = 0;
     pos->m.mapb.nr = 0;
     /* This should not really be necessary, but do it for safety... */
     pos->m.mapb.index[0] = 0;
@@ -283,7 +283,7 @@ gmx_ana_pos_empty(gmx_ana_pos_t *pos)
      * should be false. This makes it possible to update the flags in
      * gmx_ana_pos_append(), and just make a simple check in
      * gmx_ana_pos_append_finish(). */
-    pos->m.bStatic = true;
+    pos->m.bStatic    = true;
     pos->m.bMapStatic = true;
 }
 
@@ -334,9 +334,9 @@ gmx_ana_pos_append_init(gmx_ana_pos_t *dest, gmx_ana_index_t *g,
     dest->m.mapb.index[j+1] = g->isize;
     dest->m.b.index[j+1]    = g->isize;
     dest->nr++;
-    dest->m.nr = dest->nr;
+    dest->m.nr      = dest->nr;
     dest->m.mapb.nr = dest->nr;
-    dest->m.b.nr = dest->nr;
+    dest->m.b.nr    = dest->nr;
 }
 
 /*!
@@ -389,7 +389,7 @@ gmx_ana_pos_append(gmx_ana_pos_t *dest, gmx_ana_index_t *g,
         if (refid < 0)
         {
             dest->m.refid[j] = -1;
-            dest->m.bStatic = false;
+            dest->m.bStatic  = false;
             /* If we are using masks, there is no need to alter the
              * mapid field. */
         }
@@ -397,7 +397,7 @@ gmx_ana_pos_append(gmx_ana_pos_t *dest, gmx_ana_index_t *g,
         {
             if (refid != j)
             {
-                dest->m.bStatic = false;
+                dest->m.bStatic    = false;
                 dest->m.bMapStatic = false;
             }
             dest->m.refid[j] = refid;
@@ -407,7 +407,7 @@ gmx_ana_pos_append(gmx_ana_pos_t *dest, gmx_ana_index_t *g,
         }
         dest->m.mapb.index[j+1] = g->isize;
         dest->nr++;
-        dest->m.nr = dest->nr;
+        dest->m.nr      = dest->nr;
         dest->m.mapb.nr = dest->nr;
     }
 }
@@ -424,7 +424,7 @@ gmx_ana_pos_append_finish(gmx_ana_pos_t *pos)
 {
     if (pos->m.nr != pos->m.b.nr)
     {
-        pos->m.bStatic = false;
+        pos->m.bStatic    = false;
         pos->m.bMapStatic = false;
     }
 }