better messages

This commit is contained in:
hnil 2023-03-28 13:54:09 +02:00
parent 992edc1fec
commit 6b4082a1fe

View File

@ -435,6 +435,10 @@ std::unique_ptr<Matrix> blockJacobiAdjacency(const Grid& grid,
iterations_ = result.iterations; iterations_ = result.iterations;
converged_ = result.converged; converged_ = result.converged;
if(result.reduction < parameters_.relaxed_linear_solver_reduction_){ 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 << " iteraions ";
OpmLog::warning(ss.str());
converged_ = true; converged_ = true;
} }
// Check for failure of linear solver. // Check for failure of linear solver.