mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
pre-proto - Updated handling of negative measured depth values in function for interpolating point along well path
This commit is contained in:
parent
c71743e0ff
commit
7e0417b310
@ -58,7 +58,6 @@ double RigWellPath::datumElevation() const
|
||||
cvf::Vec3d RigWellPath::interpolatedPointAlongWellPath(double measuredDepth)
|
||||
{
|
||||
cvf::Vec3d wellPathPoint = cvf::Vec3d::ZERO;
|
||||
if (measuredDepth < 0) return wellPathPoint;
|
||||
|
||||
int i = 0;
|
||||
while (i < m_measuredDepths.size() && m_measuredDepths.at(i) < measuredDepth )
|
||||
@ -70,7 +69,7 @@ cvf::Vec3d RigWellPath::interpolatedPointAlongWellPath(double measuredDepth)
|
||||
{
|
||||
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);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user