From 9fe98514c091581a5b09768c73fbcc0fc41bf41c Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Fri, 23 May 2014 11:39:26 +0200 Subject: [PATCH] Changing the location of & when defining reference. --- opm/autodiff/FullyImplicitBlackoilSolver.hpp | 6 +++--- opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/opm/autodiff/FullyImplicitBlackoilSolver.hpp b/opm/autodiff/FullyImplicitBlackoilSolver.hpp index 45038744c..a85f719dc 100644 --- a/opm/autodiff/FullyImplicitBlackoilSolver.hpp +++ b/opm/autodiff/FullyImplicitBlackoilSolver.hpp @@ -283,11 +283,11 @@ namespace Opm { /// residual mass balance (tol_cnv). bool getConvergence(const double dt); - void detectNewtonOscillations(const std::vector> &residual_history, + void detectNewtonOscillations(const std::vector>& 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_; } diff --git a/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp b/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp index be402e244..b6770f48d 100644 --- a/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp +++ b/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp @@ -1705,9 +1705,9 @@ namespace { template void - FullyImplicitBlackoilSolver::detectNewtonOscillations(const std::vector> &residual_history, + FullyImplicitBlackoilSolver::detectNewtonOscillations(const std::vector>& 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 void - FullyImplicitBlackoilSolver::stablizeNewton(V &dx, V &dxOld, const double omega, + FullyImplicitBlackoilSolver::stablizeNewton(V& dx, V& dxOld, const double omega, const RelaxType relax_type) const { const V tempDxOld = dxOld; dxOld = dx;