cutghost is not used anyware; remove to plug memory leaks
This commit is contained in:
@ -25,7 +25,7 @@ using namespace LAMMPS_NS;
|
||||
|
||||
MLIAPDescriptor::MLIAPDescriptor(LAMMPS *lmp) :
|
||||
Pointers(lmp), ndescriptors(0), nelements(0), elements(nullptr), cutsq(nullptr),
|
||||
cutghost(nullptr), radelem(nullptr), wjelem(nullptr)
|
||||
radelem(nullptr), wjelem(nullptr)
|
||||
{
|
||||
cutmax = 0.0;
|
||||
allocated_elements = 0;
|
||||
@ -38,7 +38,6 @@ MLIAPDescriptor::~MLIAPDescriptor()
|
||||
for (int i = 0; i < nelements; i++) delete[] elements[i];
|
||||
delete[] elements;
|
||||
memory->destroy(cutsq);
|
||||
memory->destroy(cutghost);
|
||||
memory->destroy(radelem);
|
||||
memory->destroy(wjelem);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user