mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
write simulation details to log file.
This commit is contained in:
@@ -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() ) {
|
||||
|
||||
Reference in New Issue
Block a user