From: ageay Date: Tue, 13 Apr 2010 07:47:48 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V5_1_main_FINAL~135 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=52a5f83702cb54c5ce80ac462b263ffe3f53985d;p=tools%2Fmedcoupling.git *** empty log message *** --- diff --git a/src/MEDCoupling/Test/MEDCouplingBasicsTest.hxx b/src/MEDCoupling/Test/MEDCouplingBasicsTest.hxx index fc20025f3..b38b4222b 100644 --- a/src/MEDCoupling/Test/MEDCouplingBasicsTest.hxx +++ b/src/MEDCoupling/Test/MEDCouplingBasicsTest.hxx @@ -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(); diff --git a/src/MEDCoupling/Test/MEDCouplingBasicsTest1.cxx b/src/MEDCoupling/Test/MEDCouplingBasicsTest1.cxx index 9c99ee247..17c02a8b7 100644 --- a/src/MEDCoupling/Test/MEDCouplingBasicsTest1.cxx +++ b/src/MEDCoupling/Test/MEDCouplingBasicsTest1.cxx @@ -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() +{ +}