Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions opm/simulators/flow/BlackoilModel_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 10 additions & 0 deletions opm/simulators/flow/FlowProblem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,16 @@ class FlowProblem : public GetPropType<TypeTag, Properties::BaseProblem>

}

void updateFailed()
{
this->model().updateFailed();
}

void advanceTimeLevel()
{
this->model().advanceTimeLevel();
}

/*!
* \brief Called by the simulator before each Newton-Raphson iteration.
*/
Expand Down