Salome HOME
projects
/
plugins
/
netgenplugin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
004d9b9
)
bos #26656 [CEA] NETGEN/NETGENPLUGIN abnormal calculation duration
V9_8_BR
V9_8_0
V9_8_0rc1
author
eap
<eap@opencascade.com>
Wed, 1 Dec 2021 11:18:12 +0000
(14:18 +0300)
committer
vsr
<vsr@opencascade.com>
Wed, 1 Dec 2021 12:04:30 +0000
(15:04 +0300)
Enable switching off the parallel meshing
src/NETGENPlugin/NETGENPlugin_Mesher.cxx
patch
|
blob
|
history
diff --git
a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx
b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx
index 10c24b523c179c53d2e09e5a20d41ec360e3496a..c407073210f477dae284da63d3411830434a589c 100644
(file)
--- a/
src/NETGENPlugin/NETGENPlugin_Mesher.cxx
+++ b/
src/NETGENPlugin/NETGENPlugin_Mesher.cxx
@@
-604,6
+604,12
@@
void NETGENPlugin_Mesher::SetDefaultParameters()
mparams.nthreads = std::thread::hardware_concurrency();
mparams.nthreads = std::thread::hardware_concurrency();
+ if ( getenv( "SALOME_NETGEN_DISABLE_MULTITHREADING" ))
+ {
+ mparams.nthreads = 1;
+ mparams.parallel_meshing = false;
+ }
+
#endif
}
#endif
}