#3433 Fracture header : Make sure ordering is stable

Using multithreading causes ordering issues
This commit is contained in:
Magne Sjaastad
2018-10-04 15:56:42 +02:00
parent 927e65cb44
commit 355b980032
5 changed files with 52 additions and 14 deletions

View File

@@ -148,9 +148,16 @@ QString RicWellPathFractureTextReportFeatureImpl::wellPathFractureReport(
std::vector<RimWellPathFracture*> wellPathFractures;
for (const auto& w : wellPaths)
{
std::set<std::pair<double, RimWellPathFracture*>> sortedFracturesByMd;
for (const auto& frac : w->fractureCollection()->activeFractures())
{
wellPathFractures.push_back(frac);
sortedFracturesByMd.insert(std::make_pair(frac->fractureMD(), frac));
}
for (const auto& mdAndFracture : sortedFracturesByMd)
{
wellPathFractures.push_back(mdAndFracture.second);
}
}