X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FParaMEDMEM%2FMxN_Mapping.hxx;h=792a2948550bc1c6d456fee1d3ade5952b0d6b95;hb=740f93fb5c29f8a2b5439f25381c0963d854272e;hp=4476b70390b607c55c8721a2c409b3df00fd2b19;hpb=659f8c67d0348350e12fde38fe8c4de1ff95dffe;p=tools%2Fmedcoupling.git diff --git a/src/ParaMEDMEM/MxN_Mapping.hxx b/src/ParaMEDMEM/MxN_Mapping.hxx index 4476b7039..792a29485 100644 --- a/src/ParaMEDMEM/MxN_Mapping.hxx +++ b/src/ParaMEDMEM/MxN_Mapping.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D +// Copyright (C) 2007-2019 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 @@ -26,25 +26,30 @@ #include -namespace ParaMEDMEM +namespace MEDCoupling { class ProcessorGroup; + /*! + * Internal class, not part of the public API. + * + * Used by InterpolationMatrix. This class manages the mapping between a given processor and part + * of the mesh (cell ids). + */ class MxN_Mapping : public DECOptions { public: - MxN_Mapping(); MxN_Mapping(const ProcessorGroup& source_group, const ProcessorGroup& target_group, const DECOptions& dec_options); virtual ~MxN_Mapping(); - void addElementFromSource(int distant_proc, int distant_elem); + void addElementFromSource(int distant_proc, mcIdType distant_elem); void prepareSendRecv(); void sendRecv(MEDCouplingFieldDouble& field); void sendRecv(double* sendfield, MEDCouplingFieldDouble& field) const ; void reverseSendRecv(double* recvfield, MEDCouplingFieldDouble& field) const ; // - const std::vector >& getSendingIds() const { return _sending_ids; } + const std::vector >& getSendingIds() const { return _sending_ids; } const std::vector& getSendProcsOffsets() const { return _send_proc_offsets; } void initialize(); @@ -53,8 +58,8 @@ namespace ParaMEDMEM ProcessorGroup* _union_group; MPIAccessDEC * _access_DEC; int _nb_comps; - std::vector > _sending_ids; - std::vector _recv_ids; + std::vector > _sending_ids; + std::vector _recv_ids; std::vector _send_proc_offsets; std::vector _recv_proc_offsets; };