]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
bos #18709: gmshplugin
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 5 Apr 2022 13:25:37 +0000 (15:25 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 5 Apr 2022 13:25:37 +0000 (15:25 +0200)
products/GMSHPLUGIN.pyconf
products/gmsh.pyconf
products/patches/GMSHPLUGIN-BOS-18709.patch [new file with mode: 0644]

index 048d905cfab81ea1b5f8fcec6489709030941207..ddfe7f39826f59c79bb0daa0afc07be403cd9c75 100644 (file)
@@ -34,7 +34,7 @@ default :
 
 default_win :
 {
-   patches : ['GMSHPlugin_Mesher-ctx.patch']
+   patches : ['GMSHPLUGIN-BOS-18709.patch']
 }
 
 version_8_1_0_to_9_1_0 :
index 2fac5a5320fffbb95862b44fdf0b6532064d075d..7861ebaf32118e7bd9abde63d6008478b5e56b51 100644 (file)
@@ -33,6 +33,7 @@ version_4_8_4:
 version_4_8_4_win:
 {
   compil_script : "gmsh-4.8.4.bat"
+  patches: ['gmsh-4.8.4-windows.patch']
 }
 
 version_4_1_4:
diff --git a/products/patches/GMSHPLUGIN-BOS-18709.patch b/products/patches/GMSHPLUGIN-BOS-18709.patch
new file mode 100644 (file)
index 0000000..cfb4d42
--- /dev/null
@@ -0,0 +1,15 @@
+diff --git a/src/GMSHPlugin/GMSHPlugin_Mesher.cxx b/src/GMSHPlugin/GMSHPlugin_Mesher.cxx
+index 847526e..556c7bb 100644
+--- a/src/GMSHPlugin/GMSHPlugin_Mesher.cxx
++++ b/src/GMSHPlugin/GMSHPlugin_Mesher.cxx
+@@ -320,8 +320,10 @@ void GMSHPlugin_Mesher::SetGmshOptions()
+   ok = GmshSetOption("Mesh", "MaxNumThreads3D"          , 0. )  ; // Fine-grain algo threads HXT
+   ASSERT(ok);
+ **/
++  #ifndef WIN32
+   ok = GmshSetOption("General", "NumThreads"            , _maxThreads )  ; // system default i.e. OMP_NUM_THREADS
+   ASSERT(ok);
++  #endif WIN32
+ #endif
+ }