Apply clang-format to source tree
[alexxy/gromacs.git] / src / gromacs / utility / basenetwork.cpp
index b6e905a60ad1fe9338fa5c58a87cad369d8a2dc7..5bb5a90158f218df891211263cbc3e79a15eb03b 100644 (file)
@@ -66,14 +66,14 @@ int gmx_node_num()
 #if !GMX_MPI
     return 1;
 #else
-#if GMX_THREAD_MPI
+#    if GMX_THREAD_MPI
     if (!gmx_mpi_initialized())
     {
         return 1;
     }
-#endif
+#    endif
     int i;
-    (void) MPI_Comm_size(MPI_COMM_WORLD, &i);
+    (void)MPI_Comm_size(MPI_COMM_WORLD, &i);
     return i;
 #endif
 }
@@ -83,14 +83,14 @@ int gmx_node_rank()
 #if !GMX_MPI
     return 0;
 #else
-#if GMX_THREAD_MPI
+#    if GMX_THREAD_MPI
     if (!gmx_mpi_initialized())
     {
         return 0;
     }
-#endif
+#    endif
     int i;
-    (void) MPI_Comm_rank(MPI_COMM_WORLD, &i);
+    (void)MPI_Comm_rank(MPI_COMM_WORLD, &i);
     return i;
 #endif
 }
@@ -149,7 +149,7 @@ int gmx_physicalnode_id_hash()
     return hash;
 }
 
-void gmx_broadcast_world(int size, void *buffer)
+void gmx_broadcast_world(int size, voidbuffer)
 {
 #if GMX_MPI
     MPI_Bcast(buffer, size, MPI_BYTE, 0, MPI_COMM_WORLD);