mirror of https://github.com/lammps/lammps.git
NULLing ptrs in comm_brick and dump*.cpp
This commit is contained in:
parent
77bbf03f0f
commit
b221b15d24
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -37,7 +37,10 @@ enum{INT,DOUBLE};
|
|||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
DumpLocal::DumpLocal(LAMMPS *lmp, int narg, char **arg) :
|
||||
Dump(lmp, narg, arg)
|
||||
Dump(lmp, narg, arg),
|
||||
label(NULL), vtype(NULL), vformat(NULL), columns(NULL), field2index(NULL),
|
||||
argindex(NULL), id_compute(NULL), compute(NULL), id_fix(NULL), fix(NULL),
|
||||
pack_choice(NULL)
|
||||
{
|
||||
if (narg == 5) error->all(FLERR,"No dump local arguments specified");
|
||||
|
||||
|
|
|
@ -26,7 +26,8 @@ using namespace LAMMPS_NS;
|
|||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
DumpXYZ::DumpXYZ(LAMMPS *lmp, int narg, char **arg) : Dump(lmp, narg, arg)
|
||||
DumpXYZ::DumpXYZ(LAMMPS *lmp, int narg, char **arg) : Dump(lmp, narg, arg),
|
||||
typenames(NULL)
|
||||
{
|
||||
if (narg != 5) error->all(FLERR,"Illegal dump xyz command");
|
||||
if (binary || multiproc) error->all(FLERR,"Invalid dump xyz filename");
|
||||
|
|
Loading…
Reference in New Issue