Forgot some resultAccessor updates

This commit is contained in:
Jacob Støren 2015-08-31 12:41:27 +02:00
parent 62bc5963ff
commit ba467ac52d
2 changed files with 23 additions and 0 deletions

View File

@ -54,3 +54,24 @@ double RigAllGridCellsResultAccessor::cellFaceScalar(size_t gridLocalCellIndex,
return cellScalar(gridLocalCellIndex);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RigAllGridCellsResultAccessor::cellScalarGlobIdx(size_t globCellIndex) const
{
if (m_reservoirResultValues->size() == 0) return HUGE_VAL;
CVF_TIGHT_ASSERT(globCellIndex < m_reservoirResultValues->size());
return m_reservoirResultValues->at(globCellIndex);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RigAllGridCellsResultAccessor::cellFaceScalarGlobIdx(size_t globCellIndex, cvf::StructGridInterface::FaceType faceId) const
{
return cellScalarGlobIdx(globCellIndex);
}

View File

@ -34,6 +34,8 @@ public:
virtual double cellScalar(size_t gridLocalCellIndex) const;
virtual double cellFaceScalar(size_t gridLocalCellIndex, cvf::StructGridInterface::FaceType faceId) const;
virtual double cellScalarGlobIdx(size_t globCellIndex) const;
virtual double cellFaceScalarGlobIdx(size_t globCellIndex, cvf::StructGridInterface::FaceType faceId) const;
private:
const RigGridBase* m_grid;