ebos: never write restart files using the ad-hoc format

medium term, the output and restart file writing should be refactored:
the simulator does not need to be aware of this because it can be
accomplised in the problem's endTimeStep() method.
This commit is contained in:
Andreas Lauser
2019-05-03 14:06:41 +02:00
parent e19508e599
commit 701eb0edd3
+4 -7
View File
@@ -957,15 +957,12 @@ public:
/*!
* \brief Returns true if an eWoms restart file should be written to disk.
*
* The EclProblem does not write any restart files using the ad-hoc format, only ones
* using the ECL format.
*/
bool shouldWriteRestartFile() const
{
unsigned n = EWOMS_GET_PARAM(TypeTag, unsigned, RestartWritingInterval);
unsigned i = this->simulator().timeStepIndex();
if (i > 0 && (i%n) == 0)
return true; // we don't write a restart file for the initial condition
return false;
}
{ return false; }
/*!
* \brief Write the requested quantities of the current solution into the output