Skip to content

Commit

Permalink
#11077 Create result values for formations only when required
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Jan 31, 2024
1 parent 1c586a5 commit 8529bb6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2779,6 +2779,13 @@ void RigCaseCellResultsData::setActiveFormationNames( RigFormationNames* activeF
{
m_activeFormationNamesData = activeFormationNames;

if ( !activeFormationNames )
{
clearScalarResult(
RigEclipseResultAddress( RiaDefines::ResultCatType::FORMATION_NAMES, RiaResultNames::activeFormationNamesResultName() ) );
return;
}

size_t totalGlobCellCount = m_ownerMainGrid->globalCellArray().size();
addStaticScalarResult( RiaDefines::ResultCatType::FORMATION_NAMES, RiaResultNames::activeFormationNamesResultName(), false, totalGlobCellCount );

Expand Down

0 comments on commit 8529bb6

Please sign in to comment.