diff --git a/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp b/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp index 4ac2cb7e2..814145c7c 100644 --- a/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp +++ b/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp @@ -711,7 +711,7 @@ namespace { const std::vector kr = computeRelPerm(state); const std::vector pressures = computePressures(state); for (int phaseIdx = 0; phaseIdx < fluid_.numPhases(); ++phaseIdx) { - computeMassFlux(phaseIdx, transi, kr[phaseIdx], pressures[phaseIdx], state); + computeMassFlux(phaseIdx, transi, kr[canph_[phaseIdx]], pressures[canph_[phaseIdx]], state); // std::cout << "===== kr[" << phase << "] = \n" << std::endl; // std::cout << kr[phase]; // std::cout << "===== rq_[" << phase << "].mflux = \n" << std::endl;