Salome HOME
Keep track of datetime of configuration
[tools/medcoupling.git] / src / ParaMEDMEM / MPIProcessorGroup.hxx
index 2575c55dd18182be4b8c69c07ad66a37724eb561..f0170b4a85446812e9a11aca56c2b0bffe2059f2 100644 (file)
@@ -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 <set>
 #include <mpi.h>
 
-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;
   };