]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
*** empty log message ***
authorageay <ageay>
Tue, 13 Apr 2010 07:47:48 +0000 (07:47 +0000)
committerageay <ageay>
Tue, 13 Apr 2010 07:47:48 +0000 (07:47 +0000)
src/MEDCoupling/Test/MEDCouplingBasicsTest.hxx
src/MEDCoupling/Test/MEDCouplingBasicsTest1.cxx

index fc20025f3cdb9f2ec97eea06530d771307817c0f..b38b4222b836815357e791fa9607153f74559cdc 100644 (file)
@@ -67,6 +67,7 @@ namespace ParaMEDMEM
     CPPUNIT_TEST( testGetValueOn1 );
     CPPUNIT_TEST( testCMesh0 );
     CPPUNIT_TEST( testScale );
+    CPPUNIT_TEST( testTryToShareSameCoords );
     CPPUNIT_TEST( test2DInterpP0P0_1 );
     CPPUNIT_TEST( test2DInterpP0P0PL_1 );
     CPPUNIT_TEST( test2DInterpP0P0PL_2 );
@@ -163,6 +164,7 @@ namespace ParaMEDMEM
     void testGetValueOn1();
     void testCMesh0();
     void testScale();
+    void testTryToShareSameCoords();
     void test2DInterpP0P0_1();
     void test2DInterpP0P0PL_1();
     void test2DInterpP0P0PL_2();
index 9c99ee24784800e1175b09729f743004f243bf7b..17c02a8b75b2fdf9d82c7c9f91416345506e9077 100644 (file)
@@ -1408,6 +1408,18 @@ void MEDCouplingBasicsTest::testOperationsOnFields2()
   f3->decrRef();
   f1->decrRef();
   f2->decrRef();
+  //
+  f1=m->buildOrthogonalField();
+  f2=m->fillFromAnalytic(ON_CELLS,1,"x");
+  f3=(*f1)*(*f2);
+  const double expected2[15]={-0.035355339059327376,0.,0.035355339059327376, 0.2592724864350674,0.,-0.2592724864350674, 0.37712361663282529,0.,-0.37712361663282529, -0.035355339059327376,0.,0.035355339059327376, 0.31819805153394637,0.,-0.31819805153394637};
+  val=f3->getArray()->getConstPointer();
+  for(int i=0;i<15;i++)
+    CPPUNIT_ASSERT_DOUBLES_EQUAL(expected2[i],val[i],1.e-12);
+  f3->decrRef();
+  f1->decrRef();
+  f2->decrRef();
+  //
   m->decrRef();
 }
 
@@ -1669,3 +1681,7 @@ void MEDCouplingBasicsTest::testScale()
   //
   mesh->decrRef();
 }
+
+void MEDCouplingBasicsTest::testTryToShareSameCoords()
+{
+}