Commit 1ff75eab authored by Anders Hafreager's avatar Anders Hafreager
Browse files

Initialized pointers in MISC and MOLECULE

parent 77bbf03f
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -36,7 +36,8 @@ enum{PAIR,TAIL,KSPACE};
/* ---------------------------------------------------------------------- */
/* ---------------------------------------------------------------------- */


ComputeTI::ComputeTI(LAMMPS *lmp, int narg, char **arg) :
ComputeTI::ComputeTI(LAMMPS *lmp, int narg, char **arg) :
  Compute(lmp, narg, arg)
  Compute(lmp, narg, arg), nterms(0), which(NULL), ivar1(NULL), ivar2(NULL),
  ilo(NULL), ihi(NULL), var1(NULL), var2(NULL), pptr(NULL), pstyle(NULL)
{
{
  if (narg < 4) error->all(FLERR,"Illegal compute ti command");
  if (narg < 4) error->all(FLERR,"Illegal compute ti command");


+2 −1
Original line number Original line Diff line number Diff line
@@ -53,7 +53,8 @@ int xdr3dfcoord(XDR *, float *, int *, float *);


/* ---------------------------------------------------------------------- */
/* ---------------------------------------------------------------------- */


DumpXTC::DumpXTC(LAMMPS *lmp, int narg, char **arg) : Dump(lmp, narg, arg)
DumpXTC::DumpXTC(LAMMPS *lmp, int narg, char **arg) : Dump(lmp, narg, arg), 
  coords(NULL)
{
{
  if (narg != 5) error->all(FLERR,"Illegal dump xtc command");
  if (narg != 5) error->all(FLERR,"Illegal dump xtc command");
  if (binary || compressed || multifile || multiproc)
  if (binary || compressed || multifile || multiproc)
+3 −1
Original line number Original line Diff line number Diff line
@@ -45,7 +45,9 @@ enum{DIST_UNIFORM,DIST_GAUSSIAN};
/* ---------------------------------------------------------------------- */
/* ---------------------------------------------------------------------- */


FixDeposit::FixDeposit(LAMMPS *lmp, int narg, char **arg) :
FixDeposit::FixDeposit(LAMMPS *lmp, int narg, char **arg) :
  Fix(lmp, narg, arg)
  Fix(lmp, narg, arg), idregion(NULL), idrigid(NULL),
  idshake(NULL), onemols(NULL), molfrac(NULL), coords(NULL), imageflags(NULL),
  fixrigid(NULL), fixshake(NULL), random(NULL)
{
{
  if (narg < 7) error->all(FLERR,"Illegal fix deposit command");
  if (narg < 7) error->all(FLERR,"Illegal fix deposit command");


+2 −1
Original line number Original line Diff line number Diff line
@@ -41,7 +41,8 @@ enum{NONE,CONSTANT,EQUAL,ATOM};
/* ---------------------------------------------------------------------- */
/* ---------------------------------------------------------------------- */


FixEfield::FixEfield(LAMMPS *lmp, int narg, char **arg) :
FixEfield::FixEfield(LAMMPS *lmp, int narg, char **arg) :
  Fix(lmp, narg, arg)
  Fix(lmp, narg, arg), xstr(NULL), ystr(NULL), zstr(NULL),
  estr(NULL), idregion(NULL), efield(NULL)
{
{
  if (narg < 6) error->all(FLERR,"Illegal fix efield command");
  if (narg < 6) error->all(FLERR,"Illegal fix efield command");


+1 −1
Original line number Original line Diff line number Diff line
@@ -35,7 +35,7 @@ using namespace FixConst;
/* ---------------------------------------------------------------------- */
/* ---------------------------------------------------------------------- */


FixEvaporate::FixEvaporate(LAMMPS *lmp, int narg, char **arg) :
FixEvaporate::FixEvaporate(LAMMPS *lmp, int narg, char **arg) :
  Fix(lmp, narg, arg)
  Fix(lmp, narg, arg), idregion(NULL), list(NULL), mark(NULL), random(NULL)
{
{
  if (narg < 7) error->all(FLERR,"Illegal fix evaporate command");
  if (narg < 7) error->all(FLERR,"Illegal fix evaporate command");


Loading