SimpleHuDuanH2O: avoid use of dangling reference

using a reference to a temporary is not okay
This commit is contained in:
Arne Morten Kvarving
2022-08-02 09:37:29 +02:00
parent f2eadd2ab3
commit b626f0d713

View File

@@ -366,7 +366,7 @@ public:
throw NumericalIssue(oss.str());
}
const Evaluation& rho = liquidDensity(temperature, pressure, extrapolate);
const Evaluation rho = liquidDensity(temperature, pressure, extrapolate);
return Common::viscosity(temperature, rho);
}