From a3b80109707ae4b7596b827ad50a3d3f20f829aa Mon Sep 17 00:00:00 2001 From: Koen Hillewaert <koen.hillewaert@cenaero.be> Date: Wed, 19 Oct 2016 12:54:29 +0000 Subject: [PATCH] bug fix: export of separate files for partitioned mesh wrote the indexing flag (-2) for non-partition nodes, therefore exporting number. This is not valid for renumbered meshes. In any case the communication tables should be recomputed before exporting if the mesh is renumbered, this should moreover be done in a coherent fashion across partitions, so periodic boundaries will not be valid in this case. --- Geo/GModelIO_MSH.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Geo/GModelIO_MSH.cpp b/Geo/GModelIO_MSH.cpp index 50608716c8..a58b0aaed1 100644 --- a/Geo/GModelIO_MSH.cpp +++ b/Geo/GModelIO_MSH.cpp @@ -564,6 +564,8 @@ static void writeElementsMSH(FILE *fp, GModel *model, GEntity *ge, std::vector<T } } +#warning periodic nodes are not correct in case the nodes are renumbered + void writeMSHPeriodicNodes(FILE *fp, std::vector<GEntity*> &entities) { int count = 0; @@ -589,7 +591,7 @@ void writeMSHPeriodicNodes(FILE *fp, std::vector<GEntity*> &entities) it != g_slave->correspondingVertices.end(); it++){ MVertex *v1 = it->first; MVertex *v2 = it->second; - fprintf(fp, "%d %d\n", v1->getIndex(), v2->getIndex()); + fprintf(fp, "%d %d\n", v1->getNum(), v2->getNum()); } } } -- GitLab