X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FParaMEDMEM%2FOverlapDEC.hxx;h=c510617f336b0107dbee8e08bcaaeacfbe054dbd;hb=c41e6035d050073ea10040690daae247865b8b74;hp=871cdc6e6c8e5d0705d8072ee7bda8277f6b18ef;hpb=93aa2b4d6b1873e76a0226143dcc7f7a577489bf;p=tools%2Fmedcoupling.git diff --git a/src/ParaMEDMEM/OverlapDEC.hxx b/src/ParaMEDMEM/OverlapDEC.hxx index 871cdc6e6..c510617f3 100644 --- a/src/ParaMEDMEM/OverlapDEC.hxx +++ b/src/ParaMEDMEM/OverlapDEC.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -25,8 +25,13 @@ #include "InterpolationOptions.hxx" #include +#include -namespace ParaMEDMEM +namespace ICoCo { + class MEDField; +} + +namespace MEDCoupling { class OverlapInterpolationMatrix; class OverlapElementLocator; @@ -44,11 +49,21 @@ namespace ParaMEDMEM void synchronize(); void attachSourceLocalField(ParaFIELD *field, bool ownPt=false); 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; void setDefaultValue(double val) {_default_field_value = val;} + //! 0 means initial algo from Antho, 1 or 2 means Adrien's algo (2 should be better). Make your choice :-)) + void setWorkSharingAlgo(int method) { _load_balancing_algo = method; } + + void debugPrintWorkSharing(std::ostream & ostr) const; private: + int _load_balancing_algo; + bool _own_group; OverlapInterpolationMatrix* _interpolation_matrix; OverlapElementLocator* _locator;