Commit 78fca46d authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#1353 Also trap correctly Seldon exceptions within the SNES Newton functions...

#1353 Also trap correctly Seldon exceptions within the SNES Newton functions (this extends the work done in #1340).
parent 6c00b461
...@@ -34,6 +34,11 @@ ...@@ -34,6 +34,11 @@
{ \ { \
std::cerr << "Exception caught in the Petsc Snes definition: " << e.what() << std::endl; \ std::cerr << "Exception caught in the Petsc Snes definition: " << e.what() << std::endl; \
return PETSC_ERR_MIN_VALUE; \ return PETSC_ERR_MIN_VALUE; \
} \
catch(Seldon::Error& e) \
{ \
std::cerr << "Exception caught in the Petsc Snes definition: " << e.What() << std::endl; \
return PETSC_ERR_MIN_VALUE; \
} }
# endif // MOREFEM_NO_TRAP_SNES_EXCEPTION # endif // MOREFEM_NO_TRAP_SNES_EXCEPTION
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment