add error location propagation to force->bounds() and force->boundsbig()

This commit is contained in:
Axel Kohlmeyer
2016-10-26 15:53:02 -04:00
parent efaa8feab5
commit 35753b8f08
173 changed files with 302 additions and 301 deletions

View File

@ -683,7 +683,7 @@ int Input::expand_args(int narg, char **arg, int mode, char **&earg)
if (expandflag) {
*ptr2 = '\0';
force->bounds(ptr1+1,nmax,nlo,nhi);
force->bounds(FLERR,ptr1+1,nmax,nlo,nhi);
*ptr2 = ']';
if (newarg+nhi-nlo+1 > maxarg) {
maxarg += nhi-nlo+1;
@ -1130,7 +1130,7 @@ void Input::partition()
else error->all(FLERR,"Illegal partition command");
int ilo,ihi;
force->bounds(arg[1],universe->nworlds,ilo,ihi);
force->bounds(FLERR,arg[1],universe->nworlds,ilo,ihi);
// copy original line to copy, since will use strtok() on it
// ptr = start of 4th word