add missing braces.

This commit is contained in:
Liu Ming
2016-05-16 09:04:54 +08:00
parent a4dc135045
commit 248ea780b3

View File

@@ -245,12 +245,12 @@ namespace Opm {
const double newTimeStep = restart_factor_ * dt; const double newTimeStep = restart_factor_ * dt;
// we need to revise this // we need to revise this
substepTimer.provideTimeStepEstimate( newTimeStep ); substepTimer.provideTimeStepEstimate( newTimeStep );
if( solver_verbose_ ) if( solver_verbose_ ) {
std::string msg; std::string msg;
msg = "Solver convergence failed, restarting solver with new time step (" msg = "Solver convergence failed, restarting solver with new time step ("
+ std::to_string(unit::convert::to( newTimeStep, unit::day )) + " days).\n"; + std::to_string(unit::convert::to( newTimeStep, unit::day )) + " days).\n";
OpmLog::error(msg); OpmLog::error(msg);
}
// reset states // reset states
state = last_state; state = last_state;
well_state = last_well_state; well_state = last_well_state;