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 Feb 2, 2024
1 parent 57cb3c0 commit 5c92cf1
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 5c92cf1

Please sign in to comment.