]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
bos #26656 [CEA] NETGEN/NETGENPLUGIN abnormal calculation duration V9_8_BR V9_8_0 V9_8_0rc1
authoreap <eap@opencascade.com>
Wed, 1 Dec 2021 11:18:12 +0000 (14:18 +0300)
committervsr <vsr@opencascade.com>
Wed, 1 Dec 2021 12:04:30 +0000 (15:04 +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
 }