git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11777 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -45,7 +45,7 @@ enum{PERATOM,LOCAL};
|
||||
ComputeReduce::ComputeReduce(LAMMPS *lmp, int narg, char **arg) :
|
||||
Compute(lmp, narg, arg)
|
||||
{
|
||||
int iarg;
|
||||
int iarg = 0;
|
||||
if (strcmp(style,"reduce") == 0) {
|
||||
if (narg < 5) error->all(FLERR,"Illegal compute reduce command");
|
||||
idregion = NULL;
|
||||
@ -59,7 +59,7 @@ ComputeReduce::ComputeReduce(LAMMPS *lmp, int narg, char **arg) :
|
||||
idregion = new char[n];
|
||||
strcpy(idregion,arg[3]);
|
||||
iarg = 4;
|
||||
}
|
||||
} else error->all(FLERR,"Unkown derived compute reduce style");
|
||||
|
||||
if (strcmp(arg[iarg],"sum") == 0) mode = SUM;
|
||||
else if (strcmp(arg[iarg],"min") == 0) mode = MINN;
|
||||
|
||||
Reference in New Issue
Block a user