#2176 Fix the crash due to an invalid wellhead definition from libecl. Now using first valid connection-cell as proxywellhead in calculations if needed.

This commit is contained in:
Jacob Støren
2017-11-24 12:41:24 +01:00
parent 007fc87283
commit cf9f886856
4 changed files with 63 additions and 18 deletions

View File

@@ -166,6 +166,7 @@ public:
const RigWellResultPoint* findResultCell(size_t gridIndex, size_t gridCellIndex) const;
RigWellResultPoint wellHeadOrStartCell() const;
WellProductionType m_productionType;
bool m_isOpen;
RigWellResultPoint m_wellHead;
@@ -187,6 +188,8 @@ public:
bool isMultiSegmentWell() const;
bool hasWellResult(size_t resultTimeStepIndex) const;
bool hasAnyValidCells(size_t resultTimeStepIndex) const;
const RigWellResultFrame& wellResultFrame(size_t resultTimeStepIndex) const;
bool isOpen(size_t resultTimeStepIndex) const;
RigWellResultFrame::WellProductionType wellProductionType(size_t resultTimeStepIndex) const;