Commit c81a7236 authored by sjplimp's avatar sjplimp Committed by GitHub
Browse files

Merge pull request #256 from andeplane/IP_BODY

Initialized pointers in BODY
parents f9eb2a99 06959a9c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ enum{SPHERE,LINE,TRI}; // also in DumpImage
/* ---------------------------------------------------------------------- */

BodyNparticle::BodyNparticle(LAMMPS *lmp, int narg, char **arg) :
  Body(lmp, narg, arg)
  Body(lmp, narg, arg), imflag(NULL), imdata(NULL)
{
  if (narg != 3) error->all(FLERR,"Invalid body nparticle command");

+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ enum{ID,TYPE,INDEX};
/* ---------------------------------------------------------------------- */

ComputeBodyLocal::ComputeBodyLocal(LAMMPS *lmp, int narg, char **arg) :
  Compute(lmp, narg, arg)
  Compute(lmp, narg, arg), which(NULL), index(NULL), avec(NULL), bptr(NULL)
{
  if (narg < 4) error->all(FLERR,"Illegal compute body/local command");

+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ enum{ROTATE,ALL};
/* ---------------------------------------------------------------------- */

ComputeTempBody::ComputeTempBody(LAMMPS *lmp, int narg, char **arg) :
  Compute(lmp, narg, arg)
  Compute(lmp, narg, arg), id_bias(NULL), tbias(NULL), avec(NULL)
{
  if (narg < 3) error->all(FLERR,"Illegal compute temp/body command");