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

This commit is contained in:
sjplimp
2007-03-20 20:01:59 +00:00
parent 7917f13074
commit 601a78307f
14 changed files with 17 additions and 14 deletions

View File

@ -238,7 +238,7 @@ void ImproperHarmonic::allocate()
void ImproperHarmonic::coeff(int which, int narg, char **arg)
{
if (which != 0) error->all("Invalid coeffs for this improper style");
if (which > 0) return;
if (narg != 3) error->all("Incorrect args for improper coefficients");
if (!allocated) allocate();