]> SALOME platform Git repositories - plugins/gmshplugin.git/commitdiff
Salome HOME
bos #30450 [CEA][Windows][Forum] SHAPER activation after GMSHPLUGIN call vuzlov/30450_noenv
authorViktor Uzlov <viktor.uzlov@opencascade.com>
Mon, 1 Aug 2022 12:38:43 +0000 (15:38 +0300)
committerViktor Uzlov <viktor.uzlov@opencascade.com>
Mon, 1 Aug 2022 12:38:43 +0000 (15:38 +0300)
src/GMSHPlugin/GMSHPlugin_Mesher.cxx

index 7fb7e56ff1e7dc9b89ce943eb03e9a76baf434f4..2e3fc2da289963f93000a276e61082b8fa229524 100644 (file)
@@ -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);