Constified wellresultcell to cell

This commit is contained in:
Jacob Støren 2017-01-20 14:56:08 +01:00
parent c025c2a3d7
commit 51d6d21d77
2 changed files with 3 additions and 3 deletions

View File

@ -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());
size_t gridIndex = wellResultCell.m_gridIndex;
size_t gridCellIndex = wellResultCell.m_gridCellIndex;
std::vector<RigGridBase*> grids;
std::vector<const RigGridBase*> grids;
allGrids(&grids);
return grids[gridIndex]->cell(gridCellIndex);

View File

@ -86,7 +86,7 @@ public:
const cvf::UByteArray* wellCellsInGrid(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;
void computeActiveCellBoundingBoxes();