Commit 3d2c7317 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

avoid class initialization order warnings

parent 02b653c0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");

+1 −2
Original line number Diff line number Diff line
@@ -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;
+2 −2
Original line number Diff line number Diff line
@@ -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");