mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#9493 grid calculator on active cells only
* Janitor: Improve getter for RigActiveCellInfo::gridActiveCellCounts. * #9493 Grid Calculator: calculate on only active cells. * #9493 Grid Calculator: filter with active cells. * Fix calculation for input grid cases Co-authored-by: Magne Sjaastad <magne.sjaastad@ceetronsolutions.com>
This commit is contained in:
committed by
GitHub
parent
e8789f3d4b
commit
99e9944e6e
@@ -141,10 +141,11 @@ void RigActiveCellInfo::IJKBoundingBox( cvf::Vec3st& min, cvf::Vec3st& max ) con
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigActiveCellInfo::gridActiveCellCounts( size_t gridIndex, size_t& activeCellCount ) const
|
||||
size_t RigActiveCellInfo::gridActiveCellCounts( size_t gridIndex ) const
|
||||
{
|
||||
activeCellCount = m_perGridActiveCellInfo[gridIndex].activeCellCount();
|
||||
return m_perGridActiveCellInfo[gridIndex].activeCellCount();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -39,10 +39,10 @@ public:
|
||||
size_t cellResultIndex( size_t reservoirCellIndex ) const;
|
||||
void setCellResultIndex( size_t reservoirCellIndex, size_t globalResultCellIndex );
|
||||
|
||||
void setGridCount( size_t gridCount );
|
||||
void setGridActiveCellCounts( size_t gridIndex, size_t activeCellCount );
|
||||
void gridActiveCellCounts( size_t gridIndex, size_t& activeCellCount ) const;
|
||||
void computeDerivedData();
|
||||
void setGridCount( size_t gridCount );
|
||||
void setGridActiveCellCounts( size_t gridIndex, size_t activeCellCount );
|
||||
size_t gridActiveCellCounts( size_t gridIndex ) const;
|
||||
void computeDerivedData();
|
||||
|
||||
void setIJKBoundingBox( const cvf::Vec3st& min, const cvf::Vec3st& max );
|
||||
void IJKBoundingBox( cvf::Vec3st& min, cvf::Vec3st& max ) const;
|
||||
|
||||
Reference in New Issue
Block a user