Add try{}catch{} around the energy calculation and the solve() call inside the trustregion solver
In case an excpetion is thrown in either of these two calls, the trustregion solver will not accept the step and continue with a reduced radius
Please register or sign in to comment