int meshDim = this->getMeshDimension();
ParaMEDMEM::DataArrayInt* indexr=ParaMEDMEM::DataArrayInt::New();
ParaMEDMEM::DataArrayInt* revConn=ParaMEDMEM::DataArrayInt::New();
- int nbNodes=getNumberOfNodes();
this->getReverseNodalConnectivity(revConn,indexr);
const int* indexr_ptr=indexr->getConstPointer();
const int* revConn_ptr=revConn->getConstPointer();
castAllFields(initialCollection,"cellFieldDouble");
if (_i_non_empty_mesh<0)
{
- for (int i=0; i<_mesh.size(); i++)
+ for (unsigned int i=0; i<_mesh.size(); i++)
{
if (_mesh[i])
{
MEDPARTITIONER::ConnectZone* cz = czVec[i];
if ( !cz ||
cz->getEntityCorrespNumber( 0,0 ) == 0 ||
- cz->getLocalDomainNumber () > _mesh.size() ||
- cz->getDistantDomainNumber() > _mesh.size() )
+ (unsigned int)cz->getLocalDomainNumber () > _mesh.size() ||
+ (unsigned int)cz->getDistantDomainNumber() > _mesh.size() )
continue;
ParaMEDMEM::MEDCouplingUMesh* mesh1 = _mesh[ cz->getLocalDomainNumber () ];
ParaMEDMEM::MEDCouplingUMesh* mesh2 = _mesh[ cz->getDistantDomainNumber() ];
// remove faces from the familyID-the family
if ( familyID != 0 && famIDs )
- for ( size_t i = 0; i < totalNbFaces; ++i )
+ for ( int i = 0; i < totalNbFaces; ++i )
if ( famIDs[i] == familyID )
famIDs[i] = 0;
int MEDPARTITIONER::MeshCollection::getNbOfLocalMeshes() const
{
int nb=0;
- for (int i=0; i<_mesh.size(); i++)
+ for (unsigned int i=0; i<_mesh.size(); i++)
{
if (_mesh[i]) nb++;
}
int MEDPARTITIONER::MeshCollection::getNbOfLocalCells() const
{
int nb=0;
- for (int i=0; i<_mesh.size(); i++)
+ for (unsigned int i=0; i<_mesh.size(); i++)
{
if (_mesh[i]) nb=nb+_mesh[i]->getNumberOfCells();
}
int MEDPARTITIONER::MeshCollection::getNbOfLocalFaces() const
{
int nb=0;
- for (int i=0; i<_face_mesh.size(); i++)
+ for (unsigned int i=0; i<_face_mesh.size(); i++)
{
if (_face_mesh[i]) nb=nb+_face_mesh[i]->getNumberOfCells();
}