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

This commit is contained in:
sjplimp
2013-08-23 14:29:56 +00:00
parent 9e6e3ea344
commit 0bf07f466d
5 changed files with 6 additions and 1 deletions

View File

@ -232,7 +232,8 @@ void PPPM::init()
int typeA = *p_typeA;
int typeB = *p_typeB;
if (force->angle == NULL || force->bond == NULL)
if (force->angle == NULL || force->bond == NULL ||
force->angle->setflag == NULL || force->bond->setflag == NULL)
error->all(FLERR,"Bond and angle potentials must be defined for TIP4P");
if (typeA < 1 || typeA > atom->nangletypes ||
force->angle->setflag[typeA] == 0)