]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
bos #26656 [CEA] NETGEN/NETGENPLUGIN abnormal calculation duration
authoreap <eap@opencascade.com>
Wed, 1 Dec 2021 11:18:12 +0000 (14:18 +0300)
committereap <eap@opencascade.com>
Wed, 1 Dec 2021 11:18:12 +0000 (14:18 +0300)
  Enable switching off the parallel meshing

src/NETGENPlugin/NETGENPlugin_Mesher.cxx

index 10c24b523c179c53d2e09e5a20d41ec360e3496a..c407073210f477dae284da63d3411830434a589c 100644 (file)
@@ -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
 }