mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-31 09:14:11 -05:00
computeRiTransComponent() checks the transmissibility index and the neighbor cell permeability index for cvf::UNDEFINED_SIZE_T, but not the permeability index of the cell itself. The transmissibility and permeability results are indexed independently, so a defined transmissibility index does not imply a defined permeability index. For a case where transmissibility is stored per cell and permeability per active cell, an inactive cell passes the transmissibility check and then indexes the permeability vector with UNDEFINED_SIZE_T. Check the permeability index of the cell before use, matching the guard in computeNncCombRiTrans().