mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-07-07 04:53:03 -05:00
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:
parent
e19508e599
commit
701eb0edd3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user