make sure all allocatable class pointers are initialized to NULL

This commit is contained in:
Axel Kohlmeyer
2018-04-26 15:36:07 -04:00
parent 26d22a4b7a
commit c7edc6636a
7 changed files with 42 additions and 7 deletions

View File

@ -34,7 +34,11 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
AngleCosineSquared::AngleCosineSquared(LAMMPS *lmp) : Angle(lmp) {}
AngleCosineSquared::AngleCosineSquared(LAMMPS *lmp) : Angle(lmp)
{
k = NULL;
theta0 = NULL;
}
/* ---------------------------------------------------------------------- */

View File

@ -30,7 +30,11 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
AngleHarmonic::AngleHarmonic(LAMMPS *lmp) : Angle(lmp) {}
AngleHarmonic::AngleHarmonic(LAMMPS *lmp) : Angle(lmp)
{
k = NULL;
theta0 = NULL;
}
/* ---------------------------------------------------------------------- */

View File

@ -34,7 +34,10 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
AngleCosineShift::AngleCosineShift(LAMMPS *lmp) : Angle(lmp) {}
AngleCosineShift::AngleCosineShift(LAMMPS *lmp) : Angle(lmp)
{
kcost = NULL;
}
/* ---------------------------------------------------------------------- */

View File

@ -34,7 +34,16 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
AngleCosineShiftExp::AngleCosineShiftExp(LAMMPS *lmp) : Angle(lmp) {}
AngleCosineShiftExp::AngleCosineShiftExp(LAMMPS *lmp) : Angle(lmp)
{
doExpansion = NULL;
umin = NULL;
a = NULL;
opt1 = NULL;
theta0 = NULL;
sint = NULL;
cost = NULL;
}
/* ---------------------------------------------------------------------- */

View File

@ -32,7 +32,11 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
AngleDipole::AngleDipole(LAMMPS *lmp) : Angle(lmp) {}
AngleDipole::AngleDipole(LAMMPS *lmp) : Angle(lmp)
{
k = NULL;
gamma0 = NULL;
}
/* ---------------------------------------------------------------------- */

View File

@ -35,7 +35,13 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
AngleFourier::AngleFourier(LAMMPS *lmp) : Angle(lmp) {}
AngleFourier::AngleFourier(LAMMPS *lmp) : Angle(lmp)
{
k = NULL;
C0 = NULL;
C1 = NULL;
C2 = NULL;
}
/* ---------------------------------------------------------------------- */

View File

@ -35,7 +35,12 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
AngleFourierSimple::AngleFourierSimple(LAMMPS *lmp) : Angle(lmp) {}
AngleFourierSimple::AngleFourierSimple(LAMMPS *lmp) : Angle(lmp)
{
k = NULL;
C = NULL;
N = NULL;
}
/* ---------------------------------------------------------------------- */