Merge pull request #1191 from totto82/fix_output_new_timestep

FIX output the correct next timestep after convergece failure
This commit is contained in:
Atgeirr Flø Rasmussen 2017-05-30 10:39:21 +02:00 committed by GitHub
commit 1e5652ac3b

View File

@ -354,7 +354,7 @@ namespace Opm {
if( solver_verbose_ ) {
std::string msg;
msg = "Solver convergence failed, cutting timestep to "
+ std::to_string(unit::convert::to( newTimeStep, unit::day )) + " days.\n";
+ std::to_string(unit::convert::to( substepTimer.currentStepLength(), unit::day )) + " days.\n";
OpmLog::problem(msg);
}
// reset states