Fix previous submission of nan problem
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user