Skip to content
Snippets Groups Projects
Commit a587b8ce authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix #67 : simply open bg mesh with MergePostProcessingFile instead of MergeFile

parent 202b2cf5
No related branches found
No related tags found
No related merge requests found
...@@ -209,7 +209,7 @@ int GmshBatch() ...@@ -209,7 +209,7 @@ int GmshBatch()
#if defined(HAVE_POST) && defined(HAVE_MESH) #if defined(HAVE_POST) && defined(HAVE_MESH)
if(!CTX::instance()->bgmFileName.empty()) { if(!CTX::instance()->bgmFileName.empty()) {
MergeFile(CTX::instance()->bgmFileName); MergePostProcessingFile(CTX::instance()->bgmFileName);
if(PView::list.size()) if(PView::list.size())
GModel::current()->getFields()->setBackgroundMesh(PView::list.size() - 1); GModel::current()->getFields()->setBackgroundMesh(PView::list.size() - 1);
else else
...@@ -327,7 +327,7 @@ int GmshFLTK(int argc, char **argv) ...@@ -327,7 +327,7 @@ int GmshFLTK(int argc, char **argv)
// read background mesh if any // read background mesh if any
if(!CTX::instance()->bgmFileName.empty()) { if(!CTX::instance()->bgmFileName.empty()) {
MergeFile(CTX::instance()->bgmFileName); MergePostProcessingFile(CTX::instance()->bgmFileName);
if(PView::list.size()) if(PView::list.size())
GModel::current()->getFields()->setBackgroundMesh(PView::list.size() - 1); GModel::current()->getFields()->setBackgroundMesh(PView::list.size() - 1);
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment