Salome HOME
projects
/
plugins
/
gmshplugin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b70c267
)
spns #34443: on Windows, if HXT algorithm is used, ensure number of threads for this...
spns/34443
V9_11_0a1
V9_11_0a2
2/head
author
Nabil Ghodbane
<nabil.ghodbane@cea.fr>
Wed, 12 Apr 2023 11:56:49 +0000
(13:56 +0200)
committer
Nabil Ghodbane
<nabil.ghodbane@cea.fr>
Wed, 12 Apr 2023 11:56:49 +0000
(13:56 +0200)
src/GMSHPlugin/GMSHPlugin_Mesher.cxx
patch
|
blob
|
history
diff --git
a/src/GMSHPlugin/GMSHPlugin_Mesher.cxx
b/src/GMSHPlugin/GMSHPlugin_Mesher.cxx
index 4ce6c58049951e6284689cfec882c4158be578a1..92b50309d5faee5bac98533ece3e967ce0a1af6a 100644
(file)
--- a/
src/GMSHPlugin/GMSHPlugin_Mesher.cxx
+++ b/
src/GMSHPlugin/GMSHPlugin_Mesher.cxx
@@
-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
}