#6169 Element property table: invalidate Geo Mech results on changes in table.

This commit is contained in:
Kristian Bendiksen
2020-07-08 15:45:50 +02:00
parent 1e06f6ae25
commit a88191be33
5 changed files with 39 additions and 3 deletions

View File

@@ -101,3 +101,11 @@ std::vector<RigFemResultAddress> RigFemPartResults::loadedResults() const
}
return currentResults;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RigFemPartResults::deleteAllScalarResults()
{
resultSets.clear();
}

View File

@@ -42,6 +42,7 @@ public:
RigFemScalarResultFrames* createScalarResult( const RigFemResultAddress& resVarAddr );
RigFemScalarResultFrames* findScalarResult( const RigFemResultAddress& resVarAddr );
void deleteScalarResult( const RigFemResultAddress& resVarAddr );
void deleteAllScalarResults();
std::vector<RigFemResultAddress> loadedResults() const;
private:

View File

@@ -599,6 +599,17 @@ RigFemScalarResultFrames* RigFemPartResultsCollection::createScalarResult( int
return m_femPartResults[partIndex]->createScalarResult( resVarAddr );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RigFemPartResultsCollection::deleteAllScalarResults()
{
for ( cvf::ref<RigFemPartResults> results : m_femPartResults )
{
results->deleteAllScalarResults();
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -147,6 +147,7 @@ public:
RigFemScalarResultFrames* findOrLoadScalarResult( int partIndex, const RigFemResultAddress& resVarAddr );
RigFemScalarResultFrames* createScalarResult( int partIndex, const RigFemResultAddress& resVarAddr );
void deleteAllScalarResults();
bool isValidBiotData( const std::vector<float>& biotData, size_t elementCount ) const;
static std::vector<std::string> getStressComponentNames( bool includeShear = true );