forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2899 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
94f85fe534
commit
d5d81501b3
|
@ -124,6 +124,9 @@ void FixBondSwap::init()
|
|||
if (force->pair == NULL || force->bond == NULL)
|
||||
error->all("Fix bond/swap requires pair and bond styles");
|
||||
|
||||
if (force->pair->single_enable == 0)
|
||||
error->all("Pair style does not support fix bond/swap");
|
||||
|
||||
if (force->angle == NULL && atom->nangles > 0 && comm->me == 0)
|
||||
error->warning("Fix bond/swap will ignore defined angles");
|
||||
|
||||
|
|
|
@ -65,8 +65,9 @@ ComputeGroupGroup::~ComputeGroupGroup()
|
|||
|
||||
void ComputeGroupGroup::init()
|
||||
{
|
||||
if (force->pair == NULL)
|
||||
error->all("Compute group/group requires a pair style be defined");
|
||||
if (force->pair == NULL || force->pair->single_enable == 0)
|
||||
error->all("Pair style does not support compute group/group");
|
||||
|
||||
pair = force->pair;
|
||||
cutsq = force->pair->cutsq;
|
||||
|
||||
|
|
Loading…
Reference in New Issue