mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 08:52:14 -05:00
#11395 Grid Calculation: Make sure a generated result can be used
This commit is contained in:
1 parent
d1e871eb69
commit
6e74fa98c0
1 file changed
+1
-5
@@ -1617,11 +1617,7 @@ size_t RigCaseCellResultsData::findOrLoadKnownScalarResultForTimeStep( const Rig
|
|||||||
|
|
||||||
size_t scalarResultIndex = findScalarResultIndexFromAddress( resVarAddr );
|
size_t scalarResultIndex = findScalarResultIndexFromAddress( resVarAddr );
|
||||||
if ( scalarResultIndex == cvf::UNDEFINED_SIZE_T ) return cvf::UNDEFINED_SIZE_T;
|
if ( scalarResultIndex == cvf::UNDEFINED_SIZE_T ) return cvf::UNDEFINED_SIZE_T;
|
||||||
|
if ( type == RiaDefines::ResultCatType::GENERATED ) return scalarResultIndex;
|
||||||
if ( type == RiaDefines::ResultCatType::GENERATED )
|
|
||||||
{
|
|
||||||
return cvf::UNDEFINED_SIZE_T;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( m_readerInterface.notNull() )
|
if ( m_readerInterface.notNull() )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user