remove most debug flags from gmxpreprocess
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / readir.cpp
index 60dba852f40a6b0a5ddc7a783d03bc4eaeb43868..5e39a38bef5fb6a5f45351a719483f3e053f6ee4 100644 (file)
@@ -2608,11 +2608,6 @@ static bool do_numbering(int natoms, gmx_groups_t *groups, int ng, char *ptrs[],
     bool            bRest;
     char            warn_buf[STRLEN];
 
-    if (debug)
-    {
-        fprintf(debug, "Starting numbering %d groups of type %d\n", ng, gtype);
-    }
-
     title = gtypes[gtype];
 
     snew(cbuf, natoms);
@@ -2631,10 +2626,6 @@ static bool do_numbering(int natoms, gmx_groups_t *groups, int ng, char *ptrs[],
         {
             grps->nm_ind[grps->nr++] = gid;
         }
-        if (debug)
-        {
-            fprintf(debug, "Found gid %d for group %s\n", gid, ptrs[i]);
-        }
 
         /* Now go over the atoms in the group */
         for (j = block->index[gid]; (j < block->index[gid+1]); j++)
@@ -2981,11 +2972,7 @@ static void calc_nrdf(const gmx_mtop_t *mtop, t_inputrec *ir, char **gnames)
             /* Correct for VCM removal according to the fraction of each VCM
              * group present in this TC group.
              */
-            nrdf_uc = nrdf_tc[i];
-            if (debug)
-            {
-                fprintf(debug, "T-group[%d] nrdf_uc = %g\n", i, nrdf_uc);
-            }
+            nrdf_uc    = nrdf_tc[i];
             nrdf_tc[i] = 0;
             for (j = 0; j < groups->grps[egcVCM].nr+1; j++)
             {
@@ -2994,11 +2981,6 @@ static void calc_nrdf(const gmx_mtop_t *mtop, t_inputrec *ir, char **gnames)
                     nrdf_tc[i] += nrdf_uc*((double)na_vcm[j]/(double)na_tot)*
                         (nrdf_vcm[j] - nrdf_vcm_sub[j])/nrdf_vcm[j];
                 }
-                if (debug)
-                {
-                    fprintf(debug, "  nrdf_vcm[%d] = %g, nrdf = %g\n",
-                            j, nrdf_vcm[j], nrdf_tc[i]);
-                }
             }
         }
     }