Fix previous submission of nan problem

This commit is contained in:
lucienPan
2019-11-08 16:22:57 -05:00
parent 29b2dc7043
commit e5933ecc4a

View File

@ -182,8 +182,8 @@ void DihedralClass2::compute(int eflag, int vflag)
costh23 = (vb2xm*vb3x + vb2ym*vb3y + vb2zm*vb3z) * r12c2;
costh12 = MAX(MIN(costh12, 1.0), -1.0);
costh13 = MAX(MIN(costh12, 1.0), -1.0);
costh23 = MAX(MIN(costh12, 1.0), -1.0);
costh13 = MAX(MIN(costh13, 1.0), -1.0);
costh23 = MAX(MIN(costh23, 1.0), -1.0);
c0 = costh13;
// cos and sin of 2 angles and final c