move deleting all array data associated with an atom style to AtomVec base class destructor

This commit is contained in:
Axel Kohlmeyer
2020-06-19 12:31:31 -04:00
parent 4d630904b4
commit 4a447f1809
2 changed files with 8 additions and 109 deletions

View File

@ -96,6 +96,14 @@ AtomVec::~AtomVec()
for (int i = 0; i < nargcopy; i++) delete [] argcopy[i];
delete [] argcopy;
memory->destroy(atom->tag);
memory->destroy(atom->type);
memory->destroy(atom->mask);
memory->destroy(atom->image);
memory->destroy(atom->x);
memory->destroy(atom->v);
memory->destroy(atom->f);
for (int i = 0; i < ngrow; i++) {
pdata = mgrow.pdata[i];
datatype = mgrow.datatype[i];