From 21f5c1fbd3a63765b24975d34eecf015c7f88521 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Fri, 1 Mar 2019 10:36:29 +0100 Subject: [PATCH] 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. --- opm/autodiff/ISTLSolverEbos.hpp | 2 +- opm/autodiff/ParallelOverlappingILU0.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/autodiff/ISTLSolverEbos.hpp b/opm/autodiff/ISTLSolverEbos.hpp index 52ad5674d..e00fd6a16 100644 --- a/opm/autodiff/ISTLSolverEbos.hpp +++ b/opm/autodiff/ISTLSolverEbos.hpp @@ -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: diff --git a/opm/autodiff/ParallelOverlappingILU0.hpp b/opm/autodiff/ParallelOverlappingILU0.hpp index caf0b41be..2698841ef 100644 --- a/opm/autodiff/ParallelOverlappingILU0.hpp +++ b/opm/autodiff/ParallelOverlappingILU0.hpp @@ -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 " <<