Add InteractionDefinitions
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / grompp.cpp
index f010d6e6bc485c9a589e7afbcfcd347f16e08ac6..66d9dbaea8794cd3f54854ea4a1223e26d52b379 100644 (file)
@@ -1446,7 +1446,7 @@ static bool haveDecoupledModeInMol(const gmx_moltype_t&           molt,
                                    gmx::ArrayRef<const t_iparams> iparams,
                                    real                           massFactorThreshold)
 {
-    if (molt.ilist[F_CONSTR].size() == 0 && molt.ilist[F_CONSTRNC].size() == 0)
+    if (molt.ilist[F_CONSTR].empty() && molt.ilist[F_CONSTRNC].empty())
     {
         return false;
     }