From: eap Date: Wed, 28 Jan 2009 08:24:22 +0000 (+0000) Subject: 0020142: [CEA 315] Unused function in MEDMEM::FIELD X-Git-Tag: EndIntegAG1302~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ed3f0da4aecba6283b3a10ed1dfc43d6cd866620;p=tools%2Fmedcoupling.git 0020142: [CEA 315] Unused function in MEDMEM::FIELD Remove MEDMEM::FIELD::getArea(), MEDMEM::FIELD::getLength(), MEDMEM::FIELD::getVolume(), MEDMEM::FIELD::getNormal(), MEDMEM::FIELD::getBarycenter() --- diff --git a/src/INTERP_KERNEL/Test/RemapperTest.cxx b/src/INTERP_KERNEL/Test/RemapperTest.cxx index 69640b3b1..8f8687635 100644 --- a/src/INTERP_KERNEL/Test/RemapperTest.cxx +++ b/src/INTERP_KERNEL/Test/RemapperTest.cxx @@ -69,10 +69,14 @@ namespace INTERP_TEST remapper.prepare(source_mesh,target_mesh); remapper.transfer(source_field,target_field); - MEDMEM::FIELD source_areas(&source_support,1); - MEDMEM::FIELD target_areas(&target_support,1); - source_areas.getArea(); - target_areas.getArea(); + // issue 0020142: [CEA 315] Unused function in MEDMEM::FIELD + // FIELD::getArea() does nothing +// MEDMEM::FIELD source_areas(&source_support,1); +// MEDMEM::FIELD target_areas(&target_support,1); +// source_areas.getArea(); +// target_areas.getArea(); + MEDMEM::FIELD& source_areas = *source_mesh.getArea(&source_support); + MEDMEM::FIELD& target_areas = *target_mesh.getArea(&target_support); absField(source_areas); //absolute value absField(target_areas); //absolute value @@ -82,7 +86,9 @@ namespace INTERP_TEST double target_integral=target_field.normL2(1,&target_areas); CPPUNIT_ASSERT_DOUBLES_EQUAL(source_integral,target_integral,1e-10); - + + delete &source_areas; + delete &target_areas; } void RemapperTest::absField(MEDMEM::FIELD& field)