geodynamics / aspect

A parallel, extensible finite element code to simulate convection in both 2D and 3D models.
https://aspect.geodynamics.org/
Other
227 stars 237 forks source link

Simplify logic in newton solver #6132

Closed gassmoeller closed 2 weeks ago

gassmoeller commented 2 weeks ago

Still related to #6116 this just removes one level of branching to make the code simpler to read. solve_stokes is now always inside the try-catch block, but if use_Newton_failsafe is false, we just rethrow the exception immediately in the catch block.