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 }