Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify logic in newton solver #6132

Merged

Conversation

gassmoeller
Copy link
Member

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.

@gassmoeller gassmoeller force-pushed the simplify_newton_exceptions branch from 515a759 to 2a805d7 Compare November 6, 2024 14:30
@gassmoeller gassmoeller merged commit aec2bfe into geodynamics:main Nov 6, 2024
8 checks passed
@gassmoeller gassmoeller deleted the simplify_newton_exceptions branch November 6, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants