mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #1886 from totto82/outputSummaryEbos
Let the output writer determine what to write in ebos
This commit is contained in:
commit
cc876bef08
@ -983,24 +983,10 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Returns true if the current solution should be written
|
* \brief Always returns true. The ecl output writer takes care of the rest
|
||||||
* to disk for visualization.
|
|
||||||
*
|
|
||||||
* For the ECL simulator we only write at the end of
|
|
||||||
* episodes/report steps...
|
|
||||||
*/
|
*/
|
||||||
bool shouldWriteOutput() const
|
bool shouldWriteOutput() const
|
||||||
{
|
{ return true; }
|
||||||
const auto& simulator = this->simulator();
|
|
||||||
if (simulator.timeStepIndex() < 0)
|
|
||||||
// always write the initial solution
|
|
||||||
return true;
|
|
||||||
|
|
||||||
if (EWOMS_GET_PARAM(TypeTag, bool, EnableWriteAllSolutions))
|
|
||||||
return true;
|
|
||||||
|
|
||||||
return simulator.episodeWillBeOver();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Returns true if an eWoms restart file should be written to disk.
|
* \brief Returns true if an eWoms restart file should be written to disk.
|
||||||
@ -1021,8 +1007,10 @@ public:
|
|||||||
// write the desired VTK files.
|
// write the desired VTK files.
|
||||||
ParentType::writeOutput(verbose);
|
ParentType::writeOutput(verbose);
|
||||||
|
|
||||||
|
bool isSubStep = !EWOMS_GET_PARAM(TypeTag, bool, EnableWriteAllSolutions) && !this->simulator().episodeWillBeOver();
|
||||||
|
|
||||||
if (enableEclOutput_)
|
if (enableEclOutput_)
|
||||||
eclWriter_->writeOutput(/*isSubStep=*/!this->simulator().episodeWillBeOver());
|
eclWriter_->writeOutput(isSubStep);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
Reference in New Issue
Block a user