remove molecule template index bug in fix gcmc

This commit is contained in:
Axel Kohlmeyer
2015-11-10 19:03:46 -05:00
parent dfb07704c2
commit b3aec4ebd8

View File

@ -253,8 +253,8 @@ void FixGCMC::options(int narg, char **arg)
error->warning(FLERR,"Molecule template for " error->warning(FLERR,"Molecule template for "
"fix gcmc has multiple molecules"); "fix gcmc has multiple molecules");
mode = MOLECULE; mode = MOLECULE;
onemols = &atom->molecules[imol]; onemols = atom->molecules;
nmol = onemols[0]->nset; nmol = onemols[imol]->nset;
iarg += 2; iarg += 2;
} else if (strcmp(arg[iarg],"region") == 0) { } else if (strcmp(arg[iarg],"region") == 0) {
if (iarg+2 > narg) error->all(FLERR,"Illegal fix gcmc command"); if (iarg+2 > narg) error->all(FLERR,"Illegal fix gcmc command");