/* */ #include #include #include #include #include #include namespace Opm { void logTimer(const AdaptiveSimulatorTimer& substepTimer) { std::ostringstream ss; boost::posix_time::time_facet* facet = new boost::posix_time::time_facet("%d-%b-%Y"); ss.imbue(std::locale(std::locale::classic(), facet)); ss <<"\nStarting time step " << substepTimer.currentStepNum() << ", stepsize " << unit::convert::to(substepTimer.currentStepLength(), unit::day) << " days," << " at day " << (double)unit::convert::to(substepTimer.simulationTimeElapsed(), unit::day) << "/" << (double)unit::convert::to(substepTimer.totalTime(), unit::day) << ", date = " << substepTimer.currentDateTime(); OpmLog::info(ss.str()); } }