Merge pull request #2812 from totto82/fixBC_2p

fix BC code for 2p simulations.
This commit is contained in:
Atgeirr Flø Rasmussen 2020-09-28 09:51:01 +02:00 committed by GitHub
commit 0cdd1eda69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3094,13 +3094,13 @@ private:
switch (bcface.component) {
case BCComponent::OIL:
compIdx = oilCompIdx;
compIdx = Indices::canonicalToActiveComponentIndex(oilCompIdx);
break;
case BCComponent::GAS:
compIdx = gasCompIdx;
compIdx = Indices::canonicalToActiveComponentIndex(gasCompIdx);
break;
case BCComponent::WATER:
compIdx = waterCompIdx;
compIdx = Indices::canonicalToActiveComponentIndex(waterCompIdx);
break;
case BCComponent::SOLVENT:
if (!enableSolvent)