X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDPartitioner%2FMEDPARTITIONER_Graph.cxx;h=d9a7369a8ad60f14ba2bafaab57c699a7928abfb;hb=84031c1872103b9a0c9546ea12c4ebd03838034d;hp=51e7ee7af5bc3ba7407d5862eedc53de08c71daf;hpb=4e3de127a60f9ffb63abae1d17ed01f3f6711fd2;p=tools%2Fmedcoupling.git diff --git a/src/MEDPartitioner/MEDPARTITIONER_Graph.cxx b/src/MEDPartitioner/MEDPARTITIONER_Graph.cxx index 51e7ee7af..d9a7369a8 100644 --- a/src/MEDPartitioner/MEDPARTITIONER_Graph.cxx +++ b/src/MEDPartitioner/MEDPARTITIONER_Graph.cxx @@ -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 domains; + std::set 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(); }