X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FParaMEDMEM%2FMPIProcessorGroup.hxx;h=f0170b4a85446812e9a11aca56c2b0bffe2059f2;hb=d92b7fd59b881b5e276b1c71584a5879dbd01384;hp=2575c55dd18182be4b8c69c07ad66a37724eb561;hpb=10f37bf6f33a762626d7f1093b2f5450c1688667;p=tools%2Fmedcoupling.git diff --git a/src/ParaMEDMEM/MPIProcessorGroup.hxx b/src/ParaMEDMEM/MPIProcessorGroup.hxx index 2575c55dd..f0170b4a8 100644 --- a/src/ParaMEDMEM/MPIProcessorGroup.hxx +++ b/src/ParaMEDMEM/MPIProcessorGroup.hxx @@ -1,9 +1,9 @@ -// Copyright (C) 2007-2012 CEA/DEN, EDF R&D +// Copyright (C) 2007-2022 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 // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -25,7 +25,7 @@ #include #include -namespace ParaMEDMEM +namespace MEDCoupling { class CommInterface; @@ -38,7 +38,9 @@ namespace ParaMEDMEM MPIProcessorGroup(const CommInterface& interface,int pstart, int pend, const MPI_Comm& world_comm=MPI_COMM_WORLD); MPIProcessorGroup(const MPIProcessorGroup& other); virtual ~MPIProcessorGroup(); - virtual ProcessorGroup *deepCpy() const; + void release(); + + virtual MPIProcessorGroup *deepCopy() const; virtual ProcessorGroup* fuse (const ProcessorGroup&) const; void intersect (ProcessorGroup&) { } int myRank() const; @@ -51,7 +53,7 @@ namespace ParaMEDMEM private: void updateMPISpecificAttributes(); private: - const MPI_Comm _world_comm; + const MPI_Comm _world_comm; // just an observer - current instance is not responsible for the management of this comm MPI_Group _group; MPI_Comm _comm; };