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:
parent
08b90e8acd
commit
ac37eef547
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user