mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
#11077 Create result values for formations only when required
This commit is contained in:
1 parent
57cb3c0a0b
commit
5c92cf1511
1 file changed
+7
@@ -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 );
|
||||
|
||||
|
||||
Reference in new issue
Block a user