#14803 Fix PLT crash for MSW segments without grid cell

This commit is contained in:
Magne Sjaastad committed 2026-10-07 13:37:02 +02:00
1 parent 0fc5da8296
commit 02cce5db8d
1 file changed
+3
@@ -412,6 +412,9 @@ public:
const std::vector<RigWellResultPoint> branchResPoints = resFrame->branchResultPointsFromBranchIndex( brIdx );
for ( size_t wrpIdx = 0; wrpIdx < branchResPoints.size(); wrpIdx++ )
{
// MSW segments without a connection have no cell
if ( !branchResPoints[wrpIdx].isCell() ) continue;
const RigGridBase* grid = mainGrid->gridByIndex( branchResPoints[wrpIdx].gridIndex() );
size_t globalCellIndex = grid->reservoirCellIndex( branchResPoints[wrpIdx].cellIndex() );