More clear message for undefined pullgroups.
authorRossen Apostolov <rossen@kth.se>
Wed, 18 Jun 2014 14:19:03 +0000 (16:19 +0200)
committerRoland Schulz <roland@rschulz.eu>
Sun, 22 Jun 2014 16:06:35 +0000 (18:06 +0200)
When a pull group was not defined in the index file,
grompp didn't report in a clear way where the problem was.

Fixes #1446.

Change-Id: If571b46b91f6ad28213808b6e18d96e1da0be79d

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);