mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-30 11:06:55 -06:00
some output related fixes
there was a screw-up with the output directory (to set it you need to modify the EclipseState by means of the IOConfig object? WTF?) and it seems like the FlowMain.hpp was modified since FlowMainEbos.hpp was added so there was some terminal output missing.
This commit is contained in:
parent
c919b1e6e1
commit
3e8792b9cc
@ -60,6 +60,8 @@ namespace Opm
|
||||
|
||||
Base::deck_ = ebosSimulator_->gridManager().deck();
|
||||
Base::eclipse_state_ = ebosSimulator_->gridManager().eclState();
|
||||
auto ioConfig = Base::eclipse_state_->getIOConfig();
|
||||
ioConfig->setOutputDir(Base::output_dir_);
|
||||
|
||||
// Possibly override IOConfig setting (from deck) for how often RESTART files should get written to disk (every N report step)
|
||||
if (Base::param_.has("output_interval")) {
|
||||
|
@ -255,6 +255,19 @@ public:
|
||||
else {
|
||||
// solve for complete report step
|
||||
solver->step(timer, state, well_state);
|
||||
|
||||
if( terminal_output_ )
|
||||
{
|
||||
std::ostringstream iter_msg;
|
||||
iter_msg << "Stepsize " << (double)unit::convert::to(timer.currentStepLength(), unit::day);
|
||||
if (solver->wellIterations() != 0) {
|
||||
iter_msg << " days well iterations = " << solver->wellIterations() << ", ";
|
||||
}
|
||||
iter_msg << "non-linear iterations = " << solver->nonlinearIterations()
|
||||
<< ", total linear iterations = " << solver->linearIterations()
|
||||
<< "\n";
|
||||
OpmLog::info(iter_msg.str());
|
||||
}
|
||||
}
|
||||
|
||||
solver->model().endReportStep();
|
||||
|
Loading…
Reference in New Issue
Block a user