Skip to content

Commit

Permalink
Ensure case is loaded before generating well target candidates
Browse files Browse the repository at this point in the history
  • Loading branch information
kriben committed Dec 4, 2024
1 parent 22aedaa commit 51425be
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ void RigWellTargetCandidatesGenerator::generateCandidates( RimEclipseCase*
VolumeResultType volumeResultType,
const ClusteringLimits& limits )
{
if ( !eclipseCase->ensureReservoirCaseIsOpen() ) return;

auto activeCellCount = getActiveCellCount( eclipseCase );
if ( !activeCellCount )
{
Expand Down

0 comments on commit 51425be

Please sign in to comment.