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;
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user