Merge pull request #679 from qilicun/log_simulation_messages

write simulation details to log file.
This commit is contained in:
Atgeirr Flø Rasmussen
2016-05-19 15:09:39 +02:00
3 changed files with 50 additions and 33 deletions

View File

@@ -131,7 +131,9 @@ namespace Opm
step_timer.start();
if ( terminal_output_ )
{
timer.report(std::cout);
std::ostringstream ss;
timer.report(ss);
OpmLog::info(ss.str());
}
// Create wells and well state.
@@ -211,7 +213,9 @@ namespace Opm
if ( terminal_output_ )
{
std::cout << "Fully implicit solver took: " << st << " seconds. Total solver time taken: " << stime << " seconds." << std::endl;
std::string msg;
msg = "Fully implicit solver took: " + std::to_string(st) + " seconds. Total solver time taken: " + std::to_string(stime) + " seconds.";
OpmLog::info(msg);
}
if ( output_writer_.output() ) {