From 842e3ffde8fab8fed4916dd46f6e11954a84311a Mon Sep 17 00:00:00 2001 From: Viktor Uzlov Date: Mon, 1 Aug 2022 15:38:43 +0300 Subject: [PATCH] bos #30450 [CEA][Windows][Forum] SHAPER activation after GMSHPLUGIN call --- src/GMSHPlugin/GMSHPlugin_Mesher.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/GMSHPlugin/GMSHPlugin_Mesher.cxx b/src/GMSHPlugin/GMSHPlugin_Mesher.cxx index 7fb7e56..2e3fc2d 100644 --- a/src/GMSHPlugin/GMSHPlugin_Mesher.cxx +++ b/src/GMSHPlugin/GMSHPlugin_Mesher.cxx @@ -1098,7 +1098,12 @@ bool GMSHPlugin_Mesher::Compute() #if GMSH_MAJOR_VERSION >=4 && GMSH_MINOR_VERSION >=8 SetMaxThreadsGmsh(); #endif +#ifdef WIN32 + char* gmsh_argv = "-noenv"; + GmshInitialize(1, &gmsh_argv); +#else GmshInitialize(); +#endif SetGmshOptions(); _gModel = new GModel(); mymsg msg(_gModel); -- 2.39.2