From: Viktor Uzlov Date: Mon, 1 Aug 2022 12:38:43 +0000 (+0300) Subject: bos #30450 [CEA][Windows][Forum] SHAPER activation after GMSHPLUGIN call X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fvuzlov%2F30450_noenv;p=plugins%2Fgmshplugin.git bos #30450 [CEA][Windows][Forum] SHAPER activation after GMSHPLUGIN call --- 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);