mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
- Remove wrong output if already converged
This commit is contained in:
parent
445e4f10fe
commit
2e4d5ee57b
@ -434,13 +434,15 @@ std::unique_ptr<Matrix> blockJacobiAdjacency(const Grid& grid,
|
||||
// store number of iterations
|
||||
iterations_ = result.iterations;
|
||||
converged_ = result.converged;
|
||||
if(result.reduction < parameters_.relaxed_linear_solver_reduction_){
|
||||
std::stringstream ss;
|
||||
ss<< "Full linear solver tolerance not achived. The reduction is:" << result.reduction
|
||||
<< " after " << result.iterations << " iterations ";
|
||||
OpmLog::warning(ss.str());
|
||||
converged_ = true;
|
||||
}
|
||||
if(!converged_){
|
||||
if(result.reduction < parameters_.relaxed_linear_solver_reduction_){
|
||||
std::stringstream ss;
|
||||
ss<< "Full linear solver tolerance not achived. The reduction is:" << result.reduction
|
||||
<< " after " << result.iterations << " iterations ";
|
||||
OpmLog::warning(ss.str());
|
||||
converged_ = true;
|
||||
}
|
||||
}
|
||||
// Check for failure of linear solver.
|
||||
if (!parameters_.ignoreConvergenceFailure_ && !converged_) {
|
||||
const std::string msg("Convergence failure for linear solver.");
|
||||
|
Loading…
Reference in New Issue
Block a user