forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1208 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
00be5163fb
commit
6690077acd
|
@ -63,6 +63,8 @@ FixSpring::FixSpring(LAMMPS *lmp, int narg, char **arg) :
|
||||||
igroup2 = group->find(arg[4]);
|
igroup2 = group->find(arg[4]);
|
||||||
if (igroup2 == -1)
|
if (igroup2 == -1)
|
||||||
error->all("Could not find fix spring couple group ID");
|
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];
|
group2bit = group->bitmask[igroup2];
|
||||||
k_spring = atof(arg[5]);
|
k_spring = atof(arg[5]);
|
||||||
xflag = yflag = zflag = 1;
|
xflag = yflag = zflag = 1;
|
||||||
|
|
Loading…
Reference in New Issue