Apply re-formatting to C++ in src/ tree.
[alexxy/gromacs.git] / src / gromacs / fileio / espio.cpp
index a380ffafc598e31da5d89a0b47a22620eeb5fef0..800628e32ade6c40bbcf10ff380a45d82cbd67de 100644 (file)
@@ -327,8 +327,7 @@ void gmx_espresso_read_conf(const char* infile, t_symtab* symtab, char** name, t
                         }
                         else
                         {
-                            sprintf(buf, "T%c%c", 'A' + atoms->atom[i].type / 26,
-                                    'A' + atoms->atom[i].type % 26);
+                            sprintf(buf, "T%c%c", 'A' + atoms->atom[i].type / 26, 'A' + atoms->atom[i].type % 26);
                         }
                         t_atoms_set_resinfo(atoms, i, symtab, buf, i, ' ', 0, ' ');
                     }
@@ -347,7 +346,8 @@ void gmx_espresso_read_conf(const char* infile, t_symtab* symtab, char** name, t
                 gmx_fatal(FARGS,
                           "Internal inconsistency in Espresso routines, read %d atoms, expected %d "
                           "atoms",
-                          i, atoms->nr);
+                          i,
+                          atoms->nr);
             }
         }
         else if (level == 1 && std::strcmp(word, "variable") == 0 && !bFoundVariable)
@@ -469,7 +469,13 @@ void write_espresso_conf_indexed(FILE*          out,
         {
             j = i;
         }
-        fprintf(out, "\t{%d %f %f %f %hu %g", j, x[j][XX], x[j][YY], x[j][ZZ], atoms->atom[j].type,
+        fprintf(out,
+                "\t{%d %f %f %f %hu %g",
+                j,
+                x[j][XX],
+                x[j][YY],
+                x[j][ZZ],
+                atoms->atom[j].type,
                 atoms->atom[j].q);
         if (v)
         {