From a587b8cef3ebf1452ca886facf1bf883f5894f5f Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sun, 27 Apr 2014 20:33:37 +0000
Subject: [PATCH] fix #67 : simply open bg mesh with MergePostProcessingFile
 instead of MergeFile

---
 Common/Gmsh.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Common/Gmsh.cpp b/Common/Gmsh.cpp
index d04c08ef4f..de1d912590 100644
--- a/Common/Gmsh.cpp
+++ b/Common/Gmsh.cpp
@@ -209,7 +209,7 @@ int GmshBatch()
 
 #if defined(HAVE_POST) && defined(HAVE_MESH)
   if(!CTX::instance()->bgmFileName.empty()) {
-    MergeFile(CTX::instance()->bgmFileName);
+    MergePostProcessingFile(CTX::instance()->bgmFileName);
     if(PView::list.size())
       GModel::current()->getFields()->setBackgroundMesh(PView::list.size() - 1);
     else
@@ -327,7 +327,7 @@ int GmshFLTK(int argc, char **argv)
 
   // read background mesh if any
   if(!CTX::instance()->bgmFileName.empty()) {
-    MergeFile(CTX::instance()->bgmFileName);
+    MergePostProcessingFile(CTX::instance()->bgmFileName);
     if(PView::list.size())
       GModel::current()->getFields()->setBackgroundMesh(PView::list.size() - 1);
     else
-- 
GitLab