Salome HOME
Doc improvement. Define new Set... methods in GHS3DPluginBuilder.py
[plugins/ghs3dplugin.git] / src / GHS3DPlugin / GHS3DPlugin_Hypothesis.cxx
index 26f97394bb46dd8726ba5ae379086fcccc8c86e5..ef7a0d961af55371b6d9e6a46e1f3d436db5ce6a 100644 (file)
@@ -103,7 +103,7 @@ GHS3DPlugin_Hypothesis::GHS3DPlugin_Hypothesis(int hypId, SMESH_Gen * gen)
                                     "split_overconstrained_tetrahedra", // no
                                     "" // mark of end
   };
-  _commonMGTetraAdvancedOptions = { "split_overconstrained_tetrahedra" };
+
   int i = 0;
   while (boolOptionNames[i][0])
   {
@@ -1751,7 +1751,6 @@ void GHS3DPlugin_Hypothesis::SetAdvancedOptionsInCommandLine( std::string & cmd,
     {
       option = o2v->first;
       value = this->GetOptionValue( option, &isDefault );
-      std::cout << option << ", " << value << std::endl;
 
       if ( isDefault )
         continue;
@@ -1784,7 +1783,6 @@ void GHS3DPlugin_Hypothesis::SetAdvancedOptionsInCommandLine( std::string & cmd,
  * \brief Return command to run MG-Tetra mesher excluding file prefix (-f)
  */
 //================================================================================
-
 std::string GHS3DPlugin_Hypothesis::CommandToRun(const GHS3DPlugin_Hypothesis* hyp,
                                                  const bool                    hasShapeToMesh,
                                                  const bool                    forExecutable)
@@ -1822,6 +1820,7 @@ std::string GHS3DPlugin_Hypothesis::CommandToRun(const GHS3DPlugin_Hypothesis* h
     if ( aInitialMemory > 0 ) cmd += SMESH_Comment( int( aInitialMemory ));
     else                      cmd += "100";
   }
+
   // component to mesh
   if ( comp && !useBndRecovery ) {
     // We always run MG-Tetra with "to mesh holes'==TRUE (see PAL19680)
@@ -1862,16 +1861,6 @@ std::string GHS3DPlugin_Hypothesis::CommandToRun(const GHS3DPlugin_Hypothesis* h
       cmd += " --verbose " + SMESH_Comment( hyp->myVerboseLevel );
     }
 
-    // boundary recovery version
-    // if ( useBndRecovery ) {
-    //   cmd += " -C";
-    // }
-
-    // to use FEM correction
-    // if ( fem && hyp && hyp->myToUseFemCorrection) {
-    //   cmd += " -FEM";
-    // }
-
     // to remove initial central point.
     if ( rem && hyp->myToRemoveCentralPoint ) {
       if ( forExecutable )
@@ -1880,12 +1869,6 @@ std::string GHS3DPlugin_Hypothesis::CommandToRun(const GHS3DPlugin_Hypothesis* h
         cmd += " --centralpoint no";
     }
 
-    // options as text
-    // if ( !hyp->myTextOption.empty() ) {
-    //   cmd += " " + hyp->myTextOption;
-    // }
-
-
     if ( hyp->GetMinSize() > 0 )
       cmd += " --min_size " + SMESH_Comment( hyp->GetMinSize() );
 
@@ -1900,7 +1883,7 @@ std::string GHS3DPlugin_Hypothesis::CommandToRun(const GHS3DPlugin_Hypothesis* h
     {
       cmd += " --max_number_of_threads "  + SMESH_Comment( hyp->GetNumOfThreads() );
       const char* pthreadMode[] = { "none" , "aggressive" , "safe" };
-      if ( hyp->myPthreadModeMG >= 0 && hyp->myPthreadModeMG < 3 ) {
+      if ( hyp->myPthreadModeMG >= 1 && hyp->myPthreadModeMG < 3 ) {
         cmd += " --pthreads_mode ";
         cmd += pthreadMode[ hyp->myPthreadModeMG ];
       }