From: eap Date: Wed, 1 Dec 2021 11:18:12 +0000 (+0300) Subject: bos #26656 [CEA] NETGEN/NETGENPLUGIN abnormal calculation duration X-Git-Tag: V9_8_0rc1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ce9b0e16e02aaeba1a36f1efa77034c600dfcf87;p=plugins%2Fnetgenplugin.git bos #26656 [CEA] NETGEN/NETGENPLUGIN abnormal calculation duration Enable switching off the parallel meshing --- diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index 10c24b5..c407073 100644 --- 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(); + if ( getenv( "SALOME_NETGEN_DISABLE_MULTITHREADING" )) + { + mparams.nthreads = 1; + mparams.parallel_meshing = false; + } + #endif }