Added group keywords to fix gcmc

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13455 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
athomps
2015-05-08 19:59:58 +00:00
parent 4dff676396
commit 0c0441b870

View File

@ -351,15 +351,17 @@ FixGCMC::~FixGCMC()
delete [] idshake;
if (ngroups > 0) {
// calling 2d destructor
memory->destroy(groupstrings);
for (int igroup = 0; igroup < ngroups; igroup++)
delete [] groupstrings[igroup];
memory->sfree(groupstrings);
}
if (ngrouptypes > 0) {
memory->destroy(grouptypes);
memory->destroy(grouptypebits);
// calling 2d destructor
memory->destroy(grouptypestrings);
for (int igroup = 0; igroup < ngrouptypes; igroup++)
delete [] grouptypestrings[igroup];
memory->sfree(grouptypestrings);
}
}