]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
*** empty log message ***
authorageay <ageay>
Tue, 26 May 2009 14:07:26 +0000 (14:07 +0000)
committerageay <ageay>
Tue, 26 May 2009 14:07:26 +0000 (14:07 +0000)
src/INTERP_KERNEL/PlanarIntersector.txx
src/MEDCoupling/Test/MEDCouplingBasicsTest.cxx

index 2a0234587e2ac2d047a38db11e36d888ef784c3f..2d1348e6a3aacb0b2ea208cf06625bca2eb397c5 100644 (file)
@@ -267,7 +267,7 @@ namespace INTERP_KERNEL
     if(_orientation==2)
       return fabs(val);
     if (( val > 0.0 && _orientation==1) || ( val < 0.0 && _orientation==-1 ))
-      return val;
+      return _orientation*val;
     return 0.;
   }
 
index a3ef044857bc69316bee746ee594e7b1722cd886..678eadc47187b69c8689b8269b6266f727e0900d 100644 (file)
@@ -951,8 +951,8 @@ void MEDCouplingBasicsTest::test3DSurfInterpP0P0_2()
     myInterpolator.setOrientation(-1);
     myInterpolator.interpolateMeshes(sourceWrapper,targetWrapper,res,"P0P0");
     CPPUNIT_ASSERT_EQUAL(5,(int)res.size());
-    CPPUNIT_ASSERT_DOUBLES_EQUAL(-0.125*sqrt(2.),res[2][0],1e-12);
-    CPPUNIT_ASSERT_DOUBLES_EQUAL(-0.125*sqrt(2.),sumAll(res),1e-12);
+    CPPUNIT_ASSERT_DOUBLES_EQUAL(0.125*sqrt(2.),res[2][0],1e-12);
+    CPPUNIT_ASSERT_DOUBLES_EQUAL(0.125*sqrt(2.),sumAll(res),1e-12);
     res.clear();
   }
   //clean up