mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-29 04:23:48 -06:00
Changing the location of & when defining reference.
This commit is contained in:
parent
1da24f3c3c
commit
9fe98514c0
@ -283,11 +283,11 @@ namespace Opm {
|
||||
/// residual mass balance (tol_cnv).
|
||||
bool getConvergence(const double dt);
|
||||
|
||||
void detectNewtonOscillations(const std::vector<std::vector<double>> &residual_history,
|
||||
void detectNewtonOscillations(const std::vector<std::vector<double>>& residual_history,
|
||||
const int it, const double relaxRelTol,
|
||||
bool &oscillate, bool &stagnate) const;
|
||||
bool& oscillate, bool& stagnate) const;
|
||||
|
||||
void stablizeNewton(V &dx, V &dxOld, const double omega, const RelaxType relax_type) const;
|
||||
void stablizeNewton(V& dx, V& dxOld, const double omega, const RelaxType relax_type) const;
|
||||
|
||||
double dpMaxRel() const { return dp_max_rel_; }
|
||||
double dsMax() const { return ds_max_; }
|
||||
|
@ -1705,9 +1705,9 @@ namespace {
|
||||
|
||||
template<class T>
|
||||
void
|
||||
FullyImplicitBlackoilSolver<T>::detectNewtonOscillations(const std::vector<std::vector<double>> &residual_history,
|
||||
FullyImplicitBlackoilSolver<T>::detectNewtonOscillations(const std::vector<std::vector<double>>& residual_history,
|
||||
const int it, const double relaxRelTol,
|
||||
bool &oscillate, bool &stagnate) const
|
||||
bool& oscillate, bool& stagnate) const
|
||||
{
|
||||
// The detection of oscillation in two primary variable results in the report of the detection
|
||||
// of oscillation for the solver.
|
||||
@ -1744,7 +1744,7 @@ namespace {
|
||||
|
||||
template<class T>
|
||||
void
|
||||
FullyImplicitBlackoilSolver<T>::stablizeNewton(V &dx, V &dxOld, const double omega,
|
||||
FullyImplicitBlackoilSolver<T>::stablizeNewton(V& dx, V& dxOld, const double omega,
|
||||
const RelaxType relax_type) const {
|
||||
const V tempDxOld = dxOld;
|
||||
dxOld = dx;
|
||||
|
Loading…
Reference in New Issue
Block a user