#5283 Fixed error in Allen diagram for NNC's with same formation on both sides.

This commit is contained in:
Jacob Støren
2020-01-03 14:25:34 +01:00
parent ef986fcd34
commit 84dab9eccb

View File

@@ -3083,18 +3083,15 @@ void RigCaseCellResultsData::computeAllenResults( RigCaseCellResultsData* cellRe
formationCombinationToCategory[formationCombination] = category; formationCombinationToCategory[formationCombination] = category;
} }
} fnBinAllenNncResults[i] = 1.0;
if ( category < 0 )
{
fnBinAllenNncResults[i] = 0.0;
fnAllenNncResults[i] = std::numeric_limits<double>::max();
} }
else else
{ {
fnBinAllenNncResults[i] = 1.0; category = formation1;
fnAllenNncResults[i] = category; fnBinAllenNncResults[i] = 0.0;
} }
fnAllenNncResults[i] = category;
} }
cellResultsData->allenDiagramData()->setFormationCombinationToCategorymap( formationCombinationToCategory ); cellResultsData->allenDiagramData()->setFormationCombinationToCategorymap( formationCombinationToCategory );