Salome HOME
updated copyright message
[tools/medcoupling.git] / src / MEDPartitioner / MEDPARTITIONER_UserGraph.cxx
index 0a20b4c3db120371c6fd1cf6de31c1d958d7c660..f66f533e02e12af1f56a0680423dc3d73cfaf74a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2015  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2023  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
@@ -32,19 +32,19 @@ using namespace MEDPARTITIONER;
  *        (domain numbers range from 0 to ndomain-1
  * \param n number of cells in the mesh
  */
-UserGraph::UserGraph(MEDCoupling::MEDCouplingSkyLineArray *array, const int *partition, int n):Graph(array,0)
+UserGraph::UserGraph(MEDCoupling::MEDCouplingSkyLineArray *array, const int *partition, mcIdType n):Graph(array,0)
 {
 
-  std::vector<int> index(n+1),value(n);
+  std::vector<mcIdType> index(n+1),value(n);
 
   index[0]=0;
-  for (int i=0; i<n; i++)
+  for (mcIdType i=0; i<n; i++)
     {
       index[i+1]=index[i]+1;
       value[i]=partition[i];
     }
 
-  _partition = new MEDCoupling::MEDCouplingSkyLineArray(index,value);
+  _partition = MEDCoupling::MEDCouplingSkyLineArray::New(index,value);
 
 }