Salome HOME
Doc improvement. Define new Set... methods in GHS3DPluginBuilder.py
[plugins/ghs3dplugin.git] / src / GHS3DPlugin / GHS3DPlugin_GHS3D.cxx
index b4e93a839684366538252b01abcfb0e963d92a91..4bf5cef0d1103b22a069a66f6c4c738675024613 100644 (file)
@@ -2204,7 +2204,7 @@ bool GHS3DPlugin_GHS3D::ComputeMGTetraHPC(SMESH_Mesh&         theMesh,
   std::string _MEDName    = "DOMAIN\0";
   bool verbose            = _hyp ? !_hyp->HasOptionDefined("verbose") : true;
   bool proximity          = _hyp->GetUseVolumeProximity();
-  bool _Multithread       = _hyp->GetUseNumOfThreads();  
+  bool isMultithread      = _hyp->GetUseNumOfThreads();  
   double minSize          = _hyp->GetMinSize(); 
   double maxSize          = _hyp->GetMaxSize();
 
@@ -2261,20 +2261,21 @@ bool GHS3DPlugin_GHS3D::ComputeMGTetraHPC(SMESH_Mesh&         theMesh,
   TCollection_AsciiString cmd = TCollection_AsciiString();
   std::string _AdvOptions;
 
-  if (_Multithread)
+  if (isMultithread)
     cmd += "mg-tetra_hpc.exe";
   else
     cmd  = cmd + "mpirun --n " + NbPart + " mg-tetra_hpc_mpi.exe";
   
   cmd = cmd + " --in=" + GHS3DPRL_In;
 
-  if (_Multithread) 
+
+  if (isMultithread) 
   {
     cmd = cmd + " --max_number_of_threads " + SMESH_Comment( _hyp->GetNumOfThreads() );
 
     const char* parallelMode[] = { "none", "reproducible_given_max_number_of_threads", "reproducible", "aggressive"  };
     const short myMode = _hyp->GetParallelMode();
-    if ( myMode >= 0 && myMode < 4 ) {
+    if ( myMode >= 1 && myMode < 4 ) {
       cmd += " --parallel_mode ";
       cmd += parallelMode[ myMode ];
     }
@@ -2329,7 +2330,7 @@ bool GHS3DPlugin_GHS3D::ComputeMGTetraHPC(SMESH_Mesh&         theMesh,
     return error(log);
   }  
 
-  if (!_Multithread)
+  if (!isMultithread)
   {
     fileskinmed=path + casenamemed + "_skin.med";
     cout<<"  Write file "<<fileskinmed<<"...";
@@ -2341,7 +2342,7 @@ bool GHS3DPlugin_GHS3D::ComputeMGTetraHPC(SMESH_Mesh&         theMesh,
   // Check the real need for calling this program in production!!!
 
   // ... continue the original code!
-  if (_Multithread)
+  if (isMultithread)
   {
     // check the med file has been created (only one med file, since multithread)
     TCollection_AsciiString resuMedFile = TCollection_AsciiString(path) + casenamemed + "_1.med";