NULL ptrs in dump_custom and dump_image

This commit is contained in:
Anders Hafreager
2016-11-07 15:56:47 +01:00
parent b221b15d24
commit f8226e8ae5
2 changed files with 11 additions and 7 deletions

View File

@ -55,10 +55,11 @@ enum{INT,DOUBLE,STRING,BIGINT}; // same as in DumpCFG
DumpCustom::DumpCustom(LAMMPS *lmp, int narg, char **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),
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");

View File

@ -49,9 +49,12 @@ enum{NO,YES};
/* ---------------------------------------------------------------------- */
DumpImage::DumpImage(LAMMPS *lmp, int narg, char **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)
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");