]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
Solving more issues. Carefull var init in constructor to avoid compilation warnings...
authorcconopoima <cesar.conopoima@gmail.com>
Wed, 29 Mar 2023 13:55:03 +0000 (10:55 -0300)
committercconopoima <cesar.conopoima@gmail.com>
Wed, 29 Mar 2023 13:55:03 +0000 (10:55 -0300)
src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx
src/GHS3DPlugin/GHS3DPlugin_Hypothesis.hxx
src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx
src/GUI/GHS3DPluginGUI_HypothesisCreator.h

index 2f3b55e08e24675d0726579c4fdda024655c67c4..4322fad1e2deab0ef10351d436695e6fb45ef8a2 100644 (file)
@@ -1824,8 +1824,9 @@ std::string GHS3DPlugin_Hypothesis::CommandToRun(const GHS3DPlugin_Hypothesis* h
                                                  const bool                    hasShapeToMesh,
                                                  const bool                    forExecutable)
 {
-  GHS3DPlugin_Hypothesis::ImplementedAlgorithms algoId = (ImplementedAlgorithms) hyp->myAlgorithm;
+  GHS3DPlugin_Hypothesis::ImplementedAlgorithms algoId = hyp ? (ImplementedAlgorithms) hyp->myAlgorithm : MGTetra;
   std::string cmd = GetExeName( algoId );
+  
   // check if any option is overridden by hyp->myTextOption
   bool max_memory     = hyp ? !hyp->HasOptionDefined("max_memory")               : true;
   bool auto_memory    = hyp ? !hyp->HasOptionDefined("automatic_memory")         : true;
index 1b52bb6f69971be95307c42b3483ebc2cf4f2121..1c0e864b7ab384b2dcf189121040b0e6283500da 100644 (file)
@@ -414,14 +414,15 @@ protected:
   double      myGradation;
   bool        myUseVolumeProximity;
   int         myNbVolumeProximityLayers;
-  double      myMinSize, myMinSizeDefault;
-  double      myMaxSize, myMaxSizeDefault;
-  //std::string myTextOption;
   short       myAlgorithm;  //member used to pivot between MG-Tetra and MG-Tetra
-  bool        myUseNumOfThreads;
   short       myNumOfThreads;
+  bool        myUseNumOfThreads;
   short       myPthreadModeMG;
   short       myPthreadModeMGHPC;
+  double      myMinSize, myMinSizeDefault;
+  double      myMaxSize, myMaxSizeDefault;
+  //std::string myTextOption;
+
   
   TOptionValues _option2value, _customOption2value;         // user defined values
   TOptionValues _defaultOptionValues;                       // default values
index 2589be3438fc78e739012c21b903769cccec5ba7..05e1e7f6f47ee526238da0b375e99eb91d1afaf4 100644 (file)
@@ -304,12 +304,12 @@ GHS3DPluginGUI_HypothesisCreator::GHS3DPluginGUI_HypothesisCreator( const QStrin
     myOptimizationLevelCombo(0),
     myMinSizeCheck(0),
     myMaxSizeCheck(0),
-    myNumOfThreadsCheck(0),
     myMinSizeSpin(0),
     myMaxSizeSpin(0),
+    myNumOfThreadsCheck(0),
+    myNumOfThreadsSpin(0),
     myGradationCheck(0),
     myGradationSpin(0),
-    myNumOfThreadsSpin(0),
     myUseProximityGroup(0),
     myNbProximityLayers(0),
     myToMakeGroupsOfDomains(0),
@@ -380,7 +380,8 @@ void GHS3DPluginGUI_HypothesisCreator::onRadioButtomSelect()
     myAdvWidget->initialMemoryCheck ->setEnabled( true );
 
     myAdvWidget->EnableAdvancedOptions( true );
-
+    myEnfGroup->setEnabled( true );
+    myEnfMeshGroup->setEnabled( true );
   }
   else if ( myRadioBottomGroup->checkedId() == GHS3DPlugin_Hypothesis::MGTetraHPC )
   {
@@ -392,6 +393,8 @@ void GHS3DPluginGUI_HypothesisCreator::onRadioButtomSelect()
     myAdvWidget->maxMemoryCheck     ->setEnabled( false );
     myAdvWidget->initialMemoryCheck ->setEnabled( false );    
     myAdvWidget->EnableAdvancedOptions( false );
+    myEnfGroup->setEnabled( false );
+    myEnfMeshGroup->setEnabled( false );
   }    
 
 }
index b7cb887543e79ba2a69bb6fc9ec68eba1d3cf9e8..3201e03e58359539b5595bd3b00db7e1e7869713 100644 (file)
@@ -235,9 +235,6 @@ private:
   QCheckBox*            myMaxSizeCheck;
   SMESHGUI_SpinBox*     myMinSizeSpin;
   SMESHGUI_SpinBox*     myMaxSizeSpin;
-  QButtonGroup*         myRadioBottomGroup;
-  QComboBox*            myPthreadMode;
-  QComboBox*            myParallelMode;
   QCheckBox*            myNumOfThreadsCheck;
   SalomeApp_IntSpinBox* myNumOfThreadsSpin;
   mutable double        myMinSizeDefault, myMaxSizeDefault;
@@ -256,6 +253,9 @@ private:
   SalomeApp_IntSpinBox* myNumberOfThreadsSpin;
   QCheckBox*            mySmoothOffSliversCheck;
   QCheckBox*            myCreateNewNodesCheck;
+  QComboBox*            myPthreadMode;
+  QComboBox*            myParallelMode;
+  QButtonGroup*         myRadioBottomGroup;
 
   QWidget*                  myAdvGroup;
   GHS3DPluginGUI_AdvWidget* myAdvWidget;