mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge remote-tracking branch 'origin/patch_2021.10.3' into dev
This commit is contained in:
@@ -1071,7 +1071,8 @@ double RimEclipseCase::characteristicCellSize() const
|
||||
const RigEclipseCaseData* rigEclipseCase = eclipseCaseData();
|
||||
if ( rigEclipseCase && rigEclipseCase->mainGrid() )
|
||||
{
|
||||
return rigEclipseCase->mainGrid()->characteristicIJCellSize();
|
||||
double maxSize = 200.0;
|
||||
return std::min( rigEclipseCase->mainGrid()->characteristicIJCellSize(), maxSize );
|
||||
}
|
||||
|
||||
return 10.0;
|
||||
|
||||
@@ -219,8 +219,10 @@ std::vector<double> RimEclipseContourMapProjection::generateResults( int timeSte
|
||||
}
|
||||
gridResultValues = calculateColumnResult( m_resultAggregation() );
|
||||
}
|
||||
else if ( !( cellColors->hasStaticResult() && timeStep > 0 ) )
|
||||
else
|
||||
{
|
||||
if ( cellColors->hasStaticResult() && timeStep > 0 ) timeStep = 0;
|
||||
|
||||
m_currentResultName = cellColors->resultVariable();
|
||||
RigEclipseResultAddress resAddr( cellColors->resultType(),
|
||||
cellColors->resultVariable(),
|
||||
|
||||
@@ -169,6 +169,14 @@ void RimEclipseContourMapView::initAfterRead()
|
||||
scheduleCreateDisplayModelAndRedraw();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimEclipseContourMapView::isTimeStepDependentDataVisible() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -552,3 +560,12 @@ void RimEclipseContourMapView::onLegendConfigChanged( const caf::SignalEmitter*
|
||||
m_contourMapProjection->clearGeometry();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimSurfaceInViewCollection* RimEclipseContourMapView::surfaceInViewCollection() const
|
||||
{
|
||||
// Surfaces should not be shown in contour map.
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -40,6 +40,8 @@ public:
|
||||
void setDefaultCustomName();
|
||||
void updatePickPointAndRedraw();
|
||||
|
||||
RimSurfaceInViewCollection* surfaceInViewCollection() const override;
|
||||
|
||||
protected:
|
||||
void initAfterRead() override;
|
||||
void onCreateDisplayModel() override;
|
||||
@@ -58,6 +60,8 @@ protected:
|
||||
void onLoadDataAndUpdate() override;
|
||||
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
||||
|
||||
bool isTimeStepDependentDataVisible() const override;
|
||||
|
||||
caf::PdmFieldHandle* userDescriptionField() override;
|
||||
|
||||
std::set<RivCellSetEnum> allVisibleFaultGeometryTypes() const override;
|
||||
|
||||
@@ -590,9 +590,10 @@ void RimEclipseView::onCreateDisplayModel()
|
||||
// Surfaces
|
||||
|
||||
m_surfaceVizModel->removeAllParts();
|
||||
if ( m_surfaceCollection )
|
||||
if ( surfaceInViewCollection() )
|
||||
{
|
||||
m_surfaceCollection->appendPartsToModel( m_surfaceVizModel.p(), m_reservoirGridPartManager->scaleTransform() );
|
||||
surfaceInViewCollection()->appendPartsToModel( m_surfaceVizModel.p(),
|
||||
m_reservoirGridPartManager->scaleTransform() );
|
||||
nativeOrOverrideViewer()->addStaticModelOnce( m_surfaceVizModel.p(), isUsingOverrideViewer() );
|
||||
}
|
||||
|
||||
@@ -905,7 +906,8 @@ void RimEclipseView::updateVisibleCellColors()
|
||||
bool hasGeneralCellResult = this->cellResult()->hasResult() || this->cellResult()->isTernarySaturationSelected();
|
||||
|
||||
m_intersectionCollection->updateCellResultColor( hasGeneralCellResult, m_currentTimeStep );
|
||||
if ( m_surfaceCollection ) m_surfaceCollection->updateCellResultColor( hasGeneralCellResult, m_currentTimeStep );
|
||||
if ( surfaceInViewCollection() )
|
||||
surfaceInViewCollection()->updateCellResultColor( hasGeneralCellResult, m_currentTimeStep );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -2284,9 +2286,9 @@ std::vector<RimLegendConfig*> RimEclipseView::legendConfigs() const
|
||||
absLegends.push_back( wellMeasurement->legendConfig() );
|
||||
}
|
||||
|
||||
if ( m_surfaceCollection )
|
||||
if ( surfaceInViewCollection() )
|
||||
{
|
||||
for ( auto legendConfig : m_surfaceCollection->legendConfigs() )
|
||||
for ( auto legendConfig : surfaceInViewCollection()->legendConfigs() )
|
||||
{
|
||||
absLegends.push_back( legendConfig );
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
cvf::ref<cvf::UByteArray> currentTotalCellVisibility();
|
||||
|
||||
RimIntersectionCollection* intersectionCollection() const;
|
||||
RimSurfaceInViewCollection* surfaceInViewCollection() const;
|
||||
virtual RimSurfaceInViewCollection* surfaceInViewCollection() const;
|
||||
RimIntersectionResultsDefinitionCollection* separateIntersectionResultsCollection() const;
|
||||
RimIntersectionResultsDefinitionCollection* separateSurfaceResultsCollection() const;
|
||||
RimAnnotationInViewCollection* annotationCollection() const;
|
||||
|
||||
@@ -179,10 +179,11 @@ RimObservedSummaryData*
|
||||
|
||||
if ( useSavedFieldsValuesInDialog )
|
||||
{
|
||||
caf::PdmSettings::readFieldsFromApplicationStore( parseOptions );
|
||||
caf::PdmSettings::readFieldsFromApplicationStore( parseOptions, parseOptions->contextString() );
|
||||
}
|
||||
parseOptions->setUiModeImport( fileName );
|
||||
|
||||
bool parseOptionsChanged = false;
|
||||
if ( parseOptions->uiModeImport() != RicPasteAsciiDataToSummaryPlotFeatureUi::UI_MODE_SILENT )
|
||||
{
|
||||
caf::PdmUiPropertyViewDialog propertyDialog( nullptr, parseOptions, "CSV Import Options", "" );
|
||||
@@ -190,9 +191,14 @@ RimObservedSummaryData*
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
parseOptionsChanged = true;
|
||||
}
|
||||
|
||||
caf::PdmSettings::writeFieldsToApplicationStore( parseOptions );
|
||||
if ( useSavedFieldsValuesInDialog && parseOptionsChanged )
|
||||
{
|
||||
caf::PdmSettings::writeFieldsToApplicationStore( parseOptions, parseOptions->contextString() );
|
||||
}
|
||||
|
||||
// userData->setParseOptions(parseOptionsUi.parseOptions());
|
||||
userData->setSummaryHeaderFileName( fileName );
|
||||
|
||||
Reference in New Issue
Block a user