From 056c8a1c1d413edfa63e9f157fb526aadc415d19 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 27 Mar 2017 11:32:54 +0200 Subject: [PATCH] fix crash --- Geo/GModelIO_MSH.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Geo/GModelIO_MSH.cpp b/Geo/GModelIO_MSH.cpp index 943575c28f..85dd6033d7 100644 --- a/Geo/GModelIO_MSH.cpp +++ b/Geo/GModelIO_MSH.cpp @@ -136,11 +136,11 @@ void readMSHPeriodicNodes(FILE *fp, GModel *gm) for(int i = 0; i < 16; i++){ if(fscanf(fp, "%lf", &tfo[i]) != 1) return; } - if (completePer) s->setMeshMaster(m, tfo); + if(completePer) s->setMeshMaster(m, tfo); } else { fsetpos(fp, &pos); - s->setMeshMaster(m); + if(completePer) s->setMeshMaster(m); } int numv; if(fscanf(fp, "%d", &numv) != 1) numv = 0; @@ -149,7 +149,7 @@ void readMSHPeriodicNodes(FILE *fp, GModel *gm) if(fscanf(fp, "%d %d", &v1, &v2) != 2) continue; MVertex *mv1 = gm->getMeshVertexByTag(v1); MVertex *mv2 = gm->getMeshVertexByTag(v2); - if (completePer) s->correspondingVertices[mv1] = mv2; + if(completePer) s->correspondingVertices[mv1] = mv2; } if (!completePer) { if (!s) -- GitLab