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

This commit is contained in:
sjplimp 2007-12-03 15:49:30 +00:00
parent 00be5163fb
commit 6690077acd
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,8 @@ FixSpring::FixSpring(LAMMPS *lmp, int narg, char **arg) :
igroup2 = group->find(arg[4]);
if (igroup2 == -1)
error->all("Could not find fix spring couple group ID");
if (igroup2 == igroup)
error->all("Two groups cannot be the same in fix spring couple");
group2bit = group->bitmask[igroup2];
k_spring = atof(arg[5]);
xflag = yflag = zflag = 1;