get rid of utils::boundsbig() by making it a template function with two specializations

This commit is contained in:
Axel Kohlmeyer
2020-08-31 11:25:43 -04:00
parent 8d2c16ad66
commit cf11945e21
4 changed files with 10 additions and 35 deletions

View File

@ -633,7 +633,7 @@ void Set::selection(int n)
if (atom->tag_enable == 0)
error->all(FLERR,"Cannot use set atom with no atom IDs defined");
bigint nlobig,nhibig;
utils::boundsbig(FLERR,id,1,MAXTAGINT,nlobig,nhibig,error);
utils::bounds(FLERR,id,1,MAXTAGINT,nlobig,nhibig,error);
tagint *tag = atom->tag;
for (int i = 0; i < n; i++)
@ -644,7 +644,7 @@ void Set::selection(int n)
if (atom->molecule_flag == 0)
error->all(FLERR,"Cannot use set mol with no molecule IDs defined");
bigint nlobig,nhibig;
utils::boundsbig(FLERR,id,1,MAXTAGINT,nlobig,nhibig,error);
utils::bounds(FLERR,id,1,MAXTAGINT,nlobig,nhibig,error);
tagint *molecule = atom->molecule;
for (int i = 0; i < n; i++)