]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
Set Maximal number of threads to true as default on the hypothesis. cce/32737_proposal
authorcconopoima <cesar.conopoima@gmail.com>
Wed, 19 Apr 2023 19:30:25 +0000 (16:30 -0300)
committercconopoima <cesar.conopoima@gmail.com>
Wed, 19 Apr 2023 19:30:25 +0000 (16:30 -0300)
src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx
src/GHS3DPlugin/GHS3DPlugin_Hypothesis.hxx

index ceffc05cde70bb9c8732cdbed202e99d44908e14..989eea6d0dbbe391f08c9d205d3b96b98d6028c0 100644 (file)
@@ -72,7 +72,7 @@ GHS3DPlugin_Hypothesis::GHS3DPlugin_Hypothesis(int hypId, SMESH_Gen * gen)
     myNbVolumeProximityLayers(DefaultNbVolumeProximityLayers()),
     myAlgorithm(DefaultAlgorithm()),    
     myNumOfThreads(DefaultNumOfThreads()),
-    myUseNumOfThreads(false),
+    myUseNumOfThreads(DefaultUseNumOfThreads()),
     myPthreadModeMG(DefaultMyPthreadMode()),
     myPthreadModeMGHPC(DefaultMyPthreadModeHPC()),
     myMinSize(0),
index 82b1de25ebfc4351760e6106aef30f3e2a16fa78..fd8c951af9a19fd5269324f0b9e46fdbae4bfdcf 100644 (file)
@@ -371,6 +371,7 @@ public:
   static int    DefaultNbVolumeProximityLayers() { return 2; }
   static short  DefaultAlgorithm() { return MGTetra; }
   static short  DefaultNumOfThreads() { return 4; }
+  static bool   DefaultUseNumOfThreads() { return true; }
   static short  DefaultMyPthreadMode() { return 2; }    //reproducible_given_max_of_threads
   static short  DefaultMyPthreadModeHPC() { return 1; } // safe