Salome HOME
Keep track of datetime of configuration
[tools/medcoupling.git] / src / ParaMEDMEM / MPIProcessorGroup.hxx
old mode 100755 (executable)
new mode 100644 (file)
index b070fab..f0170b4
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  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
@@ -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;
   };