1 // Copyright (C) 2007-2024 CEA, EDF
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, or (at your option) any later version.
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 // Author : Anthony Geay (CEA/DEN)
21 #ifndef __MEDCOUPLINGBASICSTEST1_HXX__
22 #define __MEDCOUPLINGBASICSTEST1_HXX__
24 #include "MEDCouplingBasicsTest.hxx"
31 class DataArrayDouble;
32 class MEDCouplingUMesh;
33 class MEDCouplingFieldDouble;
34 class MEDCouplingMultiFields;
36 class MEDCouplingBasicsTest1 : public MEDCouplingBasicsTest
38 CPPUNIT_TEST_SUITE(MEDCouplingBasicsTest1);
39 CPPUNIT_TEST( testArray );
40 CPPUNIT_TEST( testArray2 );
41 CPPUNIT_TEST( testArray3 );
42 CPPUNIT_TEST( testMesh );
43 CPPUNIT_TEST( testMeshPointsCloud );
44 CPPUNIT_TEST( testMeshM1D );
45 CPPUNIT_TEST( testDeepCopy );
46 CPPUNIT_TEST( testRevNodal );
47 CPPUNIT_TEST( testConvertToPolyTypes );
48 CPPUNIT_TEST( testDescConn2D );
49 CPPUNIT_TEST( testDescConn3D );
50 CPPUNIT_TEST( testFindBoundaryNodes );
51 CPPUNIT_TEST( testBoundaryMesh );
52 CPPUNIT_TEST( testBuildPartOfMySelf );
53 CPPUNIT_TEST( testBuildPartOfMySelfNode );
54 CPPUNIT_TEST( testZipCoords );
55 CPPUNIT_TEST( testZipConnectivity );
56 CPPUNIT_TEST( testEqualMesh );
57 CPPUNIT_TEST( testEqualFieldDouble );
58 CPPUNIT_TEST( testNatureChecking );
59 CPPUNIT_TEST( testBuildSubMeshData );
60 CPPUNIT_TEST( testExtrudedMesh1 );
61 CPPUNIT_TEST( testExtrudedMesh2 );
62 CPPUNIT_TEST( testExtrudedMesh3 );
63 CPPUNIT_TEST( testExtrudedMesh4 );
64 CPPUNIT_TEST( testFindCommonNodes );
65 CPPUNIT_TEST( testCheckButterflyCells );
66 CPPUNIT_TEST( testMergeMesh1 );
67 CPPUNIT_TEST( testMergeMeshOnSameCoords1 );
68 CPPUNIT_TEST( testMergeField1 );
69 CPPUNIT_TEST( testFillFromAnalytic );
70 CPPUNIT_TEST( testFillFromAnalytic2 );
71 CPPUNIT_TEST( testApplyFunc );
72 CPPUNIT_TEST( testApplyFunc2 );
73 CPPUNIT_TEST( testOperationsOnFields );
74 CPPUNIT_TEST( testOperationsOnFields2 );
75 CPPUNIT_TEST( testOperationsOnFields3 );
76 CPPUNIT_TEST( testOperationsOnFields4 );
77 CPPUNIT_TEST( testMergeNodesOnField );
78 CPPUNIT_TEST( testCheckConsecutiveCellTypes );
79 CPPUNIT_TEST( testRearrange2ConsecutiveCellTypes );
80 CPPUNIT_TEST( testSplitByType );
81 CPPUNIT_TEST( testFuseUMeshesOnSameCoords );
82 CPPUNIT_TEST( testFuseUMeshesOnSameCoords2 );
83 CPPUNIT_TEST( testBuildOrthogonalField );
84 CPPUNIT_TEST( testGetCellsContainingPoint );
85 CPPUNIT_TEST( testGetValueOn1 );
86 CPPUNIT_TEST( testCMesh0 );
87 CPPUNIT_TEST( testCMesh1 );
88 CPPUNIT_TEST( testCMesh2 );
89 CPPUNIT_TEST( testScale );
90 CPPUNIT_TEST( testTryToShareSameCoords );
91 CPPUNIT_TEST( testFindNodeOnPlane );
92 CPPUNIT_TEST( testRenumberCells );
93 CPPUNIT_TEST( testChangeSpaceDimension );
94 CPPUNIT_TEST( testSetConnectivity );
95 CPPUNIT_TEST_SUITE_END();
101 void testMeshPointsCloud();
105 void testConvertToPolyTypes();
106 void testDescConn2D();
107 void testDescConn3D();
108 void testFindBoundaryNodes();
109 void testBoundaryMesh();
110 void testBuildPartOfMySelf();
111 void testBuildPartOfMySelfNode();
112 void testZipCoords();
113 void testZipConnectivity();
114 void testEqualMesh();
115 void testEqualFieldDouble();
116 void testNatureChecking();
117 void testBuildSubMeshData();
118 void testExtrudedMesh1();
119 void testExtrudedMesh2();
120 void testExtrudedMesh3();
121 void testExtrudedMesh4();
122 void testFindCommonNodes();
123 void testCheckButterflyCells();
124 void testMergeMesh1();
125 void testMergeMeshOnSameCoords1();
126 void testMergeField1();
127 void testFillFromAnalytic();
128 void testFillFromAnalytic2();
129 void testApplyFunc();
130 void testApplyFunc2();
131 void testOperationsOnFields();
132 void testOperationsOnFields2();
133 void testOperationsOnFields3();
134 void testOperationsOnFields4();
135 void testMergeNodesOnField();
136 void testCheckConsecutiveCellTypes();
137 void testRearrange2ConsecutiveCellTypes();
138 void testSplitByType();
139 void testFuseUMeshesOnSameCoords();
140 void testFuseUMeshesOnSameCoords2();
141 void testBuildOrthogonalField();
142 void testGetCellsContainingPoint();
143 void testGetValueOn1();
148 void testTryToShareSameCoords();
149 void testFindNodeOnPlane();
150 void testRenumberCells();
151 void testChangeSpaceDimension();
152 void testSetConnectivity();