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

This commit is contained in:
sjplimp 2014-10-09 17:28:04 +00:00
parent 1c28231331
commit 6efe4bc1a2
1 changed files with 2 additions and 1 deletions

View File

@ -153,7 +153,8 @@ FixGCMC::FixGCMC(LAMMPS *lmp, int narg, char **arg) :
error->all(FLERR,"Fix gcmc molecule must have coordinates");
if (onemols[imol]->typeflag == 0)
error->all(FLERR,"Fix gcmc molecule must have atom types");
if (ngcmc_type+onemols[imol]->ntypes <= 0 || ngcmc_type+onemols[imol]->ntypes > atom->ntypes)
if (ngcmc_type+onemols[imol]->ntypes <= 0 ||
ngcmc_type+onemols[imol]->ntypes > atom->ntypes)
error->all(FLERR,"Invalid atom type in fix gcmc mol command");
if (atom->molecular == 2 && onemols != atom->avec->onemols)