More clear message for undefined pullgroups.
[alexxy/gromacs.git] / src / kernel / readpull.c
index 9e2b9f5fcf57952f68f27723c24821491107c38b..16c06762809ba4f459b9e2dee237f03cd7fa6702 100644 (file)
@@ -258,6 +258,10 @@ void make_pull_groups(t_pull *pull, char **pgnames, t_blocka *grps, char **gname
         {
             pgrp->nat = 0;
         }
+        else if (g != 0 && strcmp(pgnames[g], "") == 0)
+        {
+            gmx_fatal(FARGS, "Group pull_group%d required by grompp was undefined.",g);
+        }
         else
         {
             ig        = search_string(pgnames[g], grps->nr, gnames);