Salome HOME
Fix 32bits config bug
[tools/medcoupling.git] / src / MEDPartitioner / MEDPARTITIONER_Graph.cxx
index 51e7ee7af5bc3ba7407d5862eedc53de08c71daf..d9a7369a8ad60f14ba2bafaab57c699a7928abfb 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2020  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
@@ -43,22 +43,22 @@ namespace MEDPARTITIONER
 
   int Graph::nbDomains() const
   {
-    std::set<int> domains;
+    std::set<mcIdType> domains;
     if ( _partition.isNotNull() )
-      if ( MEDCoupling::DataArrayInt* array = _partition->getValuesArray() )
+      if ( MEDCoupling::DataArrayIdType* array = _partition->getValuesArray() )
       {
-        for ( const int * dom = array->begin(); dom != array->end(); ++dom )
+        for ( const mcIdType * dom = array->begin(); dom != array->end(); ++dom )
           domains.insert( *dom );
       }
-    return domains.size();
+    return (int)domains.size();
   }
 
-  const int *Graph::getPart() const
+  const mcIdType *Graph::getPart() const
   {
     return _partition->getValues();
   }
 
-  int Graph::nbVertices() const
+  mcIdType Graph::nbVertices() const
   {
     return _graph->getNumberOf();
   }