Commit 16a02ef2 authored by sjplimp's avatar sjplimp Committed by GitHub
Browse files

Merge pull request #254 from andeplane/IP_root

Initialized pointers in src folder
parents 2c801320 45f2e86d
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;

+7 −1
Original line number Diff line number Diff line
@@ -54,7 +54,13 @@ 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)
+6 −1
Original line number Diff line number Diff line
@@ -49,7 +49,12 @@ enum{NO,YES};
/* ---------------------------------------------------------------------- */

DumpImage::DumpImage(LAMMPS *lmp, int narg, char **arg) :
  DumpCustom(lmp, narg, arg)
  DumpCustom(lmp, narg, arg), thetastr(NULL), phistr(NULL), cxstr(NULL), 
  cystr(NULL), czstr(NULL), upxstr(NULL), upystr(NULL), upzstr(NULL), 
  zoomstr(NULL), perspstr(NULL), diamtype(NULL), diamelement(NULL), 
  bdiamtype(NULL), colortype(NULL), colorelement(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