mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user