mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6138 Valve Export : Make sure the valves always use the valve interval, not perforation interval
This commit is contained in:
parent
5745907250
commit
1dcec6df6b
@ -264,8 +264,9 @@ std::vector<std::pair<double, double>> RimWellPathValve::valveSegments() const
|
|||||||
RimPerforationInterval* perforationInterval = nullptr;
|
RimPerforationInterval* perforationInterval = nullptr;
|
||||||
this->firstAncestorOrThisOfType( perforationInterval );
|
this->firstAncestorOrThisOfType( perforationInterval );
|
||||||
|
|
||||||
double startMD = perforationInterval->startMD();
|
double startMD = this->startMD();
|
||||||
double endMD = perforationInterval->endMD();
|
double endMD = this->endMD();
|
||||||
|
|
||||||
std::vector<double> valveMDs = valveLocations();
|
std::vector<double> valveMDs = valveLocations();
|
||||||
|
|
||||||
std::vector<std::pair<double, double>> segments;
|
std::vector<std::pair<double, double>> segments;
|
||||||
@ -381,7 +382,7 @@ double RimWellPathValve::startMD() const
|
|||||||
{
|
{
|
||||||
return m_measuredDepth;
|
return m_measuredDepth;
|
||||||
}
|
}
|
||||||
else if ( m_multipleValveLocations()->valveLocations().empty() )
|
else if ( m_multipleValveLocations()->valveLocations().size() < 2 )
|
||||||
{
|
{
|
||||||
return m_multipleValveLocations->rangeStart();
|
return m_multipleValveLocations->rangeStart();
|
||||||
}
|
}
|
||||||
@ -400,7 +401,7 @@ double RimWellPathValve::endMD() const
|
|||||||
{
|
{
|
||||||
return m_measuredDepth + 0.5;
|
return m_measuredDepth + 0.5;
|
||||||
}
|
}
|
||||||
else if ( m_multipleValveLocations()->valveLocations().empty() )
|
else if ( m_multipleValveLocations()->valveLocations().size() < 2 )
|
||||||
{
|
{
|
||||||
return m_multipleValveLocations->rangeEnd();
|
return m_multipleValveLocations->rangeEnd();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user