fix bugs found by or avoid warnings from coverity scan

This commit is contained in:
Axel Kohlmeyer
2021-02-26 15:55:20 -05:00
parent 099dcedb7f
commit 09e33fd342
10 changed files with 12 additions and 5 deletions

View File

@ -50,7 +50,7 @@ ComputeGlobalAtom::ComputeGlobalAtom(LAMMPS *lmp, int narg, char **arg) :
indexref = argi.get_index1();
idref = argi.copy_name();
if ((whichref == ArgInfo::UNKNOWN) || (which[nvalues] == ArgInfo::NONE)
if ((whichref == ArgInfo::UNKNOWN) || (whichref == ArgInfo::NONE)
|| (argi.get_dim() > 1))
error->all(FLERR,"Illegal compute global/atom command");