Merge pull request #5140 from svenn-t/fix_grat_solvent

Fix WCONPROD GRAT control mode with solvent
This commit is contained in:
Tor Harald Sandve 2024-02-02 08:21:39 +01:00 committed by GitHub
commit 6afee54ec0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,6 +113,9 @@ assembleControlEq(const WellState& well_state,
if (FluidSystem::phaseIsActive(FluidSystem::gasPhaseIdx)) {
rates[Gas] = primary_variables.getQs(Indices::canonicalToActiveComponentIndex(FluidSystem::gasCompIdx));
}
if constexpr (Indices::enableSolvent) {
rates[Gas] += primary_variables.getQs(Indices::contiSolventEqIdx);
}
return rates;
};