// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+%module MEDPartitioner
+
+%{
+#include "MEDFileData.hxx"
+
+using namespace MEDCoupling;
+using namespace INTERP_KERNEL;
+%}
+
+%feature("autodoc", "1");
+%feature("docstring");
+
+%feature("unref") MEDCoupling::MEDFileData "$this->decrRef();"
+
+%nodefaultctor;
+
+%rename (InterpKernelException) INTERP_KERNEL::Exception;
+
%include "MEDPartitionerCommon.i"
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-%module MEDPartitioner
-
-%include std_string.i
-
%{
-#include "MEDFileData.hxx"
-
#include "MEDPARTITIONER_MEDPartitioner.hxx"
#include "MEDPARTITIONER.hxx"
#include "MEDPARTITIONER_Graph.hxx"
-using namespace MEDCoupling;
-using namespace INTERP_KERNEL;
using namespace MEDPARTITIONER;
%}
-%feature("autodoc", "1");
-%feature("docstring");
-
%newobject MEDPARTITIONER::MEDPartitioner::New;
%newobject MEDPARTITIONER::MEDPartitioner::Graph;
%newobject MEDPARTITIONER::MEDPartitioner::Graph::getGraph;
%newobject MEDPARTITIONER::MEDPartitioner::Graph::getPartition;
%newobject MEDPARTITIONER::MEDPartitioner::getMEDFileData;
-%feature("unref") MEDCoupling::MEDFileData "$this->decrRef();"
-
-%nodefaultctor;
-
-%rename (InterpKernelException) INTERP_KERNEL::Exception;
namespace MEDPARTITIONER
{
ENDIF(MEDCOUPLING_ENABLE_RENUMBER)
+IF(MEDCOUPLING_ENABLE_PARTITIONER)
+
+ENDIF(MEDCOUPLING_ENABLE_PARTITIONER)
+
SWIG_ADD_MODULE(medcoupling python medcoupling.i)
SWIG_LINK_LIBRARIES(medcoupling ${medcoupling_LIB_dependancies})
SWIG_CHECK_GENERATION(medcoupling)