mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#913 Added SFI as a derived results depending on two user controllable case constants
This commit is contained in:
@@ -72,4 +72,23 @@ RigFemScalarResultFrames* RigFemPartResults::findScalarResult(const RigFemResult
|
||||
void RigFemPartResults::deleteScalarResult(const RigFemResultAddress& resVarAddr)
|
||||
{
|
||||
resultSets.erase(resVarAddr); // Refcounting is supposed to destroy the data.
|
||||
|
||||
if (resVarAddr.representsAllTimeLapses())
|
||||
{
|
||||
std::vector<RigFemResultAddress> addressesToDelete;
|
||||
for (auto it : resultSets)
|
||||
{
|
||||
if (it.first.resultPosType == resVarAddr.resultPosType
|
||||
&& it.first.fieldName == resVarAddr.fieldName
|
||||
&& it.first.componentName == resVarAddr.componentName)
|
||||
{
|
||||
addressesToDelete. push_back(it.first);
|
||||
}
|
||||
}
|
||||
|
||||
for (RigFemResultAddress& addr: addressesToDelete)
|
||||
{
|
||||
resultSets.erase(addr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user