changes in package files to match new find_custom() syntax

This commit is contained in:
Steve Plimpton
2020-09-08 13:48:41 -06:00
parent d1442b0538
commit 76725731fd
5 changed files with 95 additions and 77 deletions

View File

@ -129,14 +129,10 @@ FixRigid::FixRigid(LAMMPS *lmp, int narg, char **arg) :
// determine whether atom-style variable or atom property is used
if (strstr(arg[4],"i_") == arg[4]) {
int is_double=0;
int custom_index = atom->find_custom(arg[4]+2,is_double);
if (custom_index == -1)
error->all(FLERR,"Fix rigid custom requires "
"previously defined property/atom");
else if (is_double)
error->all(FLERR,"Fix rigid custom requires "
"integer-valued property/atom");
int flag,cols;
int custom_index = atom->find_custom(arg[4]+2,flag,cols);
if (custom_index < 0 || !flag || cols)
error->all(FLERR,"Fix rigid custom requires custom integer vector");
int minval = INT_MAX;
int *value = atom->ivector[custom_index];
for (i = 0; i < nlocal; i++)