cutghost is not used anyware; remove to plug memory leaks

This commit is contained in:
Axel Kohlmeyer
2025-04-04 17:15:56 -04:00
parent a970f946a7
commit bff980b56f
5 changed files with 9 additions and 21 deletions

View File

@ -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);
}