move Force::bounds() and Force::boundsbig() to utils.

This commit is contained in:
Axel Kohlmeyer
2020-08-29 18:23:03 -04:00
parent 3be064748d
commit fcd0b9f78f
233 changed files with 751 additions and 498 deletions

View File

@ -75,7 +75,7 @@ void DeleteBonds::command(int narg, char **arg)
else error->all(FLERR,"Illegal delete_bonds command");
// setup list of types (atom,bond,etc) to consider
// use force->bounds(FLERR,) to allow setting of range of types
// use utils::bounds(FLERR,) to allow setting of range of types
// range can be 0 to ntypes inclusive
int *tlist = NULL;
@ -94,7 +94,7 @@ void DeleteBonds::command(int narg, char **arg)
tlist = new int[n+1];
for (int i = 0; i <= n; i++) tlist[i] = 0;
int nlo,nhi;
force->bounds(FLERR,arg[2],n,nlo,nhi,0);
utils::bounds(FLERR,arg[2],0,n,nlo,nhi,error);
for (int i = nlo; i <= nhi; i++) tlist[i] = 1;
iarg++;