mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Constified wellresultcell to cell
This commit is contained in:
@@ -288,14 +288,14 @@ const cvf::UIntArray* RigEclipseCaseData::gridCellToResultWellIndex(size_t gridI
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RigCell& RigEclipseCaseData::cellFromWellResultCell(const RigWellResultPoint& wellResultCell)
|
const RigCell& RigEclipseCaseData::cellFromWellResultCell(const RigWellResultPoint& wellResultCell) const
|
||||||
{
|
{
|
||||||
CVF_ASSERT(wellResultCell.isCell());
|
CVF_ASSERT(wellResultCell.isCell());
|
||||||
|
|
||||||
size_t gridIndex = wellResultCell.m_gridIndex;
|
size_t gridIndex = wellResultCell.m_gridIndex;
|
||||||
size_t gridCellIndex = wellResultCell.m_gridCellIndex;
|
size_t gridCellIndex = wellResultCell.m_gridCellIndex;
|
||||||
|
|
||||||
std::vector<RigGridBase*> grids;
|
std::vector<const RigGridBase*> grids;
|
||||||
allGrids(&grids);
|
allGrids(&grids);
|
||||||
|
|
||||||
return grids[gridIndex]->cell(gridCellIndex);
|
return grids[gridIndex]->cell(gridCellIndex);
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ public:
|
|||||||
const cvf::UByteArray* wellCellsInGrid(size_t gridIndex);
|
const cvf::UByteArray* wellCellsInGrid(size_t gridIndex);
|
||||||
const cvf::UIntArray* gridCellToResultWellIndex(size_t gridIndex);
|
const cvf::UIntArray* gridCellToResultWellIndex(size_t gridIndex);
|
||||||
|
|
||||||
RigCell& cellFromWellResultCell(const RigWellResultPoint& wellResultCell);
|
const RigCell& cellFromWellResultCell(const RigWellResultPoint& wellResultCell) const;
|
||||||
bool findSharedSourceFace(cvf::StructGridInterface::FaceType& sharedSourceFace, const RigWellResultPoint& sourceWellCellResult, const RigWellResultPoint& otherWellCellResult) const;
|
bool findSharedSourceFace(cvf::StructGridInterface::FaceType& sharedSourceFace, const RigWellResultPoint& sourceWellCellResult, const RigWellResultPoint& otherWellCellResult) const;
|
||||||
|
|
||||||
void computeActiveCellBoundingBoxes();
|
void computeActiveCellBoundingBoxes();
|
||||||
|
|||||||
Reference in New Issue
Block a user