initialize in the constructor for the class that defines variable

This commit is contained in:
Axel Kohlmeyer
2024-04-18 00:09:07 -04:00
parent 6683976ce0
commit ebd77afd58
2 changed files with 1 additions and 1 deletions

View File

@ -28,6 +28,7 @@ MLIAPDescriptor::MLIAPDescriptor(LAMMPS *lmp) :
cutghost(nullptr), radelem(nullptr), wjelem(nullptr) cutghost(nullptr), radelem(nullptr), wjelem(nullptr)
{ {
cutmax = 0.0; cutmax = 0.0;
allocated_elements = 0;
} }
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */

View File

@ -57,7 +57,6 @@ MLIAPDescriptorACE::MLIAPDescriptorACE(LAMMPS *_lmp, char *yacefilename) :
{ {
acemlimpl = new ACE_ML_impl; acemlimpl = new ACE_ML_impl;
allocated_elements = 0;
//read in file with CG coefficients or c_tilde coefficients //read in file with CG coefficients or c_tilde coefficients
ctilde_file = yacefilename; ctilde_file = yacefilename;
delete acemlimpl->basis_set; delete acemlimpl->basis_set;