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_9_0a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ff44995f59ff0aada4bd226625fd6274df89a73e;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 }