mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-14 17:44:20 -06:00
#6585 Further increase contour map spacing factor for very large models
This commit is contained in:
parent
481c4457f0
commit
b92384211b
@ -53,7 +53,8 @@
|
|||||||
|
|
||||||
CAF_CMD_SOURCE_INIT( RicNewContourMapViewFeature, "RicNewContourMapViewFeature" );
|
CAF_CMD_SOURCE_INIT( RicNewContourMapViewFeature, "RicNewContourMapViewFeature" );
|
||||||
|
|
||||||
const size_t samplingThresholdCellCount = 500000u;
|
const size_t mediumSamplingThresholdCellCount = 500000u;
|
||||||
|
const size_t largeSamplingThresholdCellCount = 5000000u;
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
@ -211,7 +212,11 @@ RimEclipseContourMapView* RicNewContourMapViewFeature::createEclipseContourMapFr
|
|||||||
const RigActiveCellInfo* activeCellInfo =
|
const RigActiveCellInfo* activeCellInfo =
|
||||||
eclipseCase->eclipseCaseData()->activeCellInfo( RiaDefines::PorosityModelType::MATRIX_MODEL );
|
eclipseCase->eclipseCaseData()->activeCellInfo( RiaDefines::PorosityModelType::MATRIX_MODEL );
|
||||||
size_t activeCellCount = activeCellInfo->reservoirActiveCellCount();
|
size_t activeCellCount = activeCellInfo->reservoirActiveCellCount();
|
||||||
if ( activeCellCount >= samplingThresholdCellCount )
|
if ( activeCellCount >= largeSamplingThresholdCellCount )
|
||||||
|
{
|
||||||
|
contourMap->contourMapProjection()->setSampleSpacingFactor( 1.5 );
|
||||||
|
}
|
||||||
|
else if ( activeCellCount >= mediumSamplingThresholdCellCount )
|
||||||
{
|
{
|
||||||
contourMap->contourMapProjection()->setSampleSpacingFactor( 1.2 );
|
contourMap->contourMapProjection()->setSampleSpacingFactor( 1.2 );
|
||||||
}
|
}
|
||||||
@ -266,7 +271,11 @@ RimEclipseContourMapView* RicNewContourMapViewFeature::createEclipseContourMap(
|
|||||||
const RigActiveCellInfo* activeCellInfo =
|
const RigActiveCellInfo* activeCellInfo =
|
||||||
eclipseCase->eclipseCaseData()->activeCellInfo( RiaDefines::PorosityModelType::MATRIX_MODEL );
|
eclipseCase->eclipseCaseData()->activeCellInfo( RiaDefines::PorosityModelType::MATRIX_MODEL );
|
||||||
size_t activeCellCount = activeCellInfo->reservoirActiveCellCount();
|
size_t activeCellCount = activeCellInfo->reservoirActiveCellCount();
|
||||||
if ( activeCellCount > samplingThresholdCellCount )
|
if ( activeCellCount >= largeSamplingThresholdCellCount )
|
||||||
|
{
|
||||||
|
contourMap->contourMapProjection()->setSampleSpacingFactor( 1.5 );
|
||||||
|
}
|
||||||
|
else if ( activeCellCount >= mediumSamplingThresholdCellCount )
|
||||||
{
|
{
|
||||||
contourMap->contourMapProjection()->setSampleSpacingFactor( 1.2 );
|
contourMap->contourMapProjection()->setSampleSpacingFactor( 1.2 );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user