Commit b7749ab2 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

individual computes do not need to set vector/array to NULL. reordering fixes...

individual computes do not need to set vector/array to NULL. reordering fixes to silence compiler warnings
parent 554ac7dd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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");

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

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

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

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

Loading