Clarified grompp pull error messages
[alexxy/gromacs.git] / 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);