Catch Floating Point Exception in PETSc with adjoint #2950
Unanswered
xiyuanbao
asked this question in
Firedrake support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am using ROL and firedrake to do adjoint calculation, and I encounter the floating point exception from PETSc randomly in long adjoint solves:
This problem can go away if I add small perturbations to the control variable, or use a fresh
NonlinearVariationalSolver
. But since the program aborts every time the FPE error happens, I will need to restart calculation manually.I am wondering if it is possible to catch the exception in python and use try except to continue computation? Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions