mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3727 Additional packer fixes
This commit is contained in:
@@ -208,8 +208,7 @@ void RivWellPathPartMgr::appendWellPathAttributesToModel(cvf::ModelBasicList*
|
|||||||
{
|
{
|
||||||
double wellPathRadius = this->wellPathRadius(characteristicCellSize, this->wellPathCollection());
|
double wellPathRadius = this->wellPathRadius(characteristicCellSize, this->wellPathCollection());
|
||||||
double startMD = attribute->startMD();
|
double startMD = attribute->startMD();
|
||||||
double packerLength = wellPathRadius;
|
double endMD = attribute->endMD();
|
||||||
double endMD = attribute->startMD() + packerLength;
|
|
||||||
|
|
||||||
std::vector<cvf::Vec3d> displayCoords;
|
std::vector<cvf::Vec3d> displayCoords;
|
||||||
displayCoords.push_back(displayCoordTransform->transformToDisplayCoord(m_rimWellPath->wellPathGeometry()->interpolatedPointAlongWellPath(startMD)));
|
displayCoords.push_back(displayCoordTransform->transformToDisplayCoord(m_rimWellPath->wellPathGeometry()->interpolatedPointAlongWellPath(startMD)));
|
||||||
|
|||||||
@@ -217,6 +217,10 @@ void RimWellPathAttribute::fieldChangedByUi(const caf::PdmFieldHandle* changedFi
|
|||||||
this->firstAncestorOrThisOfTypeAsserted(wellPath);
|
this->firstAncestorOrThisOfTypeAsserted(wellPath);
|
||||||
m_startMD = wellPath->wellPathGeometry()->measureDepths().front();
|
m_startMD = wellPath->wellPathGeometry()->measureDepths().front();
|
||||||
}
|
}
|
||||||
|
else if (m_type() == RiaDefines::PACKER)
|
||||||
|
{
|
||||||
|
m_endMD = m_startMD + 50;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (changedField == &m_startMD)
|
if (changedField == &m_startMD)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user