Ensure case is loaded before generating well target candidates

This commit is contained in:
Kristian Bendiksen 2024-12-04 17:46:51 +01:00
parent 1466178cbc
commit 00488db082

View File

@ -53,6 +53,8 @@ void RigWellTargetCandidatesGenerator::generateCandidates( RimEclipseCase*
VolumeResultType volumeResultType,
const ClusteringLimits& limits )
{
if ( !eclipseCase->ensureReservoirCaseIsOpen() ) return;
auto activeCellCount = getActiveCellCount( eclipseCase );
if ( !activeCellCount )
{