1 liner fix for PR #2342

This commit is contained in:
Jacob Gissinger
2021-08-20 14:17:05 -04:00
parent 3404920e98
commit 8735555e00

View File

@ -75,7 +75,7 @@ idregion(nullptr), idvar(nullptr), idprop(nullptr)
if (iarg+2 > narg) error->all(FLERR,"Illegal group command");
int flag,cols;
iprop = atom->find_custom(arg[iarg+1],flag,cols);
if (iprop < 1 || cols)
if (iprop < 0 || cols)
error->all(FLERR,"Custom per-atom vector for group dynamic "
"does not exist");
propflag = 1;