Fix uninitialized memebr

This commit is contained in:
Branden Moore
2022-12-16 12:53:34 -06:00
parent a633915829
commit 4e078b01f4

View File

@ -67,7 +67,7 @@ class DihedralCharmmIntel : public DihedralCharmm {
fc_packed3 *fc;
flt_t *weight;
ForceConst() : ljp(nullptr), fc(nullptr), _npairtypes(0), _ndihderaltypes(0) {}
ForceConst() : ljp(nullptr), fc(nullptr), weight(nullptr), _npairtypes(0), _ndihderaltypes(0) {}
~ForceConst() { set_ntypes(0, 0, nullptr); }
void set_ntypes(const int npairtypes, const int ndihderaltypes, Memory *memory);