From: abn Date: Mon, 3 Apr 2017 10:15:29 +0000 (+0200) Subject: [DEC] Adding MEDField interface X-Git-Tag: V8_3_0rc1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=85b11e7961b00486f9ad02cfe82e5f282aae8159;p=tools%2Fmedcoupling.git [DEC] Adding MEDField interface --- diff --git a/src/ParaMEDMEM/OverlapDEC.cxx b/src/ParaMEDMEM/OverlapDEC.cxx index ff6c7e2c0..75cbee308 100644 --- a/src/ParaMEDMEM/OverlapDEC.cxx +++ b/src/ParaMEDMEM/OverlapDEC.cxx @@ -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) diff --git a/src/ParaMEDMEM/OverlapDEC.hxx b/src/ParaMEDMEM/OverlapDEC.hxx index c36c4306e..c510617f3 100644 --- a/src/ParaMEDMEM/OverlapDEC.hxx +++ b/src/ParaMEDMEM/OverlapDEC.hxx @@ -27,6 +27,10 @@ #include #include +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;