git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10984 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -59,7 +59,8 @@ Dihedral::~Dihedral()
|
||||
|
||||
void Dihedral::init()
|
||||
{
|
||||
if (!allocated) error->all(FLERR,"Dihedral coeffs are not set");
|
||||
if (!allocated && atom->ndihedraltypes)
|
||||
error->all(FLERR,"Dihedral coeffs are not set");
|
||||
for (int i = 1; i <= atom->ndihedraltypes; i++)
|
||||
if (setflag[i] == 0) error->all(FLERR,"All dihedral coeffs are not set");
|
||||
init_style();
|
||||
|
||||
Reference in New Issue
Block a user