diff --git a/opm/simulators/flow/BlackoilModel_impl.hpp b/opm/simulators/flow/BlackoilModel_impl.hpp index bf0945a09a0..dd0c5680ca4 100644 --- a/opm/simulators/flow/BlackoilModel_impl.hpp +++ b/opm/simulators/flow/BlackoilModel_impl.hpp @@ -122,10 +122,10 @@ prepareStep(const SimulatorTimerInterface& timer) "- the previous step succeeded on some ranks but failed on others."); } if (lastStepFailed) { - simulator_.model().updateFailed(); + simulator_.problem().updateFailed(); } else { - simulator_.model().advanceTimeLevel(); + simulator_.problem().advanceTimeLevel(); } // Set the timestep size and episode index for the model explicitly. diff --git a/opm/simulators/flow/FlowProblem.hpp b/opm/simulators/flow/FlowProblem.hpp index 73ff334ffd9..2850a0a07f7 100644 --- a/opm/simulators/flow/FlowProblem.hpp +++ b/opm/simulators/flow/FlowProblem.hpp @@ -392,6 +392,16 @@ class FlowProblem : public GetPropType } + void updateFailed() + { + this->model().updateFailed(); + } + + void advanceTimeLevel() + { + this->model().advanceTimeLevel(); + } + /*! * \brief Called by the simulator before each Newton-Raphson iteration. */