Clarified grompp pull error messages
authorBerk Hess <hess@kth.se>
Tue, 2 Dec 2014 08:08:45 +0000 (09:08 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Fri, 5 Dec 2014 17:24:27 +0000 (18:24 +0100)
Change-Id: If0df3fcd0d034c4b4ced04eb32ed7bb74e596776

src/gromacs/gmxpreprocess/readpull.c

index aebd0d9e679e174678dc410085eb7d02f46dd270..4ae7480f0f32d3bb46c33ee5747e14bcbc81b1a1 100644 (file)
@@ -210,7 +210,8 @@ char **read_pullparams(int *ninp_p, t_inpfile **inp_p,
         nscan = sscanf(groups, "%d %d %d", &pcrd->group[0], &pcrd->group[1], &idum);
         if (nscan != 2)
         {
-            fprintf(stderr, "ERROR: %s should have %d components\n", buf, 2);
+            fprintf(stderr, "ERROR: %s should contain %d pull group indices\n",
+                    buf, 2);
             nerror++;
         }
         sprintf(buf, "pull-coord%d-origin", i);
@@ -254,7 +255,7 @@ void make_pull_groups(t_pull *pull,
 
         if (strcmp(pgnames[g], "") == 0)
         {
-            gmx_fatal(FARGS, "Group pull_group%d required by grompp was undefined.", g);
+            gmx_fatal(FARGS, "Pull option pull_group%d required by grompp has not been set.", g);
         }
 
         ig        = search_string(pgnames[g], grps->nr, gnames);