Skip to content

Commit

Permalink
#11735 Use static well path geometry if no simulation well data is av…
Browse files Browse the repository at this point in the history
…ailable

Crash when creating intersection on a simulation well no well data is present at time step
  • Loading branch information
magnesj committed Oct 2, 2024
1 parent 2bad8e8 commit ea85dca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ std::vector<SimulationWellCellBranch>
{
const RigWellResultFrame* wellFramePtr = nullptr;

if ( timeStepIndex < 0 )
if ( timeStepIndex < 0 || !wellResults->hasWellResult( timeStepIndex ) )
{
wellFramePtr = wellResults->staticWellResultFrame();
}
Expand Down

0 comments on commit ea85dca

Please sign in to comment.