mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Avoid parent searches for active cell info in contour map projection
This commit is contained in:
parent
c3c451f0f4
commit
1d823fa983
@ -336,9 +336,11 @@ std::vector<double> RimEclipseContourMapProjection::calculateColumnResult( Resul
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseContourMapProjection::updateGridInformation()
|
||||
{
|
||||
m_mainGrid = eclipseCase()->eclipseCaseData()->mainGrid();
|
||||
auto eclipseCase = this->eclipseCase();
|
||||
m_mainGrid = eclipseCase->eclipseCaseData()->mainGrid();
|
||||
m_activeCellInfo = eclipseCase->eclipseCaseData()->activeCellInfo( RiaDefines::PorosityModelType::MATRIX_MODEL );
|
||||
|
||||
m_gridBoundingBox = eclipseCase()->activeCellsBoundingBox();
|
||||
m_gridBoundingBox = eclipseCase->activeCellsBoundingBox();
|
||||
cvf::Vec3d minExpandedPoint = m_gridBoundingBox.min() - cvf::Vec3d( gridEdgeOffset(), gridEdgeOffset(), 0.0 );
|
||||
cvf::Vec3d maxExpandedPoint = m_gridBoundingBox.max() + cvf::Vec3d( gridEdgeOffset(), gridEdgeOffset(), 0.0 );
|
||||
m_expandedBoundingBox = cvf::BoundingBox( minExpandedPoint, maxExpandedPoint );
|
||||
@ -487,9 +489,7 @@ double RimEclipseContourMapProjection::getParameterWeightForCell( size_t
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t RimEclipseContourMapProjection::gridResultIndex( size_t globalCellIdx ) const
|
||||
{
|
||||
const RigActiveCellInfo* activeCellInfo =
|
||||
eclipseCase()->eclipseCaseData()->activeCellInfo( RiaDefines::PorosityModelType::MATRIX_MODEL );
|
||||
return activeCellInfo->cellResultIndex( globalCellIdx );
|
||||
return m_activeCellInfo->cellResultIndex( globalCellIdx );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "cvfString.h"
|
||||
#include "cvfVector2.h"
|
||||
|
||||
class RigActiveCellInfo;
|
||||
class RigMainGrid;
|
||||
class RigResultAccessor;
|
||||
class RimEclipseContourMapView;
|
||||
@ -94,6 +95,8 @@ protected:
|
||||
caf::PdmField<bool> m_weightByParameter;
|
||||
caf::PdmChildField<RimEclipseResultDefinition*> m_weightingResult;
|
||||
|
||||
cvf::ref<RigMainGrid> m_mainGrid;
|
||||
QString m_currentResultName;
|
||||
cvf::ref<RigMainGrid> m_mainGrid;
|
||||
cvf::ref<RigActiveCellInfo> m_activeCellInfo;
|
||||
|
||||
QString m_currentResultName;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user