]> SALOME platform Git repositories - plugins/gmshplugin.git/blobdiff - src/GMSHPlugin/GMSHPlugin_Mesher.cxx
Salome HOME
spns #34443: on Windows, if HXT algorithm is used, ensure number of threads for this...
[plugins/gmshplugin.git] / src / GMSHPlugin / GMSHPlugin_Mesher.cxx
index 4ce6c58049951e6284689cfec882c4158be578a1..92b50309d5faee5bac98533ece3e967ce0a1af6a 100644 (file)
@@ -329,6 +329,13 @@ void GMSHPlugin_Mesher::SetGmshOptions()
 **/
   ok = GmshSetOption("General", "NumThreads"            , _maxThreads )  ; // system default i.e. OMP_NUM_THREADS
   ASSERT(ok);
+#ifdef WIN32
+  if ( GMSHPlugin_Hypothesis::Algo3D::hxt == _algo3d ){
+    MESSAGE("GMSHPlugin_Mesher::SetGmshOptions: HXT algorithm is being used. Setting number of threads to 1.");
+    ok = GmshSetOption("Mesh", "MaxNumThreads3D"       , 1. );
+    ASSERT(ok);
+  } // hxt
+#endif
 #endif
 }