From 43c81fa15c76036f1486019635b7dd95c1cd2c4a Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 24 Apr 2017 17:14:09 +0200 Subject: [PATCH] Install MEDPartitioner.py at the right place to be able to use it ! --- src/MEDPartitioner_Swig/CMakeLists.txt | 2 +- src/MEDPartitioner_Swig/MEDPartitionerCommon.i | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MEDPartitioner_Swig/CMakeLists.txt b/src/MEDPartitioner_Swig/CMakeLists.txt index 0c622da76..3e025745f 100644 --- a/src/MEDPartitioner_Swig/CMakeLists.txt +++ b/src/MEDPartitioner_Swig/CMakeLists.txt @@ -57,7 +57,7 @@ ENDIF(WIN32) INSTALL(TARGETS ${SWIG_MODULE_MEDPartitioner_REAL_NAME} DESTINATION ${MEDCOUPLING_INSTALL_PYTHON}) SET(PYFILES_TO_INSTALL ${CMAKE_CURRENT_BINARY_DIR}/MEDPartitioner.py) -SALOME_INSTALL_SCRIPTS("${PYFILES_TO_INSTALL}" ${MEDCOUPLING_INSTALL_SCRIPT_PYTHON}) +SALOME_INSTALL_SCRIPTS("${PYFILES_TO_INSTALL}" ${MEDCOUPLING_INSTALL_PYTHON}) INSTALL(FILES MEDPartitioner.i MEDPartitionerCommon.i DESTINATION ${MEDCOUPLING_INSTALL_HEADERS}) INSTALL(FILES MEDPartitionerTest.py DESTINATION ${MEDCOUPLING_INSTALL_SCRIPT_PYTHON}) diff --git a/src/MEDPartitioner_Swig/MEDPartitionerCommon.i b/src/MEDPartitioner_Swig/MEDPartitionerCommon.i index 3f73621db..7ecf24f86 100644 --- a/src/MEDPartitioner_Swig/MEDPartitionerCommon.i +++ b/src/MEDPartitioner_Swig/MEDPartitionerCommon.i @@ -49,6 +49,8 @@ namespace MEDPARTITIONER { class Graph { + public: + typedef enum {METIS,SCOTCH} splitter_type; public: virtual void partGraph(int ndomain, const std::string& options_string="", ParaDomainSelector *sel=0) throw(INTERP_KERNEL::Exception); const MEDCoupling::MEDCouplingSkyLineArray *getGraph() const; -- 2.39.2