mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #5140 from svenn-t/fix_grat_solvent
Fix WCONPROD GRAT control mode with solvent
This commit is contained in:
commit
6afee54ec0
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user