1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #ifndef __MEDCOUPLINGBASICSTEST_HXX__
20 #define __MEDCOUPLINGBASICSTEST_HXX__
22 #include <cppunit/extensions/HelperMacros.h>
29 class MEDCouplingUMesh;
31 class MEDCouplingBasicsTest : public CppUnit::TestFixture
33 CPPUNIT_TEST_SUITE(MEDCouplingBasicsTest);
34 CPPUNIT_TEST( testMesh );
35 CPPUNIT_TEST( test2DInterpP0P0_1 );
36 CPPUNIT_TEST( test2DInterpP0P1_1 );
37 CPPUNIT_TEST( test2DInterpP1P0_1 );
38 CPPUNIT_TEST( test3DSurfInterpP0P0_1 );
39 CPPUNIT_TEST( test3DSurfInterpP0P1_1 );
40 CPPUNIT_TEST( test3DSurfInterpP1P0_1 );
41 CPPUNIT_TEST( test3DInterpP0P0_1 );
42 CPPUNIT_TEST_SUITE_END();
45 void test2DInterpP0P0_1();
46 void test2DInterpP0P1_1();
47 void test2DInterpP1P0_1();
48 void test3DSurfInterpP0P0_1();
49 void test3DSurfInterpP0P1_1();
50 void test3DSurfInterpP1P0_1();
51 void test3DInterpP0P0_1();
53 MEDCouplingUMesh *build2DSourceMesh_1();
54 MEDCouplingUMesh *build2DTargetMesh_1();
55 MEDCouplingUMesh *build3DSurfSourceMesh_1();
56 MEDCouplingUMesh *build3DSurfTargetMesh_1();
57 MEDCouplingUMesh *build3DSourceMesh_1();
58 double sumAll(const std::vector< std::map<int,double> >& matrix);