Only call writeTimeStep for real sub steps.

Previously, we also called it when the full time step was done.
As the simulator writes that information anyway and we cannot call
it a sub step, we omit the final write in the adaptive time stepper.
This commit is contained in:
Markus Blatt
2016-09-26 11:02:10 +02:00
parent 4c4b5233c0
commit 815480d052

View File

@@ -230,7 +230,10 @@ namespace Opm {
} }
// write data if outputWriter was provided // write data if outputWriter was provided
if( outputWriter ) { // if the time step is done we do not need
// to write it as this will be done by the simulator
// anyway.
if( outputWriter && !substepTimer.done() ) {
bool substep = true; bool substep = true;
const auto& physicalModel = solver.model(); const auto& physicalModel = solver.model();
outputWriter->writeTimeStep( substepTimer, state, well_state, physicalModel, substep); outputWriter->writeTimeStep( substepTimer, state, well_state, physicalModel, substep);