forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@243 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
30a7fcd23d
commit
7c6b478472
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue