Fix uninitialized memebr
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user