mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5283 Fixed error in Allen diagram for NNC's with same formation on both sides.
This commit is contained in:
@@ -3083,18 +3083,15 @@ void RigCaseCellResultsData::computeAllenResults( RigCaseCellResultsData* cellRe
|
||||
|
||||
formationCombinationToCategory[formationCombination] = category;
|
||||
}
|
||||
}
|
||||
|
||||
if ( category < 0 )
|
||||
{
|
||||
fnBinAllenNncResults[i] = 0.0;
|
||||
fnAllenNncResults[i] = std::numeric_limits<double>::max();
|
||||
fnBinAllenNncResults[i] = 1.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
fnBinAllenNncResults[i] = 1.0;
|
||||
fnAllenNncResults[i] = category;
|
||||
category = formation1;
|
||||
fnBinAllenNncResults[i] = 0.0;
|
||||
}
|
||||
|
||||
fnAllenNncResults[i] = category;
|
||||
}
|
||||
|
||||
cellResultsData->allenDiagramData()->setFormationCombinationToCategorymap( formationCombinationToCategory );
|
||||
|
||||
Reference in New Issue
Block a user