add error location propagation to force->bounds() and force->boundsbig()
This commit is contained in:
@ -72,8 +72,8 @@ ComputeRDF::ComputeRDF(LAMMPS *lmp, int narg, char **arg) :
|
||||
npairs = 0;
|
||||
int iarg = 4;
|
||||
while (iarg < narg) {
|
||||
force->bounds(arg[iarg],atom->ntypes,ilo[npairs],ihi[npairs]);
|
||||
force->bounds(arg[iarg+1],atom->ntypes,jlo[npairs],jhi[npairs]);
|
||||
force->bounds(FLERR,arg[iarg],atom->ntypes,ilo[npairs],ihi[npairs]);
|
||||
force->bounds(FLERR,arg[iarg+1],atom->ntypes,jlo[npairs],jhi[npairs]);
|
||||
if (ilo[npairs] > ihi[npairs] || jlo[npairs] > jhi[npairs])
|
||||
error->all(FLERR,"Illegal compute rdf command");
|
||||
npairs++;
|
||||
|
||||
Reference in New Issue
Block a user