From 6e74fa98c0e138ca9c64c9eb3b7f18d2b49a9351 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Wed, 24 Apr 2024 15:40:31 +0200 Subject: [PATCH] #11395 Grid Calculation: Make sure a generated result can be used --- .../ReservoirDataModel/RigCaseCellResultsData.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ApplicationLibCode/ReservoirDataModel/RigCaseCellResultsData.cpp b/ApplicationLibCode/ReservoirDataModel/RigCaseCellResultsData.cpp index 2b8937a09e..6d04dcbd23 100644 --- a/ApplicationLibCode/ReservoirDataModel/RigCaseCellResultsData.cpp +++ b/ApplicationLibCode/ReservoirDataModel/RigCaseCellResultsData.cpp @@ -1617,11 +1617,7 @@ size_t RigCaseCellResultsData::findOrLoadKnownScalarResultForTimeStep( const Rig size_t scalarResultIndex = findScalarResultIndexFromAddress( resVarAddr ); if ( scalarResultIndex == cvf::UNDEFINED_SIZE_T ) return cvf::UNDEFINED_SIZE_T; - - if ( type == RiaDefines::ResultCatType::GENERATED ) - { - return cvf::UNDEFINED_SIZE_T; - } + if ( type == RiaDefines::ResultCatType::GENERATED ) return scalarResultIndex; if ( m_readerInterface.notNull() ) {