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

This commit is contained in:
sjplimp 2009-06-24 16:10:08 +00:00
parent 94f85fe534
commit d5d81501b3
2 changed files with 6 additions and 2 deletions

View File

@ -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");

View File

@ -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;