mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Forgot some resultAccessor updates
This commit is contained in:
parent
62bc5963ff
commit
ba467ac52d
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user