mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 22:27:55 -05:00
#14803 Fix PLT crash for MSW segments without grid cell
This commit is contained in:
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() );
|
||||
|
||||
|
||||
Reference in new issue
Block a user