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:
@ -351,15 +351,17 @@ FixGCMC::~FixGCMC()
|
|||||||
delete [] idshake;
|
delete [] idshake;
|
||||||
|
|
||||||
if (ngroups > 0) {
|
if (ngroups > 0) {
|
||||||
// calling 2d destructor
|
for (int igroup = 0; igroup < ngroups; igroup++)
|
||||||
memory->destroy(groupstrings);
|
delete [] groupstrings[igroup];
|
||||||
|
memory->sfree(groupstrings);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ngrouptypes > 0) {
|
if (ngrouptypes > 0) {
|
||||||
memory->destroy(grouptypes);
|
memory->destroy(grouptypes);
|
||||||
memory->destroy(grouptypebits);
|
memory->destroy(grouptypebits);
|
||||||
// calling 2d destructor
|
for (int igroup = 0; igroup < ngrouptypes; igroup++)
|
||||||
memory->destroy(grouptypestrings);
|
delete [] grouptypestrings[igroup];
|
||||||
|
memory->sfree(grouptypestrings);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user