OPM-218: Fix for restart interval write

This commit is contained in:
chflo 2015-08-02 22:36:50 +02:00
parent c86d25a5be
commit 077f3d8ea7
2 changed files with 9 additions and 5 deletions

View File

@ -236,7 +236,8 @@ namespace Opm
BlackoilOutputWriter::
writeTimeStep(const SimulatorTimerInterface& timer,
const SimulatorState& state,
const WellState& wellState)
const WellState& wellState,
bool substep)
{
// VTK output
if( vtkWriter_ ) {
@ -248,7 +249,7 @@ namespace Opm
}
// ECL output
if ( eclWriter_ ) {
eclWriter_->writeTimeStep(timer, state, wellState);
eclWriter_->writeTimeStep(timer, state, wellState, substep);
}
// write backup file
if( backupfile_ )

View File

@ -133,7 +133,8 @@ namespace Opm
/** \copydoc Opm::OutputWriter::writeTimeStep */
void writeTimeStep(const SimulatorTimerInterface& timer,
const SimulatorState& state,
const WellState& )
const WellState&,
bool substep = false)
{
outputStateVtk(grid_, state, timer.currentStepNum(), outputDir_);
}
@ -162,7 +163,8 @@ namespace Opm
/** \copydoc Opm::OutputWriter::writeTimeStep */
void writeTimeStep(const SimulatorTimerInterface& timer,
const SimulatorState& reservoirState,
const WellState& wellState)
const WellState& wellState,
bool substep = false)
{
const BlackoilState* state =
dynamic_cast< const BlackoilState* > (&reservoirState);
@ -196,7 +198,8 @@ namespace Opm
/** \copydoc Opm::OutputWriter::writeTimeStep */
void writeTimeStep(const SimulatorTimerInterface& timer,
const SimulatorState& reservoirState,
const WellState& wellState);
const WellState& wellState,
bool substep = false);
/** \brief return output directory */
const std::string& outputDirectory() const { return outputDir_; }