]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
On the fly
authorAnthony Geay <anthony.geay@edf.fr>
Tue, 19 Dec 2017 15:39:27 +0000 (16:39 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Tue, 19 Dec 2017 15:39:27 +0000 (16:39 +0100)
src/MEDPartitioner/MEDPARTITIONER_MEDPartitioner.cxx
src/MEDPartitioner/MEDPARTITIONER_MEDPartitioner.hxx
src/MEDPartitioner_Swig/MEDPartitionerCommon.i
src/PyWrapping/medcoupling.i
src/RENUMBER/RenumberingFactory.cxx
src/RENUMBER/RenumberingFactory.hxx
src/RENUMBER_Swig/MEDRenumberImpl.i

index c1782c85d23f0c8d8af89eccc0cff05317f8f4cb..5677d56abe9e1f7731c053b038f96d15e332c9d0 100644 (file)
@@ -190,3 +190,12 @@ std::vector<std::string> MEDPARTITIONER::MEDPartitioner::AvailableAlgorithms()
 #endif
   return ret;
 }
+
+std::vector<std::string> MEDPARTITIONER::MEDPartitioner::AllAlgorithms()
+{
+  std::vector<std::string> ret;
+  ret.push_back(std::string(METIS_PART_ALG));
+  ret.push_back(std::string(SCOTCH_PART_ALG));
+  ret.push_back(std::string(PTSCOTCH_PART_ALG));
+  return ret;
+}
index 93a90cbabfc387bbf774b9666778762f95946cb1..7f8b61ea50941215cfb9007f3e34a7860dcebf96 100644 (file)
@@ -46,6 +46,7 @@ namespace MEDPARTITIONER
     MEDPartitioner(const MEDCoupling::MEDFileData* fileData, Graph* graph, bool create_boundary_faces=false, bool create_joints=false, bool mesure_memory=false);
     static MEDPARTITIONER::Graph* Graph(MEDCoupling::MEDCouplingSkyLineArray* graph, Graph::splitter_type split=Graph::METIS, int* edgeweight=0, DataArrayInt* vlbloctab=0);
     static std::vector<std::string> AvailableAlgorithms();
+    static std::vector<std::string> AllAlgorithms();
     void write(const std::string& filename);
     MEDCoupling::MEDFileData* getMEDFileData();
     ~MEDPartitioner();
index 7363c4dfbc47cdaf944509a27774ee0d4bac288b..aeb343a2724d6ca3b10ebad18e98c6bb9021ee13 100644 (file)
@@ -66,6 +66,7 @@ namespace MEDPARTITIONER
     MEDPartitioner(const MEDCoupling::MEDFileData* fileData, Graph* graph, bool create_boundary_faces=false, bool create_joints=false, bool mesure_memory=false) throw(INTERP_KERNEL::Exception);
     static MEDPARTITIONER::Graph* Graph(MEDCoupling::MEDCouplingSkyLineArray* graph, Graph::splitter_type split=Graph::METIS, int* edgeweight=0, MEDCoupling::DataArrayInt* vlbloctab=0) throw(INTERP_KERNEL::Exception);
     static std::vector<std::string> AvailableAlgorithms();
+    static std::vector<std::string> AllAlgorithms();
     MEDCoupling::MEDFileData* getMEDFileData() throw(INTERP_KERNEL::Exception);
     void write(const std::string& filename) throw(INTERP_KERNEL::Exception);
   };
index 79395956fd821408cdae293f396f32a2c2c42516..300c07a95c67258db931b0124ba7ced35467e2fc 100644 (file)
@@ -44,9 +44,9 @@
 %{
   static const char SEQ_INTERPOL_EXT[]="Sequential interpolator";
   static const char MEDFILEIO_EXT[]="MED file I/O";
-  static const char RENUM_EXT[]="Renumbering";
+  static const char RENUM_EXT[]="Renumberer";
   static const char PART_EXT[]="Partitioner";
-  static const char PAR_INTERPOL_EXT[]="Parallel interpolator";
+  static const char PAR_INTERPOL_EXT[]="Parallel interpolator (SPMD paradigm)";
   
   static const char *EXTENSIONS[]={SEQ_INTERPOL_EXT,MEDFILEIO_EXT,RENUM_EXT,PART_EXT,PAR_INTERPOL_EXT};
   static const int NB_OF_EXTENSIONS=sizeof(EXTENSIONS)/sizeof(const char *);
 
 %inline
 {
-  std::vector<std::string> Extensions()
+  std::vector<std::string> AllPossibleExtensions()
+  {
+    std::vector<std::string> ret(EXTENSIONS,EXTENSIONS+NB_OF_EXTENSIONS);
+    return ret;
+  }
+  
+  std::vector<std::string> ActiveExtensions()
   {
     std::vector<std::string> ret;
     ret.push_back(std::string(SEQ_INTERPOL_EXT));
index 9bef7b9bad617002571eef57a21ecc275b8a8b62..fd4410e9011414fd75113b222c24ad15f9958c1c 100644 (file)
@@ -80,6 +80,14 @@ namespace MED_RENUMBER
 #endif
 #endif
   }
+
+  std::vector<std::string> AllRenumberMethods()
+  {
+    std::vector<std::string> ret;
+    ret.push_back(std::string(BOOST_ALG));
+    ret.push_back(std::string(METIS_ALG));
+    return ret;
+  }
   
   std::vector<std::string> RenumberAvailableMethods()
   {
index a54d52068bfe238e9653c227beb9978c6838573a..8e3b65d399c6617524001c4be047fe2ac19ca896 100644 (file)
@@ -29,8 +29,9 @@ namespace MED_RENUMBER
 {
   RENUMBER_EXPORT Renumbering* RenumberingFactory(const std::string& s);
   RENUMBER_EXPORT std::vector<std::string> RenumberAvailableMethods();
-  const char METIS_ALG[]="METIS";
-  const char BOOST_ALG[]="BOOST";
+  RENUMBER_EXPORT std::vector<std::string> AllRenumberMethods();
+  const char METIS_ALG[]="Metis";
+  const char BOOST_ALG[]="Boost";
 }
 
 #endif /*RENUMBERINGFACTORY_HXX_*/
index 4aabc832bf104761ca99606380b7cf404d02fba0..489a8a3b5d92397a064ca432bc2a415e0b0547b5 100644 (file)
@@ -53,4 +53,5 @@ namespace MED_RENUMBER
 {
   Renumbering *RenumberingFactory(const std::string& s) throw(INTERP_KERNEL::Exception);
   std::vector<std::string> RenumberAvailableMethods();
+  std::vector<std::string> AllRenumberMethods();
 }