diff --git a/ebos/ecltransmissibility_impl.hh b/ebos/ecltransmissibility_impl.hh index ee7caf30b..2d9580631 100644 --- a/ebos/ecltransmissibility_impl.hh +++ b/ebos/ecltransmissibility_impl.hh @@ -352,11 +352,8 @@ update(bool global, const std::function& map, const axisCentroids), permeability_[outsideElemIdx]); - auto coarseElemIdx = lookUpData_.template getFieldPropIdx(elemIdx);; - auto coarseOutsideElemIdx = lookUpData_.template getFieldPropIdx(outsideElemIdx); - - applyNtg_(halfTrans1, insideFaceIdx, coarseElemIdx, ntg); - applyNtg_(halfTrans2, outsideFaceIdx, coarseOutsideElemIdx, ntg); + applyNtg_(halfTrans1, insideFaceIdx, elemIdx, ntg); + applyNtg_(halfTrans2, outsideFaceIdx, outsideElemIdx, ntg); // convert half transmissibilities to full face // transmissibilities using the harmonic mean @@ -474,8 +471,8 @@ update(bool global, const std::function& map, const axisCentroids), porosity_[outsideElemIdx]); - applyNtg_(halfDiffusivity1, insideFaceIdx, coarseElemIdx, ntg); - applyNtg_(halfDiffusivity2, outsideFaceIdx, coarseOutsideElemIdx, ntg); + applyNtg_(halfDiffusivity1, insideFaceIdx, elemIdx, ntg); + applyNtg_(halfDiffusivity2, outsideFaceIdx, outsideElemIdx, ntg); //TODO Add support for multipliers Scalar diffusivity; @@ -500,7 +497,7 @@ update(bool global, const std::function& map, const // Loop over all elements (global grid) and store Cartesian index for (const auto& elem : elements(grid_.leafGridView())) { int elemIdx = elemMapper.index(elem); - int cartElemIdx = this->lookUpCartesianData_.template getFieldPropCartesianIdx(elemIdx); + int cartElemIdx = cartMapper_.cartesianIndex(elemIdx); globalToLocal[cartElemIdx] = elemIdx; } @@ -1043,7 +1040,7 @@ applyNncMultreg_(const std::unordered_map& cartesianToCompresse const auto& inputNNC = this->eclState_.getInputNNC(); const auto& transMult = this->eclState_.getTransMult(); - auto compressedIdx = [&cartesianToCompressed, this](const std::size_t globIdx) + auto compressedIdx = [&cartesianToCompressed](const std::size_t globIdx) { auto ixPos = cartesianToCompressed.find(globIdx); return (ixPos == cartesianToCompressed.end()) ? -1 : ixPos->second;