Commit 0c0441b8 authored by athomps's avatar athomps
Browse files

Added group keywords to fix gcmc

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13455 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent 4dff6763
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -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);
  }
}