forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8325 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
ba6063c7a3
commit
a559ad0c45
|
@ -188,7 +188,7 @@ void DihedralHelix::compute(int eflag, int vflag)
|
|||
if (c < -1.0) c = -1.0;
|
||||
|
||||
phi = acos(c);
|
||||
if (dx < 0.0) phi *= -1.0;
|
||||
if (dx > 0.0) phi *= -1.0;
|
||||
si = sin(phi);
|
||||
if (fabs(si) < SMALLER) si = SMALLER;
|
||||
siinv = 1.0/si;
|
||||
|
|
Loading…
Reference in New Issue