Merge branch release-2019
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / readir.cpp
index f9b1f27e2c8c8cbfab2dc1cb9aa259f2f5002039..126c8f735233b6de3b62a0aa577c6411a11f5a8f 100644 (file)
@@ -2658,7 +2658,7 @@ static bool do_numbering(int natoms, gmx_groups_t *groups,
             /* Range checking */
             if ((aj < 0) || (aj >= natoms))
             {
-                gmx_fatal(FARGS, "Invalid atom number %d in indexfile", aj);
+                gmx_fatal(FARGS, "Invalid atom number %d in indexfile", aj + 1);
             }
             /* Lookup up the old group number */
             ognr = cbuf[aj];