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());
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user