From ff44995f59ff0aada4bd226625fd6274df89a73e Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 1 Dec 2021 14:18:12 +0300 Subject: [PATCH] bos #26656 [CEA] NETGEN/NETGENPLUGIN abnormal calculation duration Enable switching off the parallel meshing --- src/NETGENPlugin/NETGENPlugin_Mesher.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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 } -- 2.39.2