mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#11077 Create result values for formations only when required
This commit is contained in:
parent
57cb3c0a0b
commit
5c92cf1511
@ -2779,6 +2779,13 @@ void RigCaseCellResultsData::setActiveFormationNames( RigFormationNames* activeF
|
|||||||
{
|
{
|
||||||
m_activeFormationNamesData = activeFormationNames;
|
m_activeFormationNamesData = activeFormationNames;
|
||||||
|
|
||||||
|
if ( !activeFormationNames )
|
||||||
|
{
|
||||||
|
clearScalarResult(
|
||||||
|
RigEclipseResultAddress( RiaDefines::ResultCatType::FORMATION_NAMES, RiaResultNames::activeFormationNamesResultName() ) );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
size_t totalGlobCellCount = m_ownerMainGrid->globalCellArray().size();
|
size_t totalGlobCellCount = m_ownerMainGrid->globalCellArray().size();
|
||||||
addStaticScalarResult( RiaDefines::ResultCatType::FORMATION_NAMES, RiaResultNames::activeFormationNamesResultName(), false, totalGlobCellCount );
|
addStaticScalarResult( RiaDefines::ResultCatType::FORMATION_NAMES, RiaResultNames::activeFormationNamesResultName(), false, totalGlobCellCount );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user