Commit 720490cf authored by athomps's avatar athomps
Browse files

Added group keywords to fix gcmc, fixed destructor

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13457 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent 0c0441b8
Loading
Loading
Loading
Loading
+1 −14
Original line number Diff line number Diff line
@@ -332,17 +332,6 @@ FixGCMC::~FixGCMC()
  delete random_equal;
  delete random_unequal;

  // remove groups this fix defined
  // only do it if the groups exists and group itself exists

  if (molecule_group && (strcmp(group->names[0],"all") == 0)) {
    char **group_arg = new char*[2];
    group_arg[0] = group->names[molecule_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(coords);
@@ -1802,9 +1791,7 @@ void FixGCMC::attempt_molecule_insertion_full()
      // optionally add to type-based groups

      atom->mask[m] = groupbitall;
      printf("ngrouptypes %d\n",ngrouptypes);
      for (int igroup = 0; igroup < ngrouptypes; igroup++) {
	printf("check type %d %d\n",ngcmc_type,grouptypes[igroup]);
	if (ngcmc_type == grouptypes[igroup])
	  atom->mask[m] |= grouptypebits[igroup];
      }