initialize in the constructor for the class that defines variable
This commit is contained in:
@ -28,6 +28,7 @@ MLIAPDescriptor::MLIAPDescriptor(LAMMPS *lmp) :
|
||||
cutghost(nullptr), radelem(nullptr), wjelem(nullptr)
|
||||
{
|
||||
cutmax = 0.0;
|
||||
allocated_elements = 0;
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user