diff --git a/src/fix.cpp b/src/fix.cpp index fbb7450225..8c128b96be 100644 --- a/src/fix.cpp +++ b/src/fix.cpp @@ -32,7 +32,8 @@ int Fix::instance_total = 0; /* ---------------------------------------------------------------------- */ Fix::Fix(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp), -id(NULL), style(NULL), eatom(NULL), vatom(NULL) +id(NULL), style(NULL), extlist(NULL), vector_atom(NULL), array_atom(NULL), +vector_local(NULL), array_local(NULL), eatom(NULL), vatom(NULL) { instance_me = instance_total++; diff --git a/src/molecule.cpp b/src/molecule.cpp index fb7e5a3b50..2253e86af0 100644 --- a/src/molecule.cpp +++ b/src/molecule.cpp @@ -37,7 +37,16 @@ using namespace MathConst; /* ---------------------------------------------------------------------- */ Molecule::Molecule(LAMMPS *lmp, int narg, char **arg, int &index) : - Pointers(lmp) + Pointers(lmp), id(NULL), x(NULL), type(NULL), q(NULL), radius(NULL), + rmass(NULL), num_bond(NULL), bond_type(NULL), bond_atom(NULL), + num_angle(NULL), angle_type(NULL), angle_atom1(NULL), angle_atom2(NULL), + angle_atom3(NULL), num_dihedral(NULL), dihedral_type(NULL), dihedral_atom1(NULL), + dihedral_atom2(NULL), dihedral_atom3(NULL), dihedral_atom4(NULL), num_improper(NULL), + improper_type(NULL), improper_atom1(NULL), improper_atom2(NULL), + improper_atom3(NULL), improper_atom4(NULL), nspecial(NULL), special(NULL), + shake_flag(NULL), shake_atom(NULL), shake_type(NULL), avec_body(NULL), ibodyparams(NULL), + dbodyparams(NULL), dx(NULL), dxcom(NULL), dxbody(NULL), quat_external(NULL), + fp(NULL), count(NULL) { me = comm->me; diff --git a/src/pair_hybrid.cpp b/src/pair_hybrid.cpp index 3f4392d02a..620ceadfd9 100644 --- a/src/pair_hybrid.cpp +++ b/src/pair_hybrid.cpp @@ -31,15 +31,12 @@ using namespace LAMMPS_NS; /* ---------------------------------------------------------------------- */ -PairHybrid::PairHybrid(LAMMPS *lmp) : Pair(lmp) +PairHybrid::PairHybrid(LAMMPS *lmp) : Pair(lmp), + styles(NULL), keywords(NULL), multiple(NULL), nmap(NULL), + map(NULL), special_lj(NULL), special_coul(NULL) { nstyles = 0; - styles = NULL; - keywords = NULL; - multiple = NULL; - special_lj = NULL; - special_coul = NULL; - + outerflag = 0; respaflag = 0; diff --git a/src/random_mars.cpp b/src/random_mars.cpp index fbac44501d..1300cbbb8d 100644 --- a/src/random_mars.cpp +++ b/src/random_mars.cpp @@ -22,7 +22,8 @@ using namespace LAMMPS_NS; /* ---------------------------------------------------------------------- */ -RanMars::RanMars(LAMMPS *lmp, int seed) : Pointers(lmp) +RanMars::RanMars(LAMMPS *lmp, int seed) : Pointers(lmp), + u(NULL) { int ij,kl,i,j,k,l,ii,jj,m; double s,t; diff --git a/src/region.cpp b/src/region.cpp index f42b4e6ad0..e109b7fd6b 100644 --- a/src/region.cpp +++ b/src/region.cpp @@ -28,7 +28,8 @@ using namespace LAMMPS_NS; /* ---------------------------------------------------------------------- */ -Region::Region(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp) +Region::Region(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp), + id(NULL), style(NULL), contact(NULL), list(NULL), xstr(NULL), ystr(NULL), zstr(NULL), tstr(NULL) { int n = strlen(arg[0]) + 1; id = new char[n]; diff --git a/src/region_cylinder.cpp b/src/region_cylinder.cpp index 3d5590b59e..3f2715ea3e 100644 --- a/src/region_cylinder.cpp +++ b/src/region_cylinder.cpp @@ -30,7 +30,7 @@ enum{CONSTANT,VARIABLE}; /* ---------------------------------------------------------------------- */ RegCylinder::RegCylinder(LAMMPS *lmp, int narg, char **arg) : - Region(lmp, narg, arg) + Region(lmp, narg, arg), rstr(NULL) { options(narg-8,&arg[8]); diff --git a/src/region_intersect.cpp b/src/region_intersect.cpp index 468bd28670..fbbbb575b2 100644 --- a/src/region_intersect.cpp +++ b/src/region_intersect.cpp @@ -23,8 +23,10 @@ using namespace LAMMPS_NS; /* ---------------------------------------------------------------------- */ RegIntersect::RegIntersect(LAMMPS *lmp, int narg, char **arg) : - Region(lmp, narg, arg) + Region(lmp, narg, arg), idsub(NULL) { + nregion = 0; + if (narg < 5) error->all(FLERR,"Illegal region command"); int n = force->inumeric(FLERR,arg[2]); if (n < 2) error->all(FLERR,"Illegal region command"); diff --git a/src/region_union.cpp b/src/region_union.cpp index 51bb1b339d..b78ee5580a 100644 --- a/src/region_union.cpp +++ b/src/region_union.cpp @@ -24,8 +24,10 @@ using namespace LAMMPS_NS; /* ---------------------------------------------------------------------- */ -RegUnion::RegUnion(LAMMPS *lmp, int narg, char **arg) : Region(lmp, narg, arg) +RegUnion::RegUnion(LAMMPS *lmp, int narg, char **arg) : Region(lmp, narg, arg), + idsub(NULL) { + nregion = 0; if (narg < 5) error->all(FLERR,"Illegal region command"); int n = force->inumeric(FLERR,arg[2]); if (n < 2) error->all(FLERR,"Illegal region command"); diff --git a/src/respa.cpp b/src/respa.cpp index 7d258a0b4b..db0f11d5b3 100644 --- a/src/respa.cpp +++ b/src/respa.cpp @@ -44,8 +44,10 @@ using namespace LAMMPS_NS; /* ---------------------------------------------------------------------- */ -Respa::Respa(LAMMPS *lmp, int narg, char **arg) : Integrate(lmp, narg, arg) +Respa::Respa(LAMMPS *lmp, int narg, char **arg) : Integrate(lmp, narg, arg), +step(NULL), loop(NULL), hybrid_level(NULL), hybrid_compute(NULL), newton(NULL), fix_respa(NULL) { + nhybrid_styles = 0; if (narg < 1) error->all(FLERR,"Illegal run_style respa command"); nlevels = force->inumeric(FLERR,arg[0]);