Removes multiple problem logging for linear solver convergence failure

This commit is contained in:
Rohith Nair
2017-06-26 12:21:44 +02:00
parent 757320c57d
commit 84ca3cd9b9
2 changed files with 1 additions and 4 deletions

View File

@@ -446,9 +446,6 @@ namespace Opm
// Check for failure of linear solver.
if (!parameters_.ignoreConvergenceFailure_ && !result.converged) {
const std::string msg("Convergence failure for linear solver.");
if (isIORank_) {
OpmLog::problem(msg);
}
OPM_THROW_NOLOG(LinearSolverProblem, msg);
}
}

View File

@@ -370,7 +370,7 @@ namespace Opm {
substepTimer.provideTimeStepEstimate( newTimeStep );
if( solver_verbose_ ) {
std::string msg;
msg = cause_of_failure + "\n Timestep chopped to "
msg = cause_of_failure + "\nTimestep chopped to "
+ std::to_string(unit::convert::to( substepTimer.currentStepLength(), unit::day )) + " days\n";
OpmLog::problem(msg);
}