Salome HOME
Ensure sequential run of MEDLoader 1,2,3 tests.
[tools/medcoupling.git] / src / ParaMEDMEM / ExplicitTopology.hxx
index 453294a393bf608528221164e9b3e1a964dd8bd2..be8bf3fd5c3ef48af487506db52ca104b38d9ae8 100644 (file)
@@ -1,41 +1,49 @@
-//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2015  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.
+// 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, 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
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
 #ifndef __EXPLICITTOPOLOGY_HXX__
 #define __EXPLICITTOPOLOGY_HXX__
 
 #include "ProcessorGroup.hxx"
+#include "InterpKernelHashMap.hxx"
 
 #include <vector>
 #include <utility>
 #include <iostream>
-#include <ext/hash_map>
 
-namespace ParaMEDMEM
+namespace MEDCoupling
 {
   class ParaMESH;
   class Topology;
   class ComponentTopology;
 
+  /*!
+   * \anchor ExplicitTopology-det
+   *
+   * An ExplicitTopology typically represents the split of a mesh among the processors of
+   * a common ProcessorGroup. Each processor gets a user-defined part of the cells in the mesh.
+   * \sa BlockTopology
+   */
   class ExplicitTopology : public Topology
   {
   public:
-    ExplicitTopology() { }
+    ExplicitTopology();
     ExplicitTopology( const ExplicitTopology& topo, int nbcomponents);
     ExplicitTopology(const ParaMESH &mesh);
     virtual ~ExplicitTopology();
@@ -59,7 +67,7 @@ namespace ParaMEDMEM
     //mapping local to global
     int* _loc2glob;
     //mapping global to local
-    __gnu_cxx::hash_map<int,int> _glob2loc;
+    INTERP_KERNEL::HashMap<int,int> _glob2loc;
   };
 
   //!converts a pair <subdomainid,local> to a global number