diff --git a/ebos/eclproblem.hh b/ebos/eclproblem.hh index dfcb1c63f..6d65ee539 100644 --- a/ebos/eclproblem.hh +++ b/ebos/eclproblem.hh @@ -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)