mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7158 WBS plot : Update plot name when water depth changes
This commit is contained in:
@@ -73,11 +73,20 @@ RimWellBoreStabilityPlot::RimWellBoreStabilityPlot()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellBoreStabilityPlot::applyWbsParametersToExtractor( RigGeoMechWellLogExtractor* extractor )
|
||||
{
|
||||
m_waterDepth = extractor->waterDepth();
|
||||
auto originalValue = m_waterDepth;
|
||||
m_waterDepth = extractor->waterDepth();
|
||||
|
||||
if ( m_waterDepth == std::numeric_limits<double>::infinity() ) m_waterDepth = extractor->estimateWaterDepth();
|
||||
if ( m_waterDepth == std::numeric_limits<double>::infinity() )
|
||||
{
|
||||
m_waterDepth = extractor->estimateWaterDepth();
|
||||
}
|
||||
|
||||
m_wbsParameters->applyWbsParametersToExtractor( extractor );
|
||||
|
||||
if ( originalValue != m_waterDepth )
|
||||
{
|
||||
performAutoNameUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user