Moved step_msg inside if-branch

as it is not used outside of it.
This commit is contained in:
Markus Blatt 2016-07-04 15:07:02 +02:00
parent 047ae8f444
commit fb76737bea

View File

@ -179,10 +179,10 @@ namespace Opm
const WellModel well_model(wells);
auto solver = asImpl().createSolver(well_model);
std::ostringstream step_msg;
if( terminal_output_ )
{
std::ostringstream step_msg;
boost::posix_time::time_facet* facet = new boost::posix_time::time_facet("%d-%b-%Y");
step_msg.imbue(std::locale(std::locale::classic(), facet));
step_msg << "\nTime step " << std::setw(4) <<timer.currentStepNum()