git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11849 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2014-04-30 15:17:50 +00:00
parent 4c051e92e6
commit 1e40c52c97
1 changed files with 11 additions and 0 deletions

View File

@ -237,6 +237,17 @@ FixGCMC::~FixGCMC()
if (regionflag) delete [] idregion;
delete random_equal;
delete random_unequal;
// remove rotation group this fix defined
if (rotation_group) {
char **group_arg = new char*[2];
group_arg[0] = group->names[rotation_group];
group_arg[1] = (char *) "delete";
group->assign(2,group_arg);
delete [] group_arg;
}
memory->destroy(local_gas_list);
memory->destroy(atom_coord);
memory->destroy(model_atom_buf);