From 3d2c7317092a9952b88ac4e6c6e16193c333093a Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 10 Sep 2018 22:32:56 -0400 Subject: [PATCH] avoid class initialization order warnings --- src/compute_chunk_spread_atom.cpp | 2 +- src/compute_chunk_spread_atom.h | 3 +-- src/compute_reduce_chunk.cpp | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/compute_chunk_spread_atom.cpp b/src/compute_chunk_spread_atom.cpp index 93a4d30a2e..c5fd27b0c1 100644 --- a/src/compute_chunk_spread_atom.cpp +++ b/src/compute_chunk_spread_atom.cpp @@ -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"); diff --git a/src/compute_chunk_spread_atom.h b/src/compute_chunk_spread_atom.h index 9a4df080ca..80ee186450 100644 --- a/src/compute_chunk_spread_atom.h +++ b/src/compute_chunk_spread_atom.h @@ -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; diff --git a/src/compute_reduce_chunk.cpp b/src/compute_reduce_chunk.cpp index 40e9dad8dd..beebc5f411 100644 --- a/src/compute_reduce_chunk.cpp +++ b/src/compute_reduce_chunk.cpp @@ -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");