mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5592 Well Path : For well paths with two targets, a fracture and perf interval fails to work
This commit is contained in:
@@ -298,7 +298,7 @@ void RimWellPathFracture::defineEditorAttribute( const caf::PdmFieldHandle* fiel
|
|||||||
RigWellPath* wellPathGeo = rimWellPath->wellPathGeometry();
|
RigWellPath* wellPathGeo = rimWellPath->wellPathGeometry();
|
||||||
if ( !wellPathGeo ) return;
|
if ( !wellPathGeo ) return;
|
||||||
|
|
||||||
if ( wellPathGeo->m_measuredDepths.size() > 2 )
|
if ( wellPathGeo->m_measuredDepths.size() > 1 )
|
||||||
{
|
{
|
||||||
myAttr->m_minimum = wellPathGeo->m_measuredDepths.front();
|
myAttr->m_minimum = wellPathGeo->m_measuredDepths.front();
|
||||||
myAttr->m_maximum = wellPathGeo->m_measuredDepths.back();
|
myAttr->m_maximum = wellPathGeo->m_measuredDepths.back();
|
||||||
|
|||||||
@@ -559,7 +559,7 @@ void RimWellPathValve::defineEditorAttribute( const caf::PdmFieldHandle* field,
|
|||||||
RigWellPath* wellPathGeo = rimWellPath->wellPathGeometry();
|
RigWellPath* wellPathGeo = rimWellPath->wellPathGeometry();
|
||||||
if ( !wellPathGeo ) return;
|
if ( !wellPathGeo ) return;
|
||||||
|
|
||||||
if ( wellPathGeo->m_measuredDepths.size() > 2 )
|
if ( wellPathGeo->m_measuredDepths.size() > 1 )
|
||||||
{
|
{
|
||||||
minimumValue = wellPathGeo->measureDepths().front();
|
minimumValue = wellPathGeo->measureDepths().front();
|
||||||
maximumValue = wellPathGeo->measureDepths().back();
|
maximumValue = wellPathGeo->measureDepths().back();
|
||||||
|
|||||||
Reference in New Issue
Block a user