#3018 Fracture Truncation : Use reservoirCellIndex()

This commit is contained in:
Magne Sjaastad 2018-06-07 22:20:37 +02:00
parent 10d0c66262
commit ff4efbc365

View File

@ -125,8 +125,7 @@ void RimFractureContainmentTools::checkFaultAndAppendNeighborCell(const std::set
bool foundCell = hostGrid->cellIJKNeighbor(i, j, k, face, &neighborGridLocalCellIndex);
CVF_ASSERT(foundCell);
neighborGlobalReservoirCellIndex =
mainGrid->reservoirCellIndexByGridAndGridLocalCellIndex(hostGrid->gridIndex(), neighborGridLocalCellIndex);
neighborGlobalReservoirCellIndex = hostGrid->reservoirCellIndex(neighborGridLocalCellIndex);
}
double currentCellAvgZ = computeAverageZFromTwoDeepestZ(mainGrid, globalReservoirCellIndex, face);