From: eap Date: Thu, 8 Oct 2009 14:07:49 +0000 (+0000) Subject: 0020525: [CEA] test MEDMEM fails X-Git-Tag: V5_1_main_FINAL~315 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=37bbadba8d315e323a9f2745025704dad50a7157;p=tools%2Fmedcoupling.git 0020525: [CEA] test MEDMEM fails - if ( srcMesh.getTypeOfElement( i ) != NORM_TETRA4 ) + if ( srcMesh.getTypeOfElement( OTT::indFC( i )) != NORM_TETRA4 ) --- diff --git a/src/INTERP_KERNEL/PolyhedronIntersectorP1P1.txx b/src/INTERP_KERNEL/PolyhedronIntersectorP1P1.txx index 05028c590..eea552e4a 100644 --- a/src/INTERP_KERNEL/PolyhedronIntersectorP1P1.txx +++ b/src/INTERP_KERNEL/PolyhedronIntersectorP1P1.txx @@ -47,12 +47,12 @@ namespace INTERP_KERNEL const unsigned long numSrcElems = srcMesh.getNumberOfElements(); for(unsigned long i = 0 ; i < numSrcElems ; ++i) - if ( srcMesh.getTypeOfElement( i ) != NORM_TETRA4 ) + if ( srcMesh.getTypeOfElement( OTT::indFC( i )) != NORM_TETRA4 ) throw INTERP_KERNEL::Exception("P1P1 3D algorithm works only with tetrahedral meshes"); const unsigned long numTgtElems = targetMesh.getNumberOfElements(); for(unsigned long i = 0 ; i < numTgtElems ; ++i) - if ( targetMesh.getTypeOfElement( i ) != NORM_TETRA4 ) + if ( targetMesh.getTypeOfElement( OTT::indFC( i )) != NORM_TETRA4 ) throw INTERP_KERNEL::Exception("P1P1 3D algorithm works only with tetrahedral meshes"); }