From 1fed460d95a0eb93ccd05223a4fa55154eb72342 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Tue, 25 Oct 2016 18:11:58 +0000 Subject: [PATCH] fix non-determinstic solveInvalidPeriodic: thanks Wendy! --- Mesh/meshGFaceBDS.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mesh/meshGFaceBDS.cpp b/Mesh/meshGFaceBDS.cpp index 9af2233c1f..1de4f65346 100644 --- a/Mesh/meshGFaceBDS.cpp +++ b/Mesh/meshGFaceBDS.cpp @@ -755,7 +755,7 @@ void allowAppearanceofEdge (BDS_Point *p1, BDS_Point *p2) } void invalidEdgesPeriodic(BDS_Mesh &m, std::map<BDS_Point*, MVertex*,PointLessThan> *recoverMap, - std::set<BDS_Edge*> &toSplit) + std::set<BDS_Edge*, EdgeLessThan> &toSplit) { // first look for degenerated vertices std::list<BDS_Edge*>::iterator it = m.edges.begin(); @@ -817,7 +817,7 @@ void invalidEdgesPeriodic(BDS_Mesh &m, std::map<BDS_Point*, MVertex*,PointLessTh int solveInvalidPeriodic(GFace *gf, BDS_Mesh &m, std::map<BDS_Point*, MVertex*,PointLessThan> *recoverMap) { - std::set<BDS_Edge*> toSplit; + std::set<BDS_Edge*, EdgeLessThan> toSplit; invalidEdgesPeriodic(m, recoverMap, toSplit); std::set<BDS_Edge*>::iterator ite = toSplit.begin(); -- GitLab