]> 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:22 +0000 (14:07 +0000)
committereap <eap@opencascade.com>
Thu, 8 Oct 2009 14:07:22 +0000 (14:07 +0000)
-      if ( meshS.getTypeOfElement( i ) != NORM_TRI3 )
+      if ( meshS.getTypeOfElement( OTT<ConnType,numPol>::indFC( i )) != NORM_TRI3 )

src/INTERP_KERNEL/PlanarIntersectorP1P0Bary.txx

index 49476a46368497cbf70a916015f5be4126c1f92e..009009cfc7ce4861ab1be5d57846f638de4dc67e 100644 (file)
@@ -44,7 +44,7 @@ namespace INTERP_KERNEL
 
     const unsigned long numSrcElems = meshS.getNumberOfElements();
     for(unsigned long i = 0 ; i < numSrcElems ; ++i)
-      if ( meshS.getTypeOfElement( ) != NORM_TRI3 )
+      if ( meshS.getTypeOfElement( OTT<ConnType,numPol>::indFC( i )) != NORM_TRI3 )
         throw INTERP_KERNEL::Exception("P1P0 barycentric algorithm works only with triangular source meshes");
   }