diff --git a/src/SNAP/compute_sna_atom.cpp b/src/SNAP/compute_sna_atom.cpp index da948e56cca5fa526198cbd1e64b676609e2e730..326d2d620d4d9d28379fd6e14ed07ff307e03198 100644 --- a/src/SNAP/compute_sna_atom.cpp +++ b/src/SNAP/compute_sna_atom.cpp @@ -30,7 +30,8 @@ using namespace LAMMPS_NS; ComputeSNAAtom::ComputeSNAAtom(LAMMPS *lmp, int narg, char **arg) : - Compute(lmp, narg, arg) + Compute(lmp, narg, arg), cutsq(NULL), list(NULL), sna(NULL), + radelem(NULL), wjelem(NULL) { double rmin0, rfac0; int twojmax, switchflag; diff --git a/src/SNAP/compute_snad_atom.cpp b/src/SNAP/compute_snad_atom.cpp index 2164b3102917542d6fde788d7ab518aa532cbad3..efd4cafbcaed1f0f1bb34ac20e07d43e994dc4ac 100644 --- a/src/SNAP/compute_snad_atom.cpp +++ b/src/SNAP/compute_snad_atom.cpp @@ -30,7 +30,8 @@ using namespace LAMMPS_NS; ComputeSNADAtom::ComputeSNADAtom(LAMMPS *lmp, int narg, char **arg) : - Compute(lmp, narg, arg) + Compute(lmp, narg, arg), cutsq(NULL), list(NULL), snad(NULL), + radelem(NULL), wjelem(NULL) { double rfac0, rmin0; int twojmax, switchflag; diff --git a/src/SNAP/compute_snav_atom.cpp b/src/SNAP/compute_snav_atom.cpp index 29431f29a94d1e4c21aaa62ce42f4344396b9105..c1398864e0e5c12552fb804a24bec53bff0e9752 100644 --- a/src/SNAP/compute_snav_atom.cpp +++ b/src/SNAP/compute_snav_atom.cpp @@ -30,7 +30,8 @@ using namespace LAMMPS_NS; ComputeSNAVAtom::ComputeSNAVAtom(LAMMPS *lmp, int narg, char **arg) : - Compute(lmp, narg, arg) + Compute(lmp, narg, arg), cutsq(NULL), list(NULL), snav(NULL), + radelem(NULL), wjelem(NULL) { double rfac0, rmin0; int twojmax, switchflag; @@ -128,7 +129,7 @@ ComputeSNAVAtom::~ComputeSNAVAtom() memory->destroy(radelem); memory->destroy(wjelem); memory->destroy(cutsq); -delete [] snaptr; + delete [] snaptr; } /* ---------------------------------------------------------------------- */ diff --git a/src/SRD/fix_srd.cpp b/src/SRD/fix_srd.cpp index ae1114732732bee6adf3cbdf303f8da77d9debf2..736b10d83f2d94943d9e63896585b45c8141a516 100644 --- a/src/SRD/fix_srd.cpp +++ b/src/SRD/fix_srd.cpp @@ -79,7 +79,13 @@ static const char cite_fix_srd[] = /* ---------------------------------------------------------------------- */ -FixSRD::FixSRD(LAMMPS *lmp, int narg, char **arg) : Fix(lmp, narg, arg) +FixSRD::FixSRD(LAMMPS *lmp, int narg, char **arg) : Fix(lmp, narg, arg), + wallfix(NULL), wallwhich(NULL), xwall(NULL), xwallhold(NULL), + vwall(NULL), fwall(NULL), avec_ellipsoid(NULL), avec_line(NULL), + avec_tri(NULL), random(NULL), randomshift(NULL), flocal(NULL), + tlocal(NULL), biglist(NULL), binhead(NULL), binnext(NULL), sbuf1(NULL), + sbuf2(NULL), rbuf1(NULL), rbuf2(NULL), nbinbig(NULL), binbig(NULL), + binsrd(NULL), stencil(NULL) { if (lmp->citeme) lmp->citeme->add(cite_fix_srd); diff --git a/src/SRD/fix_wall_srd.cpp b/src/SRD/fix_wall_srd.cpp index 95ec8e796ab56c09d4f4b2f7c6daffdb5eaab2ee..dbca9c5fc88adf49e47a024415bf3b1d9eb07ccb 100644 --- a/src/SRD/fix_wall_srd.cpp +++ b/src/SRD/fix_wall_srd.cpp @@ -36,7 +36,7 @@ enum{NONE,EDGE,CONSTANT,VARIABLE}; /* ---------------------------------------------------------------------- */ FixWallSRD::FixWallSRD(LAMMPS *lmp, int narg, char **arg) : - Fix(lmp, narg, arg) + Fix(lmp, narg, arg), nwall(0), fwall(NULL), fwall_all(NULL) { if (narg < 4) error->all(FLERR,"Illegal fix wall/srd command");