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 08b90e8acd
commit ac37eef547

View File

@ -230,7 +230,10 @@ namespace Opm {
}
// 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;
const auto& physicalModel = solver.model();
outputWriter->writeTimeStep( substepTimer, state, well_state, physicalModel, substep);