mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-21 21:38:13 -06:00
ContourMapProjection: Replace references with naked pointers
Replace reference members and constructor parameters with raw pointers in RigContourMapProjection and subclasses. Remove cvf::ref usage in RigEclipseContourMapProjection. Add updateRealizationData() to allow swapping active cell info and result data per realization without rebuilding the grid mapping.
This commit is contained in:
1 parent
ca2a4dcc2c
commit
831751a903
11 files changed
+71
-60
No files matched your search
+2
-2
@@ -29,7 +29,7 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RigStatisticsContourMapProjection::RigStatisticsContourMapProjection( const RigContourMapGrid& contourMapGrid )
|
||||
RigStatisticsContourMapProjection::RigStatisticsContourMapProjection( const RigContourMapGrid* contourMapGrid )
|
||||
: RigContourMapProjection( contourMapGrid )
|
||||
{
|
||||
}
|
||||
@@ -130,7 +130,7 @@ std::vector<bool> RigStatisticsContourMapProjection::getMapCellVisibility( int v
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<std::pair<size_t, double>> RigStatisticsContourMapProjection::cellsAtIJ( unsigned int i, unsigned int j ) const
|
||||
{
|
||||
size_t cellIndex = m_contourMapGrid.cellIndexFromIJ( i, j );
|
||||
size_t cellIndex = m_contourMapGrid->cellIndexFromIJ( i, j );
|
||||
if ( cellIndex < m_aggregatedResults.size() && !std::isinf( m_aggregatedResults[cellIndex] ) &&
|
||||
!std::isnan( m_aggregatedResults[cellIndex] ) )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user