-// 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
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();
}