SimFullyImplBO: write simulation state at all report step and in the end when adaptive

TS is enabled.
This commit is contained in:
Robert Kloefkorn 2015-03-06 13:30:04 +01:00
parent 50fd23bffe
commit 11ef164865

View File

@ -274,9 +274,8 @@ namespace Opm
WellStateFullyImplicitBlackoil well_state; WellStateFullyImplicitBlackoil well_state;
well_state.init(wells, state, prev_well_state); well_state.init(wells, state, prev_well_state);
if( ! adaptiveTimeStepping ) { // write simulation state at the report stage
output_writer_.writeTimeStep( timer, state, well_state ); output_writer_.writeTimeStep( timer, state, well_state );
}
// Max oil saturation (for VPPARS), hysteresis update. // Max oil saturation (for VPPARS), hysteresis update.
props_.updateSatOilMax(state.saturation()); props_.updateSatOilMax(state.saturation());
@ -335,9 +334,7 @@ namespace Opm
} }
// Write final simulation state. // 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 // Stop timer and create timing report
total_timer.stop(); total_timer.stop();