From 791e5974f240c283b3ec03ec5788c16817f4391a Mon Sep 17 00:00:00 2001 From: Kjetil Olsen Lye Date: Mon, 10 Feb 2025 16:08:43 +0100 Subject: [PATCH] Now providing a message for CritcalError when rethrowing in ISTLSolver --- opm/simulators/linalg/ISTLSolver.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/simulators/linalg/ISTLSolver.hpp b/opm/simulators/linalg/ISTLSolver.hpp index 93ef60c75..e118fb647 100644 --- a/opm/simulators/linalg/ISTLSolver.hpp +++ b/opm/simulators/linalg/ISTLSolver.hpp @@ -378,11 +378,11 @@ std::unique_ptr blockJacobiAdjacency(const Grid& grid, void prepare(const Matrix& M, Vector& b) { OPM_TIMEBLOCK(istlSolverPrepare); - OPM_BEGIN_TRY_CATCH_RETHROW_AS_CRITICAL_ERROR(); + try { initPrepare(M,b); prepareFlexibleSolver(); - OPM_END_TRY_CATCH_RETHROW_AS_CRITICAL_ERROR(); + } OPM_CATCH_AND_RETHROW_AS_CRITICAL_ERROR("This is likely due to a faulty linear solver JSON specification. Check for errors related to missing nodes."); }