Commit b221b15d authored by Anders Hafreager's avatar Anders Hafreager
Browse files

NULLing ptrs in comm_brick and dump*.cpp

parent 77bbf03f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -51,7 +51,10 @@ enum{LAYOUT_UNIFORM,LAYOUT_NONUNIFORM,LAYOUT_TILED}; // several files

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

CommBrick::CommBrick(LAMMPS *lmp) : Comm(lmp)
CommBrick::CommBrick(LAMMPS *lmp) : Comm(lmp),
  sendnum(NULL), recvnum(NULL), sendproc(NULL), recvproc(NULL), size_forward_recv(NULL),
  size_reverse_send(NULL), size_reverse_recv(NULL), slablo(NULL), slabhi(NULL), multilo(NULL), multihi(NULL),
  cutghostmulti(NULL), pbc_flag(NULL), pbc(NULL), firstrecv(NULL), sendlist(NULL), maxsendlist(NULL), buf_send(NULL), buf_recv(NULL)
{
  style = 0;
  layout = LAYOUT_UNIFORM;
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ enum{INT,DOUBLE,STRING,BIGINT}; // same as in DumpCustom
/* ---------------------------------------------------------------------- */

DumpCFG::DumpCFG(LAMMPS *lmp, int narg, char **arg) :
  DumpCustom(lmp, narg, arg)
  DumpCustom(lmp, narg, arg), auxname(NULL)
{
  multifile_override = 0;

+6 −1
Original line number Diff line number Diff line
@@ -54,7 +54,12 @@ enum{INT,DOUBLE,STRING,BIGINT}; // same as in DumpCFG
/* ---------------------------------------------------------------------- */

DumpCustom::DumpCustom(LAMMPS *lmp, int narg, char **arg) :
  Dump(lmp, narg, arg)
  Dump(lmp, narg, arg),
  idregion(NULL), thresh_array(NULL), thresh_op(NULL), thresh_value(NULL), thresh_last(NULL),
  thresh_fix(NULL), thresh_fixID(NULL), thresh_first(NULL), earg(NULL), vtype(NULL), vformat(NULL),
  columns(NULL), choose(NULL), dchoose(NULL), clist(NULL), field2index(NULL), argindex(NULL),
  id_compute(NULL), compute(NULL), id_fix(NULL), fix(NULL), id_variable(NULL), variable(NULL),
  vbuf(NULL), id_custom(NULL), flag_custom(NULL), typenames(NULL), pack_choice(NULL)
{
  if (narg == 5) error->all(FLERR,"No dump custom arguments specified");

+2 −1
Original line number Diff line number Diff line
@@ -52,7 +52,8 @@ static inline void fwrite_int32(FILE* fd, uint32_t i)

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

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

DumpImage::DumpImage(LAMMPS *lmp, int narg, char **arg) :
  DumpCustom(lmp, narg, arg)
  DumpCustom(lmp, narg, arg), phistr(NULL), czstr(NULL), upzstr(NULL), perspstr(NULL), 
  bdiamtype(NULL), bcolortype(NULL), avec_line(NULL), avec_tri(NULL), avec_body(NULL), 
  fixptr(NULL), image(NULL), chooseghost(NULL), bufcopy(NULL)
{
  if (binary || multiproc) error->all(FLERR,"Invalid dump image filename");

Loading