Merge pull request #515 from totto82/fixExtrapolateDiff

Extrapolate gas diffusion in CO2 module
This commit is contained in:
Tor Harald Sandve 2022-06-21 09:10:24 +02:00 committed by GitHub
commit 694fe3b85c

View File

@ -75,7 +75,7 @@ public:
{
setNumRegions(numRegions);
for (size_t i = 0; i < numRegions; ++i) {
gasReferenceDensity_[i] = CO2::gasDensity(T_ref, P_ref, true);
gasReferenceDensity_[i] = CO2::gasDensity(T_ref, P_ref, extrapolate);
}
}
#if HAVE_ECL_INPUT
@ -238,7 +238,7 @@ public:
const Evaluation& pressure,
unsigned /*compIdx*/) const
{
return BinaryCoeffBrineCO2::gasDiffCoeff(temperature, pressure);
return BinaryCoeffBrineCO2::gasDiffCoeff(temperature, pressure, extrapolate);
}
const Scalar gasReferenceDensity(unsigned regionIdx) const