Replace t_grps with std::vector
[alexxy/gromacs.git] / src / gromacs / mdrun / tpi.cpp
index 3a601fd3c600462f3f5184554e10df10fd6fe466..1f50b1e063ebc2a2fa5d725da972662fff27cf93 100644 (file)
@@ -348,7 +348,7 @@ Integrator::do_tpi()
         }
     }
 
-    ngid   = groups->groups[SimulationAtomGroupType::EnergyOutput].nr;
+    ngid   = groups->groups[SimulationAtomGroupType::EnergyOutput].size();
     // TODO: Figure out which energy group to use
 #if 0
     gid_tp = GET_CGINFO_GID(fr->cginfo[cg_tp]);
@@ -400,7 +400,7 @@ Integrator::do_tpi()
         for (i = 0; i < ngid; i++)
         {
             sprintf(str, "f. <U\\sVdW %s\\Ne\\S-\\betaU\\N>",
-                    *(groups->groupNames[groups->groups[SimulationAtomGroupType::EnergyOutput].nm_ind[i]]));
+                    *(groups->groupNames[groups->groups[SimulationAtomGroupType::EnergyOutput][i]]));
             leg[e++] = gmx_strdup(str);
         }
         if (bDispCorr)
@@ -413,7 +413,7 @@ Integrator::do_tpi()
             for (i = 0; i < ngid; i++)
             {
                 sprintf(str, "f. <U\\sCoul %s\\Ne\\S-\\betaU\\N>",
-                        *(groups->groupNames[groups->groups[SimulationAtomGroupType::EnergyOutput].nm_ind[i]]));
+                        *(groups->groupNames[groups->groups[SimulationAtomGroupType::EnergyOutput][i]]));
                 leg[e++] = gmx_strdup(str);
             }
             if (bRFExcl)