From 006b56b5fa7e42209bb6ef84608011097f77e4e2 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@uliege.be> Date: Sat, 10 Oct 2020 15:39:54 +0200 Subject: [PATCH] apply patch from Thomas Urlich to fix export of boundaries Gambit neutral format (#540) --- Geo/GModelIO_NEU.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Geo/GModelIO_NEU.cpp b/Geo/GModelIO_NEU.cpp index f937ae4340..022b5db4e6 100644 --- a/Geo/GModelIO_NEU.cpp +++ b/Geo/GModelIO_NEU.cpp @@ -117,6 +117,11 @@ namespace { } } + // because we use a set_intersection later on, the vectors of vertmap should be sorted + for (auto &it: vertmap) { + std::sort(it.second.begin(), it.second.end()); + } + // determine which faces belong to which tetrahedra by comparing vertices IDTetFaceMap tetfacemap; for(GModel::riter it = gm->firstRegion(); it != gm->lastRegion(); ++it) { -- GitLab