#913 Added SFI as a derived results depending on two user controllable case constants

This commit is contained in:
Jacob Støren
2016-10-27 15:01:21 +02:00
parent bc91f74d72
commit daea2b7cd2
6 changed files with 184 additions and 17 deletions

View File

@@ -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);
}
}
}