From: cconopoima Date: Wed, 19 Apr 2023 19:30:25 +0000 (-0300) Subject: Set Maximal number of threads to true as default on the hypothesis. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fd9df32b907c2f650e642f1c8d3dae8c05029f85;p=plugins%2Fghs3dplugin.git Set Maximal number of threads to true as default on the hypothesis. --- diff --git a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx index ceffc05..989eea6 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx @@ -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), diff --git a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.hxx b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.hxx index 82b1de2..fd8c951 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.hxx +++ b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.hxx @@ -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