]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
0020525: [CEA] test MEDMEM fails
authoreap <eap@opencascade.com>
Thu, 8 Oct 2009 14:07:49 +0000 (14:07 +0000)
committereap <eap@opencascade.com>
Thu, 8 Oct 2009 14:07:49 +0000 (14:07 +0000)
-      if ( srcMesh.getTypeOfElement( i ) != NORM_TETRA4 )
+      if ( srcMesh.getTypeOfElement( OTT<ConnType,numPol>::indFC( i )) != NORM_TETRA4 )

src/INTERP_KERNEL/PolyhedronIntersectorP1P1.txx

index 05028c590dc452cb082c7e630c40f540773f2873..eea552e4a69bddba18c7deab428d66bc1340777d 100644 (file)
@@ -47,12 +47,12 @@ namespace INTERP_KERNEL
 
     const unsigned long numSrcElems = srcMesh.getNumberOfElements();
     for(unsigned long i = 0 ; i < numSrcElems ; ++i)
-      if ( srcMesh.getTypeOfElement( ) != NORM_TETRA4 )
+      if ( srcMesh.getTypeOfElement( OTT<ConnType,numPol>::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( ) != NORM_TETRA4 )
+      if ( targetMesh.getTypeOfElement( OTT<ConnType,numPol>::indFC( i )) != NORM_TETRA4 )
         throw INTERP_KERNEL::Exception("P1P1 3D algorithm works only with tetrahedral meshes");
   }