The reference is used for residual_histroy.

In the detectNewtonOscillations().
This commit is contained in:
Kai Bao
2014-05-23 09:55:29 +02:00
parent f2518b6647
commit cb48d185b9
2 changed files with 4 additions and 4 deletions

View File

@@ -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;

View File

@@ -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.