Back to index

salome-med  6.5.0
MEDCouplingBasicsTestInterp.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 #ifndef __MEDCOUPLINGBASICSTESTINTERP_HXX__
00021 #define __MEDCOUPLINGBASICSTESTINTERP_HXX__
00022 
00023 #include "MEDCouplingBasicsTest.hxx"
00024 
00025 #include <map>
00026 #include <vector>
00027 
00028 namespace ParaMEDMEM
00029 {
00030   class DataArrayDouble;
00031   class MEDCouplingUMesh;
00032   class MEDCouplingFieldDouble;
00033   class MEDCouplingMultiFields;
00034 
00035   class MEDCouplingBasicsTestInterp : public MEDCouplingBasicsTest
00036   {
00037     CPPUNIT_TEST_SUITE(MEDCouplingBasicsTestInterp);
00038     CPPUNIT_TEST( test2DInterpP0P0_1 );
00039     CPPUNIT_TEST( test2DInterpP0P0PL_1 );
00040     CPPUNIT_TEST( test2DInterpP0P0PL_2 );
00041     CPPUNIT_TEST( test2DInterpP0P0PL_3 );
00042     CPPUNIT_TEST( test2DInterpP0P0PL_4 );
00043     CPPUNIT_TEST( test2DInterpP0P1_1 );
00044     CPPUNIT_TEST( test2DInterpP0P1PL_1 );
00045     CPPUNIT_TEST( test2DInterpP0P1PL_2 );
00046     CPPUNIT_TEST( test2DInterpP1P0_1 );
00047     CPPUNIT_TEST( test2DInterpP1P0PL_1 );
00048     CPPUNIT_TEST( test2DInterpP1P0PL_2 );
00049     CPPUNIT_TEST( test2DInterpP1P1_1 );
00050     CPPUNIT_TEST( test2DInterpP1P1PL_1 );
00051     CPPUNIT_TEST( test3DSurfInterpP0P0_1 );
00052     CPPUNIT_TEST( test3DSurfInterpP0P0PL_1 );
00053     CPPUNIT_TEST( test3DSurfInterpP0P1_1 );
00054     CPPUNIT_TEST( test3DSurfInterpP0P1PL_1 );
00055     CPPUNIT_TEST( test3DSurfInterpP1P0_1 );
00056     CPPUNIT_TEST( test3DSurfInterpP1P0PL_1 );
00057     CPPUNIT_TEST( test3DSurfInterpP1P1_1 );
00058     CPPUNIT_TEST( test3DSurfInterpP1P1PL_1 );
00059     CPPUNIT_TEST( test3DSurfInterpP0P0_2 );
00060     CPPUNIT_TEST( test3DSurfInterpP0P0_3 );
00061 
00062     CPPUNIT_TEST( testInterpolationCC );
00063     CPPUNIT_TEST( testInterpolationCU1D );
00064     CPPUNIT_TEST( testInterpolationCU2D );
00065     CPPUNIT_TEST( testInterpolationCU3D );
00066 
00067     CPPUNIT_TEST( test3DInterpP0P0_1 );
00068     CPPUNIT_TEST( test3DInterpP0P0PL_1 );
00069     CPPUNIT_TEST( test3DInterpP0P0PL_2 );
00070     CPPUNIT_TEST( test3DInterpP0P0PL_3 );
00071     CPPUNIT_TEST( test3DInterpP0P0PL_4 );
00072     CPPUNIT_TEST( test3DInterpP0P1_1 );
00073     CPPUNIT_TEST( test3DInterpP0P1PL_1 );
00074     CPPUNIT_TEST( test3DInterpP1P0_1 );
00075     CPPUNIT_TEST( test3DInterpP1P0PL_1 );
00076     CPPUNIT_TEST( test3DInterpP1P1_1 );
00077     CPPUNIT_TEST( test3DInterpP1P1PL_1 );
00078     CPPUNIT_TEST( test3DInterpP0P0Empty );
00079     CPPUNIT_TEST( test2DInterpP0IntegralUniform );
00080     CPPUNIT_TEST( test3DSurfInterpP0IntegralUniform );
00081     CPPUNIT_TEST( test3DInterpP0IntegralUniform );
00082     CPPUNIT_TEST( test2DInterpP1IntegralUniform );
00083     CPPUNIT_TEST( test3DInterpP1IntegralUniform );
00084     CPPUNIT_TEST( test2DInterpP1P0Bary_1 );
00085     CPPUNIT_TEST( test3DSurfInterpP1P0Bary_1 );
00086     CPPUNIT_TEST( test3DInterpP1P0Bary_1 );
00087     CPPUNIT_TEST( test3DTo1DInterpP0P0PL_1 );
00088 
00089     CPPUNIT_TEST( test2D1DBasicInterpP0P0 );
00090     CPPUNIT_TEST( test2D1DSegQuadInterpP0P0_1 );
00091     CPPUNIT_TEST( test2D1DSegQuadInterpP0P0_2 );
00092     CPPUNIT_TEST( test2D1DSegQuadInterpP0P0_3 );
00093     CPPUNIT_TEST( test2D1DSegQuadInterpP0P0_4 );
00094     CPPUNIT_TEST( test2D1DSegQuadInterpP0P0_5 );
00095     CPPUNIT_TEST( test2D1DSegQuadInterpP0P0_6 );
00096     CPPUNIT_TEST( test2D1DSegTriInterpP0P0_1 );
00097     CPPUNIT_TEST( test2D1DSegTriInterpP0P0_2 );
00098     CPPUNIT_TEST( test2D1DSegTriInterpP0P0_3 );
00099     CPPUNIT_TEST( test2D1DSegTriInterpP0P0_4 );
00100     CPPUNIT_TEST( test2D1DSegTriInterpP0P0_5 );
00101     CPPUNIT_TEST( test2D1DSegTriInterpP0P0_6 );
00102     CPPUNIT_TEST( test3D2DBasicInterpP0P0 );
00103     CPPUNIT_TEST( test3D2DQuadHexaInterpP0P0_1 );
00104     CPPUNIT_TEST( test3D2DQuadHexaInterpP0P0_2 );
00105     CPPUNIT_TEST( test3D2DQuadHexaInterpP0P0_3 );
00106     CPPUNIT_TEST( test3D2DQuadHexaInterpP0P0_4 );
00107     CPPUNIT_TEST( test3D2DQuadHexaInterpP0P0_5 );
00108     CPPUNIT_TEST( test3D2DQuadHexaInterpP0P0_6 );
00109     CPPUNIT_TEST( test3D2DTriHexaInterpP0P0_1 );
00110     CPPUNIT_TEST( test3D2DTriHexaInterpP0P0_2 );
00111     CPPUNIT_TEST( test3D2DTriHexaInterpP0P0_3 );
00112     CPPUNIT_TEST( test3D2DTriHexaInterpP0P0_4 );
00113     CPPUNIT_TEST( test3D2DTriHexaInterpP0P0_5 );
00114     CPPUNIT_TEST( test3D2DTriHexaInterpP0P0_6 );
00115     CPPUNIT_TEST( test3D2DQuadTetraInterpP0P0_1 );
00116     CPPUNIT_TEST( test3D2DQuadTetraInterpP0P0_2 );
00117     CPPUNIT_TEST( test3D2DQuadTetraInterpP0P0_3 );
00118     CPPUNIT_TEST( test3D2DQuadTetraInterpP0P0_4 );
00119     CPPUNIT_TEST( test3D2DQuadTetraInterpP0P0_5 );
00120     CPPUNIT_TEST( test3D2DQuadTetraInterpP0P0_6 );
00121     CPPUNIT_TEST( test3D2DTriTetraInterpP0P0_1 );
00122     CPPUNIT_TEST( test3D2DTriTetraInterpP0P0_2 );
00123     CPPUNIT_TEST( test3D2DTriTetraInterpP0P0_3 );
00124     CPPUNIT_TEST( test3D2DTriTetraInterpP0P0_4 );
00125     CPPUNIT_TEST( test3D2DTriTetraInterpP0P0_5 );
00126     CPPUNIT_TEST( test3D2DTriTetraInterpP0P0_6 );
00127 
00128     CPPUNIT_TEST( test1DInterp_1 );
00129     CPPUNIT_TEST( test2DCurveInterpP0P0_1 );
00130     CPPUNIT_TEST( test2DCurveInterpP0P0_2 );
00131     CPPUNIT_TEST( test2DCurveInterpP0P1_1 );
00132     CPPUNIT_TEST( test2DCurveInterpP1P0_1 );
00133     CPPUNIT_TEST( test2DCurveInterpP1P1_1 );
00134     CPPUNIT_TEST_SUITE_END();
00135   public:
00136     void test2DInterpP0P0_1();
00137     void test2DInterpP0P0PL_1();
00138     void test2DInterpP0P0PL_2();
00139     void test2DInterpP0P0PL_3();
00140     void test2DInterpP0P0PL_4();
00141     void test2DInterpP0P1_1();
00142     void test2DInterpP0P1PL_1();
00143     void test2DInterpP0P1PL_2();
00144     void test2DInterpP1P0_1();
00145     void test2DInterpP1P0PL_1();
00146     void test2DInterpP1P0PL_2();
00147     void test2DInterpP1P1_1();
00148     void test2DInterpP1P1PL_1();
00149     void test3DSurfInterpP0P0_1();
00150     void test3DSurfInterpP0P0PL_1();
00151     void test3DSurfInterpP0P1_1();
00152     void test3DSurfInterpP0P1PL_1();
00153     void test3DSurfInterpP1P0_1();
00154     void test3DSurfInterpP1P0PL_1();
00155     void test3DSurfInterpP1P1_1();
00156     void test3DSurfInterpP1P1PL_1();
00157     void test3DSurfInterpP0P0_2();
00158     void test3DSurfInterpP0P0_3();
00159     void test3DInterpP0P0_1();
00160     void test3DInterpP0P0PL_1();
00161     void test3DInterpP0P0PL_2();
00162     void test3DInterpP0P0PL_3();
00163     void test3DInterpP0P0PL_4();
00164     void test3DInterpP0P1_1();
00165     void test3DInterpP0P1PL_1();
00166     void test3DInterpP1P0_1();
00167     void test3DInterpP1P0PL_1();
00168     void test3DInterpP1P1_1();
00169     void test3DInterpP1P1PL_1();
00170 
00171     void testInterpolationCC();
00172     void testInterpolationCU1D();
00173     void testInterpolationCU2D();
00174     void testInterpolationCU3D();
00175 
00176     void test3DInterpP0P0Empty();
00177     void test2DInterpP0IntegralUniform();
00178     void test3DSurfInterpP0IntegralUniform();
00179     void test3DInterpP0IntegralUniform();
00180     void test2DInterpP1IntegralUniform();
00181     void test3DInterpP1IntegralUniform();
00182     void test2DInterpP1P0Bary_1();
00183     void test3DSurfInterpP1P0Bary_1();
00184     void test3DInterpP1P0Bary_1();
00185     void test3DTo1DInterpP0P0PL_1();
00186 
00187     void test2D1DBasicInterpP0P0();
00188     void test2D1DSegQuadInterpP0P0_1();
00189     void test2D1DSegQuadInterpP0P0_2();
00190     void test2D1DSegQuadInterpP0P0_3();
00191     void test2D1DSegQuadInterpP0P0_4();
00192     void test2D1DSegQuadInterpP0P0_5();
00193     void test2D1DSegQuadInterpP0P0_6();
00194     void test2D1DSegTriInterpP0P0_1();
00195     void test2D1DSegTriInterpP0P0_2();
00196     void test2D1DSegTriInterpP0P0_3();
00197     void test2D1DSegTriInterpP0P0_4();
00198     void test2D1DSegTriInterpP0P0_5();
00199     void test2D1DSegTriInterpP0P0_6();
00200     void test3D2DBasicInterpP0P0();
00201     void test3D2DQuadHexaInterpP0P0_1();
00202     void test3D2DQuadHexaInterpP0P0_2();
00203     void test3D2DQuadHexaInterpP0P0_3();
00204     void test3D2DQuadHexaInterpP0P0_4();
00205     void test3D2DQuadHexaInterpP0P0_5();
00206     void test3D2DQuadHexaInterpP0P0_6();
00207     void test3D2DTriHexaInterpP0P0_1();
00208     void test3D2DTriHexaInterpP0P0_2();
00209     void test3D2DTriHexaInterpP0P0_3();
00210     void test3D2DTriHexaInterpP0P0_4();
00211     void test3D2DTriHexaInterpP0P0_5();
00212     void test3D2DTriHexaInterpP0P0_6();
00213     void test3D2DQuadTetraInterpP0P0_1();
00214     void test3D2DQuadTetraInterpP0P0_2();
00215     void test3D2DQuadTetraInterpP0P0_3();
00216     void test3D2DQuadTetraInterpP0P0_4();
00217     void test3D2DQuadTetraInterpP0P0_5();
00218     void test3D2DQuadTetraInterpP0P0_6();
00219     void test3D2DTriTetraInterpP0P0_1();
00220     void test3D2DTriTetraInterpP0P0_2();
00221     void test3D2DTriTetraInterpP0P0_3();
00222     void test3D2DTriTetraInterpP0P0_4();
00223     void test3D2DTriTetraInterpP0P0_5();
00224     void test3D2DTriTetraInterpP0P0_6();
00225 
00226     void test1DInterp_1();
00227     void test2DCurveInterpP0P0_1();
00228     void test2DCurveInterpP0P0_2();
00229     void test2DCurveInterpP0P1_1();
00230     void test2DCurveInterpP1P0_1();
00231     void test2DCurveInterpP1P1_1();
00232   };
00233 }
00234 
00235 #endif