forked from lijiext/lammps
individual computes do not need to set vector/array to NULL. reordering fixes to silence compiler warnings
This commit is contained in:
parent
554ac7dd12
commit
b7749ab212
|
@ -33,8 +33,7 @@ using namespace MathConst;
|
|||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
ComputeAngleLocal::ComputeAngleLocal(LAMMPS *lmp, int narg, char **arg) :
|
||||
Compute(lmp, narg, arg),
|
||||
vector(NULL), array(NULL)
|
||||
Compute(lmp, narg, arg)
|
||||
{
|
||||
if (narg < 4) error->all(FLERR,"Illegal compute angle/local command");
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ enum{DIST,ENG,FORCE};
|
|||
|
||||
ComputeBondLocal::ComputeBondLocal(LAMMPS *lmp, int narg, char **arg) :
|
||||
Compute(lmp, narg, arg),
|
||||
bstyle(NULL), vector(NULL), array(NULL)
|
||||
bstyle(NULL)
|
||||
{
|
||||
if (narg < 4) error->all(FLERR,"Illegal compute bond/local command");
|
||||
|
||||
|
|
|
@ -57,9 +57,10 @@ ComputeChunkAtom *ComputeChunkAtom::cptr;
|
|||
|
||||
ComputeChunkAtom::ComputeChunkAtom(LAMMPS *lmp, int narg, char **arg) :
|
||||
Compute(lmp, narg, arg),
|
||||
id_fix(NULL), chunk(NULL), ichunk(NULL), exclude(NULL),
|
||||
chunk_volume_vec(NULL), coord(NULL), chunkID(NULL), idregion(NULL), cfvid(NULL),
|
||||
hash(NULL), varatom(NULL)
|
||||
chunk_volume_vec(NULL), coord(NULL), ichunk(NULL), chunkID(NULL),
|
||||
cfvid(NULL), idregion(NULL), region(NULL), cchunk(NULL), fchunk(NULL),
|
||||
varatom(NULL), id_fix(NULL), fixstore(NULL), lockfix(NULL), chunk(NULL),
|
||||
exclude(NULL), hash(NULL)
|
||||
{
|
||||
if (narg < 4) error->all(FLERR,"Illegal compute chunk/atom command");
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ using namespace LAMMPS_NS;
|
|||
|
||||
ComputeDisplaceAtom::ComputeDisplaceAtom(LAMMPS *lmp, int narg, char **arg) :
|
||||
Compute(lmp, narg, arg),
|
||||
id_fix(NULL), displace(NULL)
|
||||
displace(NULL), id_fix(NULL)
|
||||
{
|
||||
if (narg != 3) error->all(FLERR,"Illegal compute displace/atom command");
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ enum{TYPE,RADIUS};
|
|||
|
||||
ComputePairLocal::ComputePairLocal(LAMMPS *lmp, int narg, char **arg) :
|
||||
Compute(lmp, narg, arg),
|
||||
pstyle(NULL), pindex(NULL), vector(NULL), array(NULL)
|
||||
pstyle(NULL), pindex(NULL)
|
||||
{
|
||||
if (narg < 4) error->all(FLERR,"Illegal compute pair/local command");
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ using namespace LAMMPS_NS;
|
|||
|
||||
ComputePropertyAtom::ComputePropertyAtom(LAMMPS *lmp, int narg, char **arg) :
|
||||
Compute(lmp, narg, arg),
|
||||
index(NULL), vector(NULL), array(NULL), pack_choice(NULL)
|
||||
index(NULL), pack_choice(NULL)
|
||||
{
|
||||
if (narg < 4) error->all(FLERR,"Illegal compute property/atom command");
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ enum{TYPE,RADIUS};
|
|||
|
||||
ComputePropertyLocal::ComputePropertyLocal(LAMMPS *lmp, int narg, char **arg) :
|
||||
Compute(lmp, narg, arg),
|
||||
vector(NULL), array(NULL), indices(NULL), pack_choice(NULL)
|
||||
indices(NULL), pack_choice(NULL)
|
||||
{
|
||||
if (narg < 4) error->all(FLERR,"Illegal compute property/local command");
|
||||
|
||||
|
|
Loading…
Reference in New Issue