mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
pre-proto - Updated handling of negative measured depth values in function for interpolating point along well path
This commit is contained in:
1 parent
c71743e0ff
commit
7e0417b310
1 file changed
+1
-2
@@ -58,7 +58,6 @@ double RigWellPath::datumElevation() const
|
|||||||
cvf::Vec3d RigWellPath::interpolatedPointAlongWellPath(double measuredDepth)
|
cvf::Vec3d RigWellPath::interpolatedPointAlongWellPath(double measuredDepth)
|
||||||
{
|
{
|
||||||
cvf::Vec3d wellPathPoint = cvf::Vec3d::ZERO;
|
cvf::Vec3d wellPathPoint = cvf::Vec3d::ZERO;
|
||||||
if (measuredDepth < 0) return wellPathPoint;
|
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (i < m_measuredDepths.size() && m_measuredDepths.at(i) < measuredDepth )
|
while (i < m_measuredDepths.size() && m_measuredDepths.at(i) < measuredDepth )
|
||||||
@@ -70,7 +69,7 @@ cvf::Vec3d RigWellPath::interpolatedPointAlongWellPath(double measuredDepth)
|
|||||||
{
|
{
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
{
|
{
|
||||||
//For measuredDepth=0 use startpoint
|
//For measuredDepth same or lower than first point, use this first point
|
||||||
wellPathPoint = m_wellPathPoints.at(0);
|
wellPathPoint = m_wellPathPoints.at(0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user