]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
[DEC] Adding MEDField interface
authorabn <adrien.bruneton@cea.fr>
Mon, 3 Apr 2017 10:15:29 +0000 (12:15 +0200)
committerabn <adrien.bruneton@cea.fr>
Mon, 3 Apr 2017 10:15:29 +0000 (12:15 +0200)
src/ParaMEDMEM/OverlapDEC.cxx
src/ParaMEDMEM/OverlapDEC.hxx

index ff6c7e2c018960cf339603e58722981669c8639d..75cbee3085ccb68d9d6859854bb5a43ec90407d1 100644 (file)
@@ -25,6 +25,7 @@
 #include "MPIProcessorGroup.hxx"
 #include "OverlapElementLocator.hxx"
 #include "OverlapInterpolationMatrix.hxx"
+#include "ICoCoMEDField.hxx"
 
 namespace MEDCoupling
 {
@@ -348,6 +349,16 @@ namespace MEDCoupling
     attachTargetLocalField(tmpField,true);
   }
 
+  void OverlapDEC::attachSourceLocalField(ICoCo::MEDField *field)
+  {
+    attachSourceLocalField(field->getField());
+  }
+
+  void OverlapDEC::attachTargetLocalField(ICoCo::MEDField *field)
+  {
+    attachTargetLocalField(field->getField());
+  }
+
   bool OverlapDEC::isInGroup() const
   {
     if(!_group)
index c36c4306e4d6099b879698c942e5a198ad9f7845..c510617f336b0107dbee8e08bcaaeacfbe054dbd 100644 (file)
 #include <mpi.h>
 #include <string>
 
+namespace ICoCo {
+  class MEDField;
+}
+
 namespace MEDCoupling
 {
   class OverlapInterpolationMatrix;
@@ -47,6 +51,8 @@ namespace MEDCoupling
     void attachTargetLocalField(ParaFIELD *field, bool ownPt=false);
     void attachSourceLocalField(MEDCouplingFieldDouble *field);
     void attachTargetLocalField(MEDCouplingFieldDouble *field);
+    void attachSourceLocalField(ICoCo::MEDField *field);
+    void attachTargetLocalField(ICoCo::MEDField *field);
     ProcessorGroup *getGroup() { return _group; }
     bool isInGroup() const;