mirror of https://github.com/lammps/lammps.git
avoid class initialization order warnings
This commit is contained in:
parent
02b653c0ce
commit
3d2c731709
|
@ -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");
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue