Completely remove charge groups
[alexxy/gromacs.git] / src / gromacs / pbcutil / pbc.cpp
index ffa41df8800d275ec8fff2bbbf51b7ee27d7e6f4..7cab160d884b436aec3965071521da4952bad4e2 100644 (file)
@@ -1585,7 +1585,7 @@ static void low_do_pbc_mtop(FILE *fplog, int ePBC, const matrix box,
     {
         const gmx_moltype_t &moltype = mtop->moltype[molb.type];
         if (moltype.atoms.nr == 1 ||
-            (!bFirst && moltype.cgs.nr == 1))
+            (!bFirst && moltype.atoms.nr == 1))
         {
             /* Just one atom or charge group in the molecule, no PBC required */
             as += molb.nmol*moltype.atoms.nr;