Various bugfixes in computing effective ToddLongstaff parameters

The most significant bug was in the computation of effective saturation
fraction for the gas phase. The current implementation differs from the
manual.
This commit is contained in:
Tor Harald Sandve
2016-02-02 14:37:36 +01:00
parent cf29eb9aa4
commit 0745be3eba
2 changed files with 56 additions and 90 deletions

View File

@@ -237,7 +237,7 @@ namespace Opm {
const std::vector<PhasePresence>
phaseCondition() const {return this->phaseCondition_;}
void ToddLongstaffModel(std::vector<ADB> viscosity, std::vector<ADB> density, std::vector<ADB> saturations, const Opm::PhaseUsage pu);
void ToddLongstaffModel(std::vector<ADB>& viscosity, std::vector<ADB>& density, const std::vector<ADB>& saturations, const Opm::PhaseUsage pu);