Add InteractionDefinitions
[alexxy/gromacs.git] / src / gromacs / listed_forces / disre.cpp
index 51eb75238ae20f24de8a6e2eb0bc8428a68534f1..182d9b7932ff247befecb8fd7852130dccded4e9 100644 (file)
@@ -139,7 +139,7 @@ void init_disres(FILE*                 fplog,
     iloop     = gmx_mtop_ilistloop_init(mtop);
     while (const InteractionLists* il = gmx_mtop_ilistloop_next(iloop, &nmol))
     {
-        if (nmol > 1 && (*il)[F_DISRES].size() > 0 && ir->eDisre != edrEnsemble)
+        if (nmol > 1 && !(*il)[F_DISRES].empty() && ir->eDisre != edrEnsemble)
         {
             gmx_fatal(FARGS,
                       "NMR distance restraints with multiple copies of the same molecule are "