fixed: pass by reference as intended

This commit is contained in:
Arne Morten Kvarving
2018-04-13 11:24:48 +02:00
parent 33d2095b07
commit 351c495388
2 changed files with 2 additions and 2 deletions

View File

@@ -197,7 +197,7 @@ namespace Opm
mu_w_eff = 1./mu_w_eff;
}
void PolymerProperties::effectiveViscWithDer(const double c, const double mu_w, double& mu_w_eff, double dmu_w_eff_dc) const {
void PolymerProperties::effectiveViscWithDer(const double c, const double mu_w, double& mu_w_eff, double& dmu_w_eff_dc) const {
effectiveInvViscWithDer(c, mu_w, mu_w_eff, dmu_w_eff_dc);
mu_w_eff = 1./mu_w_eff;
dmu_w_eff_dc = -dmu_w_eff_dc*mu_w_eff*mu_w_eff;

View File

@@ -283,7 +283,7 @@ namespace Opm
void effectiveViscWithDer(const double c, const double visc
, double& mu_w_eff
, double dmu_w_eff_dc) const;
, double& dmu_w_eff_dc) const;
void effectiveInvVisc(const double c, const double mu_w,
double& inv_mu_w_eff) const;