Use ASIN instead of ACOS where ACOS may be unstable
This copies the fix for the AmoebaTorsionTorsionForce over to the other two forces that calculate angles via the inverse cosine -- specifically the in-plane angle force and the stretch-bend force. The TorsionTorsion fix did not completely solve the occasional simulation blowup, although it did make it a *lot* less frequent (it went from happening within 5 minutes to happening ~once per day).
Showing
Please register or sign in to comment