mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Now providing a message for CritcalError when rethrowing in ISTLSolver
This commit is contained in:
parent
264a8d44d3
commit
791e5974f2
@ -378,11 +378,11 @@ std::unique_ptr<Matrix> 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.");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user