mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-15 14:21:56 -06:00
Add non-const overload of model().
This commit is contained in:
parent
6fed5a50c3
commit
fab64f5afb
@ -100,6 +100,9 @@ namespace Opm {
|
||||
/// Reference to physical model.
|
||||
const PhysicalModel& model() const;
|
||||
|
||||
/// Mutable reference to physical model.
|
||||
PhysicalModel& model();
|
||||
|
||||
/// Detect oscillation or stagnation in a given residual history.
|
||||
void detectOscillations(const std::vector<std::vector<double>>& residual_history,
|
||||
const int it, bool& oscillate, bool& stagnate) const;
|
||||
|
@ -60,6 +60,12 @@ namespace Opm
|
||||
return *model_;
|
||||
}
|
||||
|
||||
template <class PhysicalModel>
|
||||
PhysicalModel& NonlinearSolver<PhysicalModel>::model()
|
||||
{
|
||||
return *model_;
|
||||
}
|
||||
|
||||
template <class PhysicalModel>
|
||||
unsigned int NonlinearSolver<PhysicalModel>::nonlinearIterationsLastStep() const
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user