void MEDCouplingRemapper::setCrudeMatrixEx(const MEDCouplingFieldTemplate *src, const MEDCouplingFieldTemplate *target, const std::vector<std::map<int,double> >& m)
{
restartUsing(src,target);
- if(m.size()!=target->getNumberOfTuplesExpected())
+ if(ToIdType(m.size())!=target->getNumberOfTuplesExpected())
{
std::ostringstream oss; oss << "MEDCouplingRemapper::setMatrixEx : input matrix has " << m.size() << " rows whereas there are " << target->getNumberOfTuplesExpected() << " expected !";
throw INTERP_KERNEL::Exception(oss.str());
}
_matrix[*trgId][srcEntry]=1.;
}
- if(ids0->getNumberOfTuples()!=trgNbOfGaussPts)
+ if(ToIdType(ids0->getNumberOfTuples())!=trgNbOfGaussPts)
{
MCAuto<DataArrayInt> orphanTrgIds=nbOfSrcCellsShTrgPts->findIdsEqual(0);
MCAuto<DataArrayDouble> orphanTrg=trgLoc->selectByTupleId(orphanTrgIds->begin(),orphanTrgIds->end());
if(array)
{
targetField->checkConsistencyLight();
- if(srcNbOfCompo!=targetField->getNumberOfComponents())
+ if(srcNbOfCompo!=ToIdType(targetField->getNumberOfComponents()))
throw INTERP_KERNEL::Exception("Number of components mismatch !");
}
else