X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FINTERP_KERNEL%2FPolyhedronIntersectorP1P0Bary.txx;h=ebce93c4527e699b629237c01c42081f20eac62f;hb=4c22ba01f2901896d1ec9ca302640f4d7e50d147;hp=84741281acf655ee79b862582798a7e777101c70;hpb=659f8c67d0348350e12fde38fe8c4de1ff95dffe;p=tools%2Fmedcoupling.git diff --git a/src/INTERP_KERNEL/PolyhedronIntersectorP1P0Bary.txx b/src/INTERP_KERNEL/PolyhedronIntersectorP1P0Bary.txx old mode 100644 new mode 100755 index 84741281a..ebce93c45 --- a/src/INTERP_KERNEL/PolyhedronIntersectorP1P0Bary.txx +++ b/src/INTERP_KERNEL/PolyhedronIntersectorP1P0Bary.txx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 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 @@ -55,8 +55,8 @@ namespace INTERP_KERNEL // Check types of source elements here rather than in intersectCells() since a wrong type can be // found late after a long time of calculation. - const unsigned long numSrcElems = srcMesh.getNumberOfElements(); - for(unsigned long i = 0 ; i < numSrcElems ; ++i) + const ConnType numSrcElems = srcMesh.getNumberOfElements(); + for(ConnType i = 0 ; i < numSrcElems ; ++i) if ( srcMesh.getTypeOfElement( OTT::indFC(i) ) != NORM_TETRA4 ) throw INTERP_KERNEL::Exception("P1P0 barycentric algorithm works only with tetrahedral source meshes"); } @@ -84,8 +84,8 @@ namespace INTERP_KERNEL //================================================================================ /*! * \brief This method computes a value per each node of source cell for each target cell. - * \param srcCell - a source tetrahedron - * \param tgtCells - target elements + * \param srcCells - source elements + * \param tgtCell - target element * \param res - matrix to fill in */ //================================================================================ @@ -97,7 +97,7 @@ namespace INTERP_KERNEL { typename MyMatrix::value_type& resRow=res[tgtCell]; - int nbOfNodesT=Intersector3D::_target_mesh.getNumberOfNodesOfElement(OTT::indFC(tgtCell)); + ConnType nbOfNodesT=Intersector3D::_target_mesh.getNumberOfNodesOfElement(OTT::indFC(tgtCell)); releaseArrays(); _split.splitTargetCell(tgtCell,nbOfNodesT,_tetra);