From 37bbadba8d315e323a9f2745025704dad50a7157 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 8 Oct 2009 14:07:49 +0000 Subject: [PATCH] 0020525: [CEA] test MEDMEM fails - if ( srcMesh.getTypeOfElement( i ) != NORM_TETRA4 ) + if ( srcMesh.getTypeOfElement( OTT::indFC( i )) != NORM_TETRA4 ) --- src/INTERP_KERNEL/PolyhedronIntersectorP1P1.txx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); } -- 2.39.2