refactor compute reduce/chunk

This commit is contained in:
Axel Kohlmeyer
2022-10-05 14:03:35 -04:00
parent 2bc0825e4a
commit cf4e133a2c
3 changed files with 112 additions and 143 deletions

View File

@ -63,8 +63,7 @@ ComputeChunkSpreadAtom(LAMMPS *lmp, int narg, char **arg) :
val.id = argi.get_name();
val.val.c = nullptr;
if ((val.which == ArgInfo::UNKNOWN) || (val.which == ArgInfo::NONE)
|| (argi.get_dim() > 1))
if ((val.which == ArgInfo::UNKNOWN) || (val.which == ArgInfo::NONE) || (argi.get_dim() > 1))
error->all(FLERR,"Illegal compute chunk/spread/atom argument: {}", arg[iarg]);
values.push_back(val);