mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-09 23:53:04 -06:00
#6422 Detailed Fluid Loss: hide curves when disabled.
This commit is contained in:
parent
452d50df8f
commit
0415f25d0a
@ -28,6 +28,7 @@
|
||||
#include "RimFractureModelCurve.h"
|
||||
#include "RimFractureModelPropertyCurve.h"
|
||||
#include "RimLayerCurve.h"
|
||||
#include "RimWellLogTrack.h"
|
||||
|
||||
#include "RigWellLogCurveData.h"
|
||||
|
||||
@ -90,6 +91,31 @@ void RimFractureModelPlot::defineUiOrdering( QString uiConfigName, caf::PdmUiOrd
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFractureModelPlot::onLoadDataAndUpdate()
|
||||
{
|
||||
// Enable and disable detailed fluid loss curves
|
||||
if ( fractureModel() != nullptr )
|
||||
{
|
||||
std::vector<RiaDefines::CurveProperty> fluidLossCurves = {RiaDefines::CurveProperty::PORO_ELASTIC_CONSTANT,
|
||||
RiaDefines::CurveProperty::RELATIVE_PERMEABILITY_FACTOR,
|
||||
RiaDefines::CurveProperty::THERMAL_EXPANSION_COEFFICIENT,
|
||||
RiaDefines::CurveProperty::IMMOBILE_FLUID_SATURATION};
|
||||
|
||||
bool detailedFluidLoss = fractureModel()->useDetailedFluidLoss();
|
||||
|
||||
for ( auto curveProperty : fluidLossCurves )
|
||||
{
|
||||
RimWellLogExtractionCurve* curve = findCurveByProperty( curveProperty );
|
||||
if ( curve )
|
||||
{
|
||||
RimWellLogTrack* track = nullptr;
|
||||
curve->firstAncestorOfType( track );
|
||||
if ( track )
|
||||
{
|
||||
track->setShowWindow( detailedFluidLoss );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
RimDepthTrackPlot::onLoadDataAndUpdate();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user