mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3433 Fracture header : Make sure ordering is stable
Using multithreading causes ordering issues
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user