mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
The reference is used for residual_histroy.
In the detectNewtonOscillations().
This commit is contained in:
@@ -283,9 +283,9 @@ 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;
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user