Salome HOME
Call FrontTrack via its python interface
[modules/smesh.git] / src / SMESH / SMESH_Homard.cxx
index f4516343d8f8f9f0cd9bbfbab94c45520294686f..e02ea2ffeb7232225c66efbe6271c20e52408894 100644 (file)
@@ -1,4 +1,4 @@
-//  HOMARD HOMARD : implementation of HOMARD idl descriptions
+// SMESH HOMARD : implementation of SMESHHOMARD idl descriptions
 //
 // Copyright (C) 2011-2021  CEA/DEN, EDF R&D
 //
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
-//  File   : HOMARD_Boundary.cxx
-//  Author : Gerald NICOLAS, EDF
-//  Module : HOMARD
-//
-// Remarques :
-// L'ordre de description des fonctions est le meme dans tous les fichiers
-// HOMARD_aaaa.idl, HOMARD_aaaa.hxx, HOMARD_aaaa.cxx, HOMARD_aaaa_i.hxx, HOMARD_aaaa_i.cxx :
-// 1. Les generalites : Name, Delete, DumpPython, Dump, Restore
-// 2. Les caracteristiques
-// 3. Le lien avec les autres structures
-//
-// Quand les 2 fonctions Setxxx et Getxxx sont presentes, Setxxx est decrit en premier
 
 #include "SMESH_Homard.hxx"
 
@@ -129,7 +117,7 @@ namespace SMESHHOMARDImpl
 
     std::vector<double> coor = cas.GetBoundingBox();
     os << separator() << coor.size();
-    for ( int i = 0; i < coor.size(); i++ )
+    for ( unsigned int i = 0; i < coor.size(); i++ )
           os << separator() << coor[i];
 
     std::list<std::string> ListString = cas.GetIterations();
@@ -291,10 +279,10 @@ namespace SMESHHOMARDImpl
     }
     else {
       std::vector<double> coor = boundary.GetCoords() ;
-      for ( int i = 0; i < coor.size(); i++ )
+      for ( unsigned int i = 0; i < coor.size(); i++ )
             os << separator() << coor[i];
       std::vector<double> limit = boundary.GetLimit();
-      for ( int i = 0; i < limit.size(); i++ )
+      for ( unsigned int i = 0; i < limit.size(); i++ )
             os << separator() << limit[i];
     }
 
@@ -1084,7 +1072,7 @@ void HOMARD_Cas::SetBoundingBox( const std::vector<double>& extremas )
 {
   _Boite.clear();
   _Boite.resize( extremas.size() );
-  for ( int i = 0; i < extremas.size(); i++ )
+  for ( unsigned int i = 0; i < extremas.size(); i++ )
     _Boite[i] = extremas[i];
 }
 //=============================================================================
@@ -1182,20 +1170,19 @@ HomardDriver::HomardDriver(const std::string siter, const std::string siterp1):
   _Texte( "" ), _bLu( false )
 {
   MESSAGE("siter = "<<siter<<", siterp1 = "<<siterp1);
-// Le repertoire ou se trouve l'executable HOMARD
+  // Le repertoire ou se trouve l'executable HOMARD
   std::string dir ;
-  if ( getenv("HOMARD_REP_EXE_PRIVATE") != NULL ) { dir = getenv("HOMARD_REP_EXE_PRIVATE") ; }
-  else                                            { dir = getenv("HOMARD_REP_EXE") ; }
+  // TODO?
+  if ( getenv("HOMARD_ROOT_DIR") != NULL ) { dir = getenv("HOMARD_ROOT_DIR") ; }
+  dir += "/bin/salome";
   MESSAGE("dir ="<<dir);
-// L'executable HOMARD
-  std::string executable ;
-  if ( getenv("HOMARD_EXE_PRIVATE") != NULL ) { executable = getenv("HOMARD_EXE_PRIVATE") ; }
-  else                                        { executable = getenv("HOMARD_EXE") ; }
+  // L'executable HOMARD
+  std::string executable = "homard";
   MESSAGE("executable ="<<executable);
-// Memorisation du nom complet de l'executable HOMARD
+  // Memorisation du nom complet de l'executable HOMARD
   _HOMARD_Exec = dir + "/" + executable ;
   MESSAGE("==> _HOMARD_Exec ="<<_HOMARD_Exec) ;
-//
+  //
   _siter = siter ;
   _siterp1 = siterp1 ;
 }