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:: BlackoilOutputWriter::
writeTimeStep(const SimulatorTimerInterface& timer, writeTimeStep(const SimulatorTimerInterface& timer,
const SimulatorState& state, const SimulatorState& state,
const WellState& wellState) const WellState& wellState,
bool substep)
{ {
// VTK output // VTK output
if( vtkWriter_ ) { if( vtkWriter_ ) {
vtkWriter_->writeTimeStep( timer, state, wellState ); vtkWriter_->writeTimeStep( timer, state, wellState , false );
} }
// Matlab output // Matlab output
if( matlabWriter_ ) { if( matlabWriter_ ) {
matlabWriter_->writeTimeStep( timer, state, wellState ); matlabWriter_->writeTimeStep( timer, state, wellState , false );
} }
// ECL output // ECL output
if ( eclWriter_ ) { if ( eclWriter_ ) {
eclWriter_->writeTimeStep(timer, state, wellState); eclWriter_->writeTimeStep(timer, state, wellState, substep);
} }
// write backup file // write backup file
if( backupfile_ ) if( backupfile_ )

View File

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