fix 2p BC code

This commit is contained in:
Tor Harald Sandve 2020-09-25 09:59:45 +02:00
parent 237b281f09
commit 80fcccdd66

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)