]> SALOME platform Git repositories - tools/medcoupling.git/blobdiff - src/PyWrapping/medcoupling.i
Salome HOME
Deal with pipes
[tools/medcoupling.git] / src / PyWrapping / medcoupling.i
index 8b9e670125b6a3daca7b1bab6d61944249b967f2..c97318d5b366b7baf6bdee822caa4aa6a5130304 100644 (file)
@@ -42,6 +42,9 @@
 %include "MEDPartitionerCommon.i"
 #endif
 
+#ifdef WITH_PARALLEL_INTERPOLATOR
+%include "ParaMEDMEMCommon.i"
+#endif
 
 %{
   static const char SEQ_INTERPOL_EXT[]="Sequential interpolator";
     std::vector<std::string> ret(EXTENSIONS,EXTENSIONS+NB_OF_EXTENSIONS);
     return ret;
   }
+
+  bool HasMEDFileExt()
+  {
+#ifdef WITH_MED_FILE
+    return true;
+#else
+    return false;
+#endif
+  }
+
+  bool HasRenumberExt()
+  {
+#ifdef WITH_RENUMBER
+    return true;
+#else
+    return false;
+#endif
+  }
+
+  bool HasPartitionerExt()
+  {
+#ifdef WITH_PARTITIONER
+    return true;
+#else
+    return false;
+#endif
+  }
+
+  bool HasScotchPartitionerAlg()
+  {
+#ifdef WITH_PARTITIONER
+    return MEDPartitioner::HasScotchAlg();
+#else
+    return false;
+#endif    
+  }
+
+  bool HasPTScotchPartitionerAlg()
+  {
+#ifdef WITH_PARTITIONER
+    return MEDPartitioner::HasPTScotchAlg();
+#else
+    return false;
+#endif    
+  }
+
+  bool HasMetisPartitionerAlg()
+  {
+#ifdef WITH_PARTITIONER
+    return MEDPartitioner::HasMetisAlg();
+#else
+    return false;
+#endif    
+  }
+  
+  bool HasParallelInterpolatorExt()
+  {
+#ifdef WITH_PARALLEL_INTERPOLATOR
+    return true;
+#else
+    return false;
+#endif
+  }
   
   std::vector<std::string> ActiveExtensions()
   {
 #endif
 #ifdef WITH_PARTITIONER
     ret.push_back(std::string(PART_EXT));
+#endif
+#ifdef WITH_PARALLEL_INTERPOLATOR
+    ret.push_back(std::string(PAR_INTERPOL_EXT));
 #endif
     return ret;
   }