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

This commit is contained in:
sjplimp 2009-10-12 16:09:55 +00:00
parent e7d5e47e27
commit 8d26e870b4
2 changed files with 3 additions and 2 deletions

View File

@ -52,7 +52,7 @@ FixAddForce::FixAddForce(LAMMPS *lmp, int narg, char **arg) :
iregion = domain->find_region(arg[iarg+1]); iregion = domain->find_region(arg[iarg+1]);
if (iregion == -1) error->all("Fix addforce region ID does not exist"); if (iregion == -1) error->all("Fix addforce region ID does not exist");
iarg += 2; iarg += 2;
} } else error->all("Illegal fix addforce command");
} }
force_flag = 0; force_flag = 0;

View File

@ -55,7 +55,8 @@ FixAveForce::FixAveForce(LAMMPS *lmp, int narg, char **arg) :
iregion = domain->find_region(arg[iarg+1]); iregion = domain->find_region(arg[iarg+1]);
if (iregion == -1) error->all("Fix aveforce region ID does not exist"); if (iregion == -1) error->all("Fix aveforce region ID does not exist");
iarg += 2; iarg += 2;
} } else error->all("Illegal fix aveforce command");
} }
foriginal_all[0] = foriginal_all[1] = foriginal_all[0] = foriginal_all[1] =