mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-31 11:36:55 -06:00
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:
parent
b60305082d
commit
21f5c1fbd3
@ -534,7 +534,7 @@ protected:
|
|||||||
// Check for failure of linear solver.
|
// Check for failure of linear solver.
|
||||||
if (!parameters_.ignoreConvergenceFailure_ && !result.converged) {
|
if (!parameters_.ignoreConvergenceFailure_ && !result.converged) {
|
||||||
const std::string msg("Convergence failure for linear solver.");
|
const std::string msg("Convergence failure for linear solver.");
|
||||||
OPM_THROW_NOLOG(LinearSolverProblem, msg);
|
OPM_THROW_NOLOG(NumericalIssue, msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
protected:
|
protected:
|
||||||
|
@ -935,7 +935,7 @@ protected:
|
|||||||
milun_decomposition( A, iluIteration, milu, *ILU, *reorderer, *inverseReorderer );
|
milun_decomposition( A, iluIteration, milu, *ILU, *reorderer, *inverseReorderer );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch ( const Dune::MatrixBlockError& error )
|
catch (const Dune::MatrixBlockError& error)
|
||||||
{
|
{
|
||||||
message = error.what();
|
message = error.what();
|
||||||
std::cerr<<"Exception occured on process " << rank << " during " <<
|
std::cerr<<"Exception occured on process " << rank << " during " <<
|
||||||
|
Loading…
Reference in New Issue
Block a user