make sure class pointers are initialized to NULL and virial accumulator.

This commit is contained in:
Axel Kohlmeyer
2020-06-24 17:23:20 -04:00
parent 3525d1f104
commit 3e39b8c62d
4 changed files with 8 additions and 0 deletions

View File

@ -39,6 +39,7 @@ enum{NONE,LINEAR,SPLINE};
Bond::Bond(LAMMPS *lmp) : Pointers(lmp)
{
energy = 0.0;
virial[0] = virial[1] = virial[2] = virial[3] = virial[4] = virial[5] = 0.0;
writedata = 1;
allocated = 0;