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

This commit is contained in:
sjplimp 2007-01-17 20:52:30 +00:00
parent 30a7fcd23d
commit 7c6b478472
1 changed files with 3 additions and 4 deletions

View File

@ -412,10 +412,9 @@ void PairSW::read_file(char *file)
params[nparams].powerp = atof(words[11]);
params[nparams].powerq = atof(words[12]);
if (params[nparams].epsilon < 0.0 || params[nparams].sigma <= 0.0 ||
params[nparams].littlea <= 0.0 || params[nparams].lambda < 0.0 ||
params[nparams].gamma < 0.0 || params[nparams].costheta > 1.0 ||
params[nparams].costheta < -1.0 || params[nparams].biga < 0.0 ||
if (params[nparams].epsilon < 0.0 || params[nparams].sigma < 0.0 ||
params[nparams].littlea < 0.0 || params[nparams].lambda < 0.0 ||
params[nparams].gamma < 0.0 || params[nparams].biga < 0.0 ||
params[nparams].bigb < 0.0 || params[nparams].powerp < 0.0 ||
params[nparams].powerq < 0.0)
error->all("Illegal Stillinger-Weber parameter");