Merge pull request #1886 from totto82/outputSummaryEbos

Let the output writer determine what to write in ebos
This commit is contained in:
Andreas Lauser 2019-06-14 14:42:15 +02:00 committed by GitHub
commit cc876bef08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -983,24 +983,10 @@ public:
}
/*!
* \brief Returns true if the current solution should be written
* to disk for visualization.
*
* For the ECL simulator we only write at the end of
* episodes/report steps...
* \brief Always returns true. The ecl output writer takes care of the rest
*/
bool shouldWriteOutput() const
{
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();
}
{ return true; }
/*!
* \brief Returns true if an eWoms restart file should be written to disk.
@ -1021,8 +1007,10 @@ public:
// write the desired VTK files.
ParentType::writeOutput(verbose);
bool isSubStep = !EWOMS_GET_PARAM(TypeTag, bool, EnableWriteAllSolutions) && !this->simulator().episodeWillBeOver();
if (enableEclOutput_)
eclWriter_->writeOutput(/*isSubStep=*/!this->simulator().episodeWillBeOver());
eclWriter_->writeOutput(isSubStep);
}
/*!