From: abn Date: Mon, 5 Feb 2024 21:28:07 +0000 (+0100) Subject: wip bary X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fabn%2Ftentative_bary;p=tools%2Fmedcoupling.git wip bary --- diff --git a/src/MEDCoupling/Test/MEDCouplingBasicsTestInterp.cxx b/src/MEDCoupling/Test/MEDCouplingBasicsTestInterp.cxx index 08f77cf03..e9fef9cfe 100644 --- a/src/MEDCoupling/Test/MEDCouplingBasicsTestInterp.cxx +++ b/src/MEDCoupling/Test/MEDCouplingBasicsTestInterp.cxx @@ -2007,10 +2007,12 @@ void MEDCouplingBasicsTestInterp::test3DSurfInterpP1P0Bary_1() } #include +#include void MEDCouplingBasicsTestInterp::test3DInterpP1P0Bary_1() { MEDCouplingUMesh *sourceMesh=build3DSourceMesh_2(); MEDCouplingUMesh *targetMesh=build3DTargetMesh_2(); + // MEDCouplingNormalizedUnstructuredMesh<3,3> sourceWrapper(sourceMesh); MEDCouplingNormalizedUnstructuredMesh<3,3> targetWrapper(targetMesh); @@ -2031,13 +2033,15 @@ void MEDCouplingBasicsTestInterp::test3DInterpP1P0Bary_1() int i=0; for(std::vector >::const_iterator iter1=res.begin();iter1!=res.end();iter1++,i++) { + std::cout << "\n{"; for(int j=0;j<28;j++) { std::map::const_iterator iter2=(*iter1).find(j); if(iter2!=(*iter1).end()) { sum += iter2->second; - CPPUNIT_ASSERT_DOUBLES_EQUAL(res3D[i][j],(*iter2).second,1.e-5); + std::cout << (*iter2).second << ", "; +// CPPUNIT_ASSERT_DOUBLES_EQUAL(res3D[i][j],(*iter2).second,1.e-5); } else { @@ -2045,6 +2049,8 @@ void MEDCouplingBasicsTestInterp::test3DInterpP1P0Bary_1() } } } + std::cout << "\n"; + CPPUNIT_ASSERT_DOUBLES_EQUAL(8000000,sum,1.e-5); //clean up sourceMesh->decrRef();