Merge pull request #426 from joakim-hove/OPM-218

Opm 218
This commit is contained in:
Joakim Hove 2015-08-05 15:11:28 +02:00
commit 5ed11e4af9
2 changed files with 11 additions and 7 deletions

View File

@ -236,19 +236,20 @@ namespace Opm
BlackoilOutputWriter::
writeTimeStep(const SimulatorTimerInterface& timer,
const SimulatorState& state,
const WellState& wellState)
const WellState& wellState,
bool substep)
{
// VTK output
if( vtkWriter_ ) {
vtkWriter_->writeTimeStep( timer, state, wellState );
vtkWriter_->writeTimeStep( timer, state, wellState , false );
}
// Matlab output
if( matlabWriter_ ) {
matlabWriter_->writeTimeStep( timer, state, wellState );
matlabWriter_->writeTimeStep( timer, state, wellState , false );
}
// 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_; }