write simulation details to log file.

This commit is contained in:
Liu Ming
2016-05-09 13:33:44 +08:00
parent 60b00a0ddf
commit 431a21d632
3 changed files with 56 additions and 34 deletions

View File

@@ -129,7 +129,10 @@ namespace Opm
step_timer.start();
if ( terminal_output_ )
{
timer.report(std::cout);
std::ostringstream ss;
timer.report(ss);
OpmLog::info(ss.str());
std::cout << ss.str();
}
// Create wells and well state.
@@ -209,7 +212,10 @@ 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);
std::cout << msg << std::endl;
}
if ( output_writer_.output() ) {