Added const access

p4#: 20361
This commit is contained in:
Magne Sjaastad 2013-02-04 14:33:28 +01:00
parent 69d8739c6c
commit a1788740aa
2 changed files with 4 additions and 4 deletions

View File

@ -83,7 +83,7 @@ void RigMainGrid::initAllSubCellsMainGridCellIndex()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
size_t RigMainGrid::globalMatrixModelActiveCellCount()
size_t RigMainGrid::globalMatrixModelActiveCellCount() const
{
return m_globalMatrixModelActiveCellCount;
@ -92,7 +92,7 @@ size_t RigMainGrid::globalMatrixModelActiveCellCount()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
size_t RigMainGrid::globalFractureModelActiveCellCount()
size_t RigMainGrid::globalFractureModelActiveCellCount() const
{
return m_globalFractureModelActiveCellCount;
}

View File

@ -45,8 +45,8 @@ public:
RigReservoirCellResults* results(RifReaderInterface::PorosityModelResultType porosityModel);
const RigReservoirCellResults* results(RifReaderInterface::PorosityModelResultType porosityModel) const;
size_t globalMatrixModelActiveCellCount();
size_t globalFractureModelActiveCellCount();
size_t globalMatrixModelActiveCellCount() const;
size_t globalFractureModelActiveCellCount() const;
void setGlobalMatrixModelActiveCellCount (size_t globalMatrixModelActiveCellCount) { m_globalMatrixModelActiveCellCount = globalMatrixModelActiveCellCount; }
void setGlobalFractureModelActiveCellCount(size_t globalFractureModelActiveCellCount) { m_globalFractureModelActiveCellCount = globalFractureModelActiveCellCount;}