From 11ef1648656e972735ac8de1f386cce1b18e6aaf Mon Sep 17 00:00:00 2001 From: Robert Kloefkorn Date: Fri, 6 Mar 2015 13:30:04 +0100 Subject: [PATCH] SimFullyImplBO: write simulation state at all report step and in the end when adaptive TS is enabled. --- opm/autodiff/SimulatorFullyImplicitBlackoil_impl.hpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/opm/autodiff/SimulatorFullyImplicitBlackoil_impl.hpp b/opm/autodiff/SimulatorFullyImplicitBlackoil_impl.hpp index d4fba1779..e963f425a 100644 --- a/opm/autodiff/SimulatorFullyImplicitBlackoil_impl.hpp +++ b/opm/autodiff/SimulatorFullyImplicitBlackoil_impl.hpp @@ -274,9 +274,8 @@ namespace Opm WellStateFullyImplicitBlackoil well_state; well_state.init(wells, state, prev_well_state); - if( ! adaptiveTimeStepping ) { - output_writer_.writeTimeStep( timer, state, well_state ); - } + // write simulation state at the report stage + output_writer_.writeTimeStep( timer, state, well_state ); // Max oil saturation (for VPPARS), hysteresis update. props_.updateSatOilMax(state.saturation()); @@ -335,9 +334,7 @@ namespace Opm } // Write final simulation state. - if( ! adaptiveTimeStepping ) { - output_writer_.writeTimeStep( timer, state, prev_well_state ); - } + output_writer_.writeTimeStep( timer, state, prev_well_state ); // Stop timer and create timing report total_timer.stop();