mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Remove obsolete time and convergence output.
This commit is contained in:
parent
f2a51d29e7
commit
8bd441f431
@ -690,11 +690,6 @@ namespace Opm
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (output_to_files_) {
|
|
||||||
std::string filename = output_dir_ + "/walltime.txt";
|
|
||||||
std::fstream tot_os(filename.c_str(), std::fstream::trunc | std::fstream::out);
|
|
||||||
successReport.reportParam(tot_os);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if (output_cout_) {
|
if (output_cout_) {
|
||||||
std::cout << "\n\n================ Simulation turned off ===============\n" << std::flush;
|
std::cout << "\n\n================ Simulation turned off ===============\n" << std::flush;
|
||||||
|
@ -162,16 +162,8 @@ public:
|
|||||||
|
|
||||||
// Create timers and file for writing timing info.
|
// Create timers and file for writing timing info.
|
||||||
Opm::time::StopWatch solver_timer;
|
Opm::time::StopWatch solver_timer;
|
||||||
Opm::time::StopWatch step_timer;
|
|
||||||
Opm::time::StopWatch total_timer;
|
Opm::time::StopWatch total_timer;
|
||||||
total_timer.start();
|
total_timer.start();
|
||||||
std::string tstep_filename = output_writer_.outputDirectory() + "/step_timing.txt";
|
|
||||||
std::ofstream tstep_os;
|
|
||||||
|
|
||||||
if ( output_writer_.output() && output_writer_.isIORank() )
|
|
||||||
{
|
|
||||||
tstep_os.open(tstep_filename.c_str());
|
|
||||||
}
|
|
||||||
|
|
||||||
// adaptive time stepping
|
// adaptive time stepping
|
||||||
const auto& events = schedule().getEvents();
|
const auto& events = schedule().getEvents();
|
||||||
@ -225,7 +217,6 @@ public:
|
|||||||
// Main simulation loop.
|
// Main simulation loop.
|
||||||
while (!timer.done()) {
|
while (!timer.done()) {
|
||||||
// Report timestep.
|
// Report timestep.
|
||||||
step_timer.start();
|
|
||||||
if ( terminal_output_ )
|
if ( terminal_output_ )
|
||||||
{
|
{
|
||||||
std::ostringstream ss;
|
std::ostringstream ss;
|
||||||
@ -321,11 +312,6 @@ public:
|
|||||||
// update timing.
|
// update timing.
|
||||||
report.solver_time += solver_timer.secsSinceStart();
|
report.solver_time += solver_timer.secsSinceStart();
|
||||||
|
|
||||||
if ( output_writer_.output() && output_writer_.isIORank() )
|
|
||||||
{
|
|
||||||
stepReport.reportParam(tstep_os);
|
|
||||||
}
|
|
||||||
|
|
||||||
// We don't need the reservoir state anymore. It is just passed around to avoid
|
// We don't need the reservoir state anymore. It is just passed around to avoid
|
||||||
// code duplication. Pass empty state instead.
|
// code duplication. Pass empty state instead.
|
||||||
if (timer.initialStep()) {
|
if (timer.initialStep()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user