]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
MEDPartitioner is in medcoupling python module
authorAnthony Geay <anthony.geay@edf.fr>
Fri, 15 Dec 2017 15:45:32 +0000 (16:45 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 15 Dec 2017 15:45:32 +0000 (16:45 +0100)
src/MEDPartitioner_Swig/MEDPartitioner.i
src/PyWrapping/CMakeLists.txt
src/PyWrapping/medcoupling.i

index 9460fe8c6a25001b2712d80c3a285026f30d7625..5967231a42d9db6d73215688472aeff391357ed2 100644 (file)
@@ -26,6 +26,8 @@ using namespace MEDCoupling;
 using namespace INTERP_KERNEL;
 %}
 
+%include std_string.i
+
 %feature("autodoc", "1");
 %feature("docstring");
 
index 6e6ceb6f5b20e55c194de391fd1104db80bc32e5..3f041c0b73201362b06e14c63e97ee191090ba02 100644 (file)
@@ -50,6 +50,8 @@ INCLUDE_DIRECTORIES(
   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/GaussPoints
   ${CMAKE_CURRENT_SOURCE_DIR}/../RENUMBER
   ${CMAKE_CURRENT_SOURCE_DIR}/../RENUMBER_Swig
+  ${CMAKE_CURRENT_SOURCE_DIR}/../MEDPartitioner
+  ${CMAKE_CURRENT_SOURCE_DIR}/../MEDPartitioner_Swig
   ${PROJECT_BINARY_DIR}/doc
   )
 
@@ -75,7 +77,8 @@ IF(MEDCOUPLING_ENABLE_RENUMBER)
 ENDIF(MEDCOUPLING_ENABLE_RENUMBER)
 
 IF(MEDCOUPLING_ENABLE_PARTITIONER)
-  
+  LIST(APPEND SWIG_MODULE_medcoupling_EXTRA_FLAGS -DWITH_PARTITIONER)
+  LIST(APPEND medcoupling_LIB_dependancies medpartitionercpp)
 ENDIF(MEDCOUPLING_ENABLE_PARTITIONER)
 
 SWIG_ADD_MODULE(medcoupling python medcoupling.i)
index a91106dcb72a21f85c3360dd4ea5a18754221387..bce7790ca494731110d60b0c938d6ecf4f2c8e93 100644 (file)
 %include "MEDRenumberImpl.i"
 #endif
 
+#ifdef WITH_PARTITIONER
+%include "MEDPartitionerCommon.i"
+#endif
+
 %pythoncode %{
 def MEDCouplingDataArrayDoubleIadd(self,*args):
     import _medcoupling