mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Well Target Candidates: misc improvements.
Improvements: * Well Target Candidates: Add filtering by binary result * Well Target Candidates: make result grid cell count configurable. * Well Target Candidates: Improve ui ordering. * Well Target Candidates: compute probability, and simplify vector names. * Optimization: Avoid expensive unintended duplication of data
This commit is contained in:
@@ -36,18 +36,36 @@ RimRegularGridCase::RimRegularGridCase()
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_maximum, "Maximum", "Maximum" );
|
||||
m_maximum.uiCapability()->setUiReadOnly( true );
|
||||
|
||||
CAF_PDM_InitField( &m_cellCountI, "CellCountI", 100, "Cell Count I" );
|
||||
m_cellCountI.uiCapability()->setUiReadOnly( true );
|
||||
|
||||
CAF_PDM_InitField( &m_cellCountJ, "CellCountJ", 100, "Cell Count J" );
|
||||
m_cellCountJ.uiCapability()->setUiReadOnly( true );
|
||||
|
||||
CAF_PDM_InitField( &m_cellCountK, "CellCountK", 10, "Cell Count K" );
|
||||
m_cellCountK.uiCapability()->setUiReadOnly( true );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
void RimRegularGridCase::setBoundingBox( const cvf::BoundingBox& boundingBox )
|
||||
{
|
||||
m_minimum = boundingBox.min();
|
||||
m_maximum = boundingBox.max();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimRegularGridCase::setCellCount( const cvf::Vec3st& cellCount )
|
||||
{
|
||||
m_cellCountI = static_cast<int>( cellCount.x() );
|
||||
m_cellCountJ = static_cast<int>( cellCount.y() );
|
||||
m_cellCountK = static_cast<int>( cellCount.z() );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -58,7 +76,7 @@ cvf::ref<RifReaderInterface> RimRegularGridCase::createModel( QString modelName
|
||||
|
||||
reader->setWorldCoordinates( m_minimum, m_maximum );
|
||||
|
||||
cvf::Vec3st gridPointDimensions( 50, 50, 10 );
|
||||
cvf::Vec3st gridPointDimensions( m_cellCountI, m_cellCountJ, m_cellCountK );
|
||||
reader->setGridPointDimensions( gridPointDimensions );
|
||||
|
||||
reader->open( "", reservoir.p() );
|
||||
|
||||
Reference in New Issue
Block a user