Grid Calculator: Fix view updates when calculation is changed or removed.

This commit is contained in:
Kristian Bendiksen
2022-05-02 14:25:45 +02:00
parent fdefb214d8
commit b761bb42af
10 changed files with 102 additions and 28 deletions

View File

@@ -21,6 +21,7 @@
#include "RigCaseCellResultsData.h"
#include "RiaApplication.h"
#include "RiaDefines.h"
#include "RiaEclipseUnitTools.h"
#include "RiaLogging.h"
@@ -42,6 +43,7 @@
#include "RifReaderEclipseOutput.h"
#include "cafAssert.h"
#include "cafProgressInfo.h"
#include "cvfGeometryTools.h"
@@ -907,6 +909,23 @@ void RigCaseCellResultsData::eraseAllSourSimData()
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RigCaseCellResultsData::eraseGeneratedResult( const RigEclipseResultAddress& resultAddress )
{
CAF_ASSERT( resultAddress.resultCatType() == RiaDefines::ResultCatType::GENERATED );
for ( auto& it : m_resultInfos )
{
if ( it.resultType() == RiaDefines::ResultCatType::GENERATED && it.resultName() == resultAddress.resultName() )
{
it.setResultType( RiaDefines::ResultCatType::REMOVED );
return;
}
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -120,6 +120,7 @@ public:
void clearAllResults();
void freeAllocatedResultsData();
void eraseAllSourSimData();
void eraseGeneratedResult( const RigEclipseResultAddress& resultAddress );
QStringList resultNames( RiaDefines::ResultCatType type ) const;
std::vector<RigEclipseResultAddress> existingResults() const;