avoid class initialization order warnings

This commit is contained in:
Axel Kohlmeyer 2018-09-10 22:32:56 -04:00
parent 02b653c0ce
commit 3d2c731709
3 changed files with 4 additions and 5 deletions

View File

@ -37,7 +37,7 @@ enum{COMPUTE,FIX};
ComputeChunkSpreadAtom::
ComputeChunkSpreadAtom(LAMMPS *lmp, int narg, char **arg) :
Compute(lmp, narg, arg),
which(NULL), argindex(NULL), ids(NULL), value2index(NULL), idchunk(NULL)
idchunk(NULL), ids(NULL), which(NULL), argindex(NULL), value2index(NULL)
{
if (narg < 5) error->all(FLERR,"Illegal compute chunk/spread/atom command");

View File

@ -35,9 +35,8 @@ class ComputeChunkSpreadAtom : public Compute {
protected:
int mode,nvalues;
char *idchunk;
int *which,*argindex,*value2index;
char **ids;
int *which,*argindex,*value2index;
int nmax;
class ComputeChunkAtom *cchunk;

View File

@ -38,8 +38,8 @@ enum{COMPUTE,FIX,VARIABLE};
ComputeReduceChunk::ComputeReduceChunk(LAMMPS *lmp, int narg, char **arg) :
Compute(lmp, narg, arg),
vlocal(NULL), vglobal(NULL), alocal(NULL), aglobal(NULL), varatom(NULL),
which(NULL), argindex(NULL), value2index(NULL), idchunk(NULL), ids(NULL)
which(NULL), argindex(NULL), value2index(NULL), idchunk(NULL), ids(NULL),
vlocal(NULL), vglobal(NULL), alocal(NULL), aglobal(NULL), varatom(NULL)
{
if (narg < 6) error->all(FLERR,"Illegal compute reduce/chunk command");