ISTLSolverEbos: throw NumericalIssue instead of LinearSolverProblem

the former is caught by `ebos`, while the latter isn't. Alternatively,
this can be fixed by deriving `LinearSolverProblem` from
`NumericalIssue`, if preferred.
This commit is contained in:
Andreas Lauser 2019-03-01 10:36:29 +01:00
parent b60305082d
commit 21f5c1fbd3
2 changed files with 2 additions and 2 deletions

View File

@ -534,7 +534,7 @@ protected:
// Check for failure of linear solver.
if (!parameters_.ignoreConvergenceFailure_ && !result.converged) {
const std::string msg("Convergence failure for linear solver.");
OPM_THROW_NOLOG(LinearSolverProblem, msg);
OPM_THROW_NOLOG(NumericalIssue, msg);
}
}
protected:

View File

@ -935,7 +935,7 @@ protected:
milun_decomposition( A, iluIteration, milu, *ILU, *reorderer, *inverseReorderer );
}
}
catch ( const Dune::MatrixBlockError& error )
catch (const Dune::MatrixBlockError& error)
{
message = error.what();
std::cerr<<"Exception occured on process " << rank << " during " <<