class MEDCouplingBasicsTest : public CppUnit::TestFixture
{
- CPPUNIT_TEST_SUITE(MEDCouplingBasicsTest);
- //MEDCouplingBasicsTest1.cxx
- CPPUNIT_TEST( testArray );
- CPPUNIT_TEST( testArray2 );
- CPPUNIT_TEST( testArray3 );
- CPPUNIT_TEST( testMesh );
- CPPUNIT_TEST( testMeshPointsCloud );
- CPPUNIT_TEST( testMeshM1D );
- CPPUNIT_TEST( testDeepCopy );
- CPPUNIT_TEST( testRevNodal );
- CPPUNIT_TEST( testConvertToPolyTypes );
- CPPUNIT_TEST( testDescConn2D );
- CPPUNIT_TEST( testDescConn3D );
- CPPUNIT_TEST( testFindBoundaryNodes );
- CPPUNIT_TEST( testBoundaryMesh );
- CPPUNIT_TEST( testBuildPartOfMySelf );
- CPPUNIT_TEST( testBuildPartOfMySelfNode );
- CPPUNIT_TEST( testZipCoords );
- CPPUNIT_TEST( testZipConnectivity );
- CPPUNIT_TEST( testEqualMesh );
- CPPUNIT_TEST( testEqualFieldDouble );
- CPPUNIT_TEST( testNatureChecking );
- CPPUNIT_TEST( testBuildSubMeshData );
- CPPUNIT_TEST( testExtrudedMesh1 );
- CPPUNIT_TEST( testExtrudedMesh2 );
- CPPUNIT_TEST( testExtrudedMesh3 );
- CPPUNIT_TEST( testExtrudedMesh4 );
- CPPUNIT_TEST( testFindCommonNodes );
- CPPUNIT_TEST( testCheckButterflyCells );
- CPPUNIT_TEST( testMergeMesh1 );
- CPPUNIT_TEST( testMergeMeshOnSameCoords1 );
- CPPUNIT_TEST( testMergeField1 );
- CPPUNIT_TEST( testFillFromAnalytic );
- CPPUNIT_TEST( testFillFromAnalytic2 );
- CPPUNIT_TEST( testApplyFunc );
- CPPUNIT_TEST( testApplyFunc2 );
- CPPUNIT_TEST( testOperationsOnFields );
- CPPUNIT_TEST( testOperationsOnFields2 );
- CPPUNIT_TEST( testOperationsOnFields3 );
- CPPUNIT_TEST( testOperationsOnFields4 );
- CPPUNIT_TEST( testMergeNodesOnField );
- CPPUNIT_TEST( testCheckConsecutiveCellTypes );
- CPPUNIT_TEST( testRearrange2ConsecutiveCellTypes );
- CPPUNIT_TEST( testSplitByType );
- CPPUNIT_TEST( testFuseUMeshesOnSameCoords );
- CPPUNIT_TEST( testFuseUMeshesOnSameCoords2 );
- CPPUNIT_TEST( testBuildOrthogonalField );
- CPPUNIT_TEST( testGetCellsContainingPoint );
- CPPUNIT_TEST( testGetValueOn1 );
- CPPUNIT_TEST( testCMesh0 );
- CPPUNIT_TEST( testScale );
- CPPUNIT_TEST( testTryToShareSameCoords );
- CPPUNIT_TEST( testFindNodeOnPlane );
- CPPUNIT_TEST( testRenumberCells );
- CPPUNIT_TEST( testChangeSpaceDimension );
- //MEDCouplingBasicsTest2.cxx
- CPPUNIT_TEST( testGaussPointField1 );
- CPPUNIT_TEST( testGaussPointNEField1 );
- CPPUNIT_TEST( testCellOrientation1 );
- CPPUNIT_TEST( testCellOrientation2 );
- CPPUNIT_TEST( testPolyhedronBarycenter );
- CPPUNIT_TEST( testNormL12Integ1D );
- CPPUNIT_TEST( testAreaBary2D );
- CPPUNIT_TEST( testAreaBary3D );
- CPPUNIT_TEST( testRenumberCellsForFields );
- CPPUNIT_TEST( testRenumberNodesForFields );
- CPPUNIT_TEST( testConvertQuadraticCellsToLinear );
- CPPUNIT_TEST( testCheckGeoEquivalWith );
- CPPUNIT_TEST( testCheckGeoEquivalWith2 );
- CPPUNIT_TEST( testCopyTinyStringsFromOnFields );
- CPPUNIT_TEST( testTryToShareSameCoordsPermute );
- CPPUNIT_TEST( testTryToShareSameCoordsPermute2 );
- CPPUNIT_TEST( testChangeUnderlyingMesh1 );
- CPPUNIT_TEST( testGetMaxValue1 );
- CPPUNIT_TEST( testSubstractInPlaceDM1 );
- CPPUNIT_TEST( testDotCrossProduct1 );
- CPPUNIT_TEST( testMinMaxFields1 );
- CPPUNIT_TEST( testApplyLin1 );
- CPPUNIT_TEST( testGetIdsInRange1 );
- CPPUNIT_TEST( testBuildSubPart1 );
- CPPUNIT_TEST( testDoublyContractedProduct1 );
- CPPUNIT_TEST( testDeterminant1 );
- CPPUNIT_TEST( testEigenValues1 );
- CPPUNIT_TEST( testEigenVectors1 );
- CPPUNIT_TEST( testInverse1 );
- CPPUNIT_TEST( testTrace1 );
- CPPUNIT_TEST( testDeviator1 );
- CPPUNIT_TEST( testMagnitude1 );
- CPPUNIT_TEST( testMaxPerTuple1 );
- CPPUNIT_TEST( testChangeNbOfComponents );
- CPPUNIT_TEST( testSortPerTuple1 );
- CPPUNIT_TEST( testIsEqualWithoutConsideringStr1 );
- CPPUNIT_TEST( testGetNodeIdsOfCell1 );
- CPPUNIT_TEST( testGetEdgeRatioField1 );
- CPPUNIT_TEST( testFillFromAnalytic3 );
- CPPUNIT_TEST( testFieldDoubleOpEqual1 );
- CPPUNIT_TEST( testAreaBary3D2 );
- //MEDCouplingBasicsTest3.cxx
- CPPUNIT_TEST( testGetMeasureFieldCMesh1 );
- CPPUNIT_TEST( testFieldDoubleZipCoords1 );
- CPPUNIT_TEST( testFieldDoubleZipConnectivity1 );
- CPPUNIT_TEST( testDaDoubleRenumber1 );
- CPPUNIT_TEST( testDaDoubleRenumberAndReduce1 );
- CPPUNIT_TEST( testDaDoubleRenumberInPlace1 );
- CPPUNIT_TEST( testDaDoubleSelectByTupleId1 );
- CPPUNIT_TEST( testDaDoubleRenumberR1 );
- CPPUNIT_TEST( testDaDoubleRenumberInPlaceR1 );
- CPPUNIT_TEST( testDaDoubleGetMinMaxValues1 );
- CPPUNIT_TEST( testFieldDoubleGetMinMaxValues2 );
- CPPUNIT_TEST( testBuildUnstructuredCMesh1 );
- CPPUNIT_TEST( testDataArrayIntInvertO2NNO21 );
- CPPUNIT_TEST( testKeepSetSelectedComponent1 );
- CPPUNIT_TEST( testKeepSetSelectedComponent2 );
- CPPUNIT_TEST( testDAIGetIdsEqual1 );
- CPPUNIT_TEST( testDAIGetIdsEqualList1 );
- CPPUNIT_TEST( testDAFromNoInterlace1 );
- CPPUNIT_TEST( testDAToNoInterlace1 );
- CPPUNIT_TEST( testDAIsUniform1 );
- CPPUNIT_TEST( testDADFromPolarToCart1 );
- CPPUNIT_TEST( testDADFromCylToCart1 );
- CPPUNIT_TEST( testDADFromSpherToCart1 );
- CPPUNIT_TEST( testUnPolyze1 );
- CPPUNIT_TEST( testConvertDegeneratedCells1 );
- CPPUNIT_TEST( testGetNodeIdsNearPoints1 );
- CPPUNIT_TEST( testFieldCopyTinyAttrFrom1 );
- CPPUNIT_TEST( testExtrudedMesh5 );
- CPPUNIT_TEST( testExtrudedMesh6 );
- CPPUNIT_TEST( testExtrudedMesh7 );
- CPPUNIT_TEST( testSimplexize1 );
- CPPUNIT_TEST( testSimplexize2 );
- CPPUNIT_TEST( testDAMeld1 );
- CPPUNIT_TEST( testFieldMeld1 );
- CPPUNIT_TEST( testMergeNodes2 );
- CPPUNIT_TEST( testMergeField2 );
- CPPUNIT_TEST( testDAIBuildComplement1 );
- CPPUNIT_TEST( testDAIBuildUnion1 );
- CPPUNIT_TEST( testDAIBuildIntersection1 );
- CPPUNIT_TEST( testDAIDeltaShiftIndex1 );
- CPPUNIT_TEST( testDaDoubleSelectByTupleIdSafe1 );
- CPPUNIT_TEST( testAreCellsIncludedIn1 );
- CPPUNIT_TEST( testDAIBuildSubstraction1 );
- CPPUNIT_TEST( testBuildOrthogonalField2 );
- CPPUNIT_TEST( testUMInsertNextCell1 );
- CPPUNIT_TEST( testFieldOperatorDivDiffComp1 );
- CPPUNIT_TEST( testDARearrange1 );
- CPPUNIT_TEST( testGetDifferentValues1 );
- CPPUNIT_TEST( testDAIBuildPermutationArr1 );
- CPPUNIT_TEST( testAreCellsIncludedIn2 );
- CPPUNIT_TEST( testUMeshGetPartBarycenterAndOwner1 );
- CPPUNIT_TEST( testUMeshGetPartMeasureField1 );
- CPPUNIT_TEST( testUMeshBuildPartOrthogonalField1 );
- CPPUNIT_TEST( testUMeshGetTypesOfPart1 );
- CPPUNIT_TEST( testUMeshKeepCellIdsByType1 );
- CPPUNIT_TEST( testDAIAggregateMulti1 );
- CPPUNIT_TEST( testMergeUMeshes2 );
- CPPUNIT_TEST( testBuild0DMeshFromCoords1 );
- //MEDCouplingBasicsTest4.cxx
- CPPUNIT_TEST( testDescriptionInMeshTimeUnit1 );
- CPPUNIT_TEST( testMultiFields1 );
- CPPUNIT_TEST( testFieldOverTime1 );
- CPPUNIT_TEST( testDAICheckAndPreparePermutation1 );
- CPPUNIT_TEST( testDAIChangeSurjectiveFormat1 );
- CPPUNIT_TEST( testUMeshGetCellIdsLyingOnNodes1 );
- CPPUNIT_TEST( testUMeshFindCellsIdsOnBoundary1 );
- CPPUNIT_TEST( testMeshSetTime1 );
- CPPUNIT_TEST( testApplyFuncTwo1 );
- CPPUNIT_TEST( testApplyFuncThree1 );
- CPPUNIT_TEST( testFillFromAnalyticTwo1 );
- CPPUNIT_TEST( testFillFromAnalyticThree1 );
- CPPUNIT_TEST( testDAUnitVar1 );
- CPPUNIT_TEST( testGaussCoordinates1 );
- CPPUNIT_TEST( testP2Localization1 );
- CPPUNIT_TEST( testP2Localization2 );
- CPPUNIT_TEST( testGetValueOn2 );
- CPPUNIT_TEST( testDAIGetIdsNotEqual1 );
- CPPUNIT_TEST( testDAIComputeOffsets1 );
- CPPUNIT_TEST( testUMeshHexagonPrism1 );
- CPPUNIT_TEST( testDADCheckIsMonotonic );
- CPPUNIT_TEST( testCheckCoherencyDeeper1 );
- CPPUNIT_TEST( testUnPolyze2 );
- CPPUNIT_TEST( testDACpyFrom1 );
- CPPUNIT_TEST( testDAITransformWithIndArr1 );
- CPPUNIT_TEST( testDAIBuildPermArrPerLevel1 );
- CPPUNIT_TEST( testDAIOperations1 );
- CPPUNIT_TEST( testEmulateMEDMEMBDC1 );
- CPPUNIT_TEST( testGetLevArrPerCellTypes1 );
- CPPUNIT_TEST( testSortCellsInMEDFileFrmt1 );
- CPPUNIT_TEST( testBuildPartAndReduceNodes1 );
- CPPUNIT_TEST( testDAITransformWithIndArrR1 );
- CPPUNIT_TEST( testDAISplitByValueRange1 );
- CPPUNIT_TEST( testUMeshSplitProfilePerType1 );
- CPPUNIT_TEST( testDAIBuildExplicitArrByRanges1 );
- CPPUNIT_TEST( testDAIComputeOffsets2 );
- CPPUNIT_TEST( testMergeField3 );
- CPPUNIT_TEST( testGetDistributionOfTypes1 );
- CPPUNIT_TEST( testNorm2_1 );
- CPPUNIT_TEST( testNormMax1 );
- CPPUNIT_TEST( testFindAndCorrectBadOriented3DExtrudedCells1 );
- CPPUNIT_TEST( testConvertExtrudedPolyhedra1 );
- CPPUNIT_TEST( testNonRegressionCopyTinyStrings );
- //MEDCouplingBasicsTestInterp.cxx
- CPPUNIT_TEST( test2DInterpP0P0_1 );
- CPPUNIT_TEST( test2DInterpP0P0PL_1 );
- CPPUNIT_TEST( test2DInterpP0P0PL_2 );
- CPPUNIT_TEST( test2DInterpP0P0PL_3 );
- CPPUNIT_TEST( test2DInterpP0P0PL_4 );
- CPPUNIT_TEST( test2DInterpP0P1_1 );
- CPPUNIT_TEST( test2DInterpP0P1PL_1 );
- CPPUNIT_TEST( test2DInterpP0P1PL_2 );
- CPPUNIT_TEST( test2DInterpP1P0_1 );
- CPPUNIT_TEST( test2DInterpP1P0PL_1 );
- CPPUNIT_TEST( test2DInterpP1P0PL_2 );
- CPPUNIT_TEST( test2DInterpP1P1_1 );
- CPPUNIT_TEST( test2DInterpP1P1PL_1 );
- CPPUNIT_TEST( test3DSurfInterpP0P0_1 );
- CPPUNIT_TEST( test3DSurfInterpP0P0PL_1 );
- CPPUNIT_TEST( test3DSurfInterpP0P1_1 );
- CPPUNIT_TEST( test3DSurfInterpP0P1PL_1 );
- CPPUNIT_TEST( test3DSurfInterpP1P0_1 );
- CPPUNIT_TEST( test3DSurfInterpP1P0PL_1 );
- CPPUNIT_TEST( test3DSurfInterpP1P1_1 );
- CPPUNIT_TEST( test3DSurfInterpP1P1PL_1 );
- CPPUNIT_TEST( test3DSurfInterpP0P0_2 );
- CPPUNIT_TEST( test3DSurfInterpP0P0_3 );
-
- CPPUNIT_TEST( testInterpolationCC );
- CPPUNIT_TEST( testInterpolationCU1D );
- CPPUNIT_TEST( testInterpolationCU2D );
- CPPUNIT_TEST( testInterpolationCU3D );
-
- CPPUNIT_TEST( test3DInterpP0P0_1 );
- CPPUNIT_TEST( test3DInterpP0P0PL_1 );
- CPPUNIT_TEST( test3DInterpP0P0PL_2 );
- CPPUNIT_TEST( test3DInterpP0P0PL_3 );
- CPPUNIT_TEST( test3DInterpP0P0PL_4 );
- CPPUNIT_TEST( test3DInterpP0P1_1 );
- CPPUNIT_TEST( test3DInterpP0P1PL_1 );
- CPPUNIT_TEST( test3DInterpP1P0_1 );
- CPPUNIT_TEST( test3DInterpP1P0PL_1 );
- CPPUNIT_TEST( test3DInterpP1P1_1 );
- CPPUNIT_TEST( test3DInterpP1P1PL_1 );
- CPPUNIT_TEST( test3DInterpP0P0Empty );
- CPPUNIT_TEST( test2DInterpP0IntegralUniform );
- CPPUNIT_TEST( test3DSurfInterpP0IntegralUniform );
- CPPUNIT_TEST( test3DInterpP0IntegralUniform );
- CPPUNIT_TEST( test2DInterpP1IntegralUniform );
- CPPUNIT_TEST( test3DInterpP1IntegralUniform );
- CPPUNIT_TEST( test2DInterpP1P0Bary_1 );
- CPPUNIT_TEST( test3DSurfInterpP1P0Bary_1 );
- CPPUNIT_TEST( test3DInterpP1P0Bary_1 );
- CPPUNIT_TEST( test3DTo1DInterpP0P0PL_1 );
-
- CPPUNIT_TEST( test2D1DBasicInterpP0P0 );
- CPPUNIT_TEST( test2D1DSegQuadInterpP0P0_1 );
- CPPUNIT_TEST( test2D1DSegQuadInterpP0P0_2 );
- CPPUNIT_TEST( test2D1DSegQuadInterpP0P0_3 );
- CPPUNIT_TEST( test2D1DSegQuadInterpP0P0_4 );
- CPPUNIT_TEST( test2D1DSegQuadInterpP0P0_5 );
- CPPUNIT_TEST( test2D1DSegQuadInterpP0P0_6 );
- CPPUNIT_TEST( test2D1DSegTriInterpP0P0_1 );
- CPPUNIT_TEST( test2D1DSegTriInterpP0P0_2 );
- CPPUNIT_TEST( test2D1DSegTriInterpP0P0_3 );
- CPPUNIT_TEST( test2D1DSegTriInterpP0P0_4 );
- CPPUNIT_TEST( test2D1DSegTriInterpP0P0_5 );
- CPPUNIT_TEST( test2D1DSegTriInterpP0P0_6 );
- CPPUNIT_TEST( test3D2DBasicInterpP0P0 );
- CPPUNIT_TEST( test3D2DQuadHexaInterpP0P0_1 );
- CPPUNIT_TEST( test3D2DQuadHexaInterpP0P0_2 );
- CPPUNIT_TEST( test3D2DQuadHexaInterpP0P0_3 );
- CPPUNIT_TEST( test3D2DQuadHexaInterpP0P0_4 );
- CPPUNIT_TEST( test3D2DQuadHexaInterpP0P0_5 );
- CPPUNIT_TEST( test3D2DQuadHexaInterpP0P0_6 );
- CPPUNIT_TEST( test3D2DTriHexaInterpP0P0_1 );
- CPPUNIT_TEST( test3D2DTriHexaInterpP0P0_2 );
- CPPUNIT_TEST( test3D2DTriHexaInterpP0P0_3 );
- CPPUNIT_TEST( test3D2DTriHexaInterpP0P0_4 );
- CPPUNIT_TEST( test3D2DTriHexaInterpP0P0_5 );
- CPPUNIT_TEST( test3D2DTriHexaInterpP0P0_6 );
- CPPUNIT_TEST( test3D2DQuadTetraInterpP0P0_1 );
- CPPUNIT_TEST( test3D2DQuadTetraInterpP0P0_2 );
- CPPUNIT_TEST( test3D2DQuadTetraInterpP0P0_3 );
- CPPUNIT_TEST( test3D2DQuadTetraInterpP0P0_4 );
- CPPUNIT_TEST( test3D2DQuadTetraInterpP0P0_5 );
- CPPUNIT_TEST( test3D2DQuadTetraInterpP0P0_6 );
- CPPUNIT_TEST( test3D2DTriTetraInterpP0P0_1 );
- CPPUNIT_TEST( test3D2DTriTetraInterpP0P0_2 );
- CPPUNIT_TEST( test3D2DTriTetraInterpP0P0_3 );
- CPPUNIT_TEST( test3D2DTriTetraInterpP0P0_4 );
- CPPUNIT_TEST( test3D2DTriTetraInterpP0P0_5 );
- CPPUNIT_TEST( test3D2DTriTetraInterpP0P0_6 );
-
- CPPUNIT_TEST( test1DInterp_1 );
- CPPUNIT_TEST( test2DCurveInterpP0P0_1 );
- CPPUNIT_TEST( test2DCurveInterpP0P0_2 );
- CPPUNIT_TEST( test2DCurveInterpP0P1_1 );
- CPPUNIT_TEST( test2DCurveInterpP1P0_1 );
- CPPUNIT_TEST( test2DCurveInterpP1P1_1 );
- CPPUNIT_TEST_SUITE_END();
- public:
- //MEDCouplingBasicsTest1.cxx
- void testArray();
- void testArray2();
- void testArray3();
- void testMesh();
- void testMeshPointsCloud();
- void testMeshM1D();
- void testDeepCopy();
- void testRevNodal();
- void testConvertToPolyTypes();
- void testDescConn2D();
- void testDescConn3D();
- void testFindBoundaryNodes();
- void testBoundaryMesh();
- void testBuildPartOfMySelf();
- void testBuildPartOfMySelfNode();
- void testZipCoords();
- void testZipConnectivity();
- void testEqualMesh();
- void testEqualFieldDouble();
- void testNatureChecking();
- void testBuildSubMeshData();
- void testExtrudedMesh1();
- void testExtrudedMesh2();
- void testExtrudedMesh3();
- void testExtrudedMesh4();
- void testFindCommonNodes();
- void testCheckButterflyCells();
- void testMergeMesh1();
- void testMergeMeshOnSameCoords1();
- void testMergeField1();
- void testFillFromAnalytic();
- void testFillFromAnalytic2();
- void testApplyFunc();
- void testApplyFunc2();
- void testOperationsOnFields();
- void testOperationsOnFields2();
- void testOperationsOnFields3();
- void testOperationsOnFields4();
- void testMergeNodesOnField();
- void testCheckConsecutiveCellTypes();
- void testRearrange2ConsecutiveCellTypes();
- void testSplitByType();
- void testFuseUMeshesOnSameCoords();
- void testFuseUMeshesOnSameCoords2();
- void testBuildOrthogonalField();
- void testGetCellsContainingPoint();
- void testGetValueOn1();
- void testCMesh0();
- void testScale();
- void testTryToShareSameCoords();
- void testFindNodeOnPlane();
- void testRenumberCells();
- void testChangeSpaceDimension();
- //MEDCouplingBasicsTest2.cxx
- void testGaussPointField1();
- void testGaussPointNEField1();
- void testCellOrientation1();
- void testCellOrientation2();
- void testPolyhedronBarycenter();
- void testNormL12Integ1D();
- void testAreaBary2D();
- void testAreaBary3D();
- void testRenumberCellsForFields();
- void testRenumberNodesForFields();
- void testConvertQuadraticCellsToLinear();
- void testCheckGeoEquivalWith();
- void testCheckGeoEquivalWith2();
- void testCopyTinyStringsFromOnFields();
- void testTryToShareSameCoordsPermute();
- void testTryToShareSameCoordsPermute2();
- void testChangeUnderlyingMesh1();
- void testGetMaxValue1();
- void testSubstractInPlaceDM1();
- void testDotCrossProduct1();
- void testMinMaxFields1();
- void testApplyLin1();
- void testGetIdsInRange1();
- void testBuildSubPart1();
- void testDoublyContractedProduct1();
- void testDeterminant1();
- void testEigenValues1();
- void testEigenVectors1();
- void testInverse1();
- void testTrace1();
- void testDeviator1();
- void testMagnitude1();
- void testMaxPerTuple1();
- void testChangeNbOfComponents();
- void testSortPerTuple1();
- void testIsEqualWithoutConsideringStr1();
- void testGetNodeIdsOfCell1();
- void testGetEdgeRatioField1();
- void testFillFromAnalytic3();
- void testFieldDoubleOpEqual1();
- void testAreaBary3D2();
- //MEDCouplingBasicsTest3.cxx
- void testGetMeasureFieldCMesh1();
- void testFieldDoubleZipCoords1();
- void testFieldDoubleZipConnectivity1();
- void testDaDoubleRenumber1();
- void testDaDoubleRenumberAndReduce1();
- void testDaDoubleRenumberInPlace1();
- void testDaDoubleSelectByTupleId1();
- void testDaDoubleRenumberR1();
- void testDaDoubleRenumberInPlaceR1();
- void testDaDoubleGetMinMaxValues1();
- void testFieldDoubleGetMinMaxValues2();
- void testBuildUnstructuredCMesh1();
- void testDataArrayIntInvertO2NNO21();
- void testKeepSetSelectedComponent1();
- void testKeepSetSelectedComponent2();
- void testDAIGetIdsEqual1();
- void testDAIGetIdsEqualList1();
- void testDAFromNoInterlace1();
- void testDAToNoInterlace1();
- void testDAIsUniform1();
- void testDADFromPolarToCart1();
- void testDADFromCylToCart1();
- void testDADFromSpherToCart1();
- void testUnPolyze1();
- void testConvertDegeneratedCells1();
- void testGetNodeIdsNearPoints1();
- void testFieldCopyTinyAttrFrom1();
- void testExtrudedMesh5();
- void testExtrudedMesh6();
- void testExtrudedMesh7();
- void testSimplexize1();
- void testSimplexize2();
- void testDAMeld1();
- void testFieldMeld1();
- void testMergeNodes2();
- void testMergeField2();
- void testDAIBuildComplement1();
- void testDAIBuildUnion1();
- void testDAIBuildIntersection1();
- void testDAIDeltaShiftIndex1();
- void testDaDoubleSelectByTupleIdSafe1();
- void testAreCellsIncludedIn1();
- void testDAIBuildSubstraction1();
- void testBuildOrthogonalField2();
- void testUMInsertNextCell1();
- void testFieldOperatorDivDiffComp1();
- void testDARearrange1();
- void testGetDifferentValues1();
- void testDAIBuildPermutationArr1();
- void testAreCellsIncludedIn2();
- void testUMeshGetPartBarycenterAndOwner1();
- void testUMeshGetPartMeasureField1();
- void testUMeshBuildPartOrthogonalField1();
- void testUMeshGetTypesOfPart1();
- void testUMeshKeepCellIdsByType1();
- void testDAIAggregateMulti1();
- void testMergeUMeshes2();
- void testBuild0DMeshFromCoords1();
- //MEDCouplingBasicsTest4.cxx
- void testDescriptionInMeshTimeUnit1();
- void testMultiFields1();
- void testFieldOverTime1();
- void testDAICheckAndPreparePermutation1();
- void testDAIChangeSurjectiveFormat1();
- void testUMeshGetCellIdsLyingOnNodes1();
- void testUMeshFindCellsIdsOnBoundary1();
- void testMeshSetTime1();
- void testApplyFuncTwo1();
- void testApplyFuncThree1();
- void testFillFromAnalyticTwo1();
- void testFillFromAnalyticThree1();
- void testDAUnitVar1();
- void testGaussCoordinates1();
- void testQ1Localization1();
- void testP2Localization1();
- void testP2Localization2();
- void testGetValueOn2();
- void testDAIGetIdsNotEqual1();
- void testDAIComputeOffsets1();
- void testUMeshHexagonPrism1();
- void testDADCheckIsMonotonic();
- void testCheckCoherencyDeeper1();
- void testUnPolyze2();
- void testDACpyFrom1();
- void testDAITransformWithIndArr1();
- void testDAIBuildPermArrPerLevel1();
- void testDAIOperations1();
- void testEmulateMEDMEMBDC1();
- void testGetLevArrPerCellTypes1();
- void testSortCellsInMEDFileFrmt1();
- void testBuildPartAndReduceNodes1();
- void testDAITransformWithIndArrR1();
- void testDAISplitByValueRange1();
- void testUMeshSplitProfilePerType1();
- void testDAIBuildExplicitArrByRanges1();
- void testDAIComputeOffsets2();
- void testMergeField3();
- void testGetDistributionOfTypes1();
- void testNorm2_1();
- void testNormMax1();
- void testFindAndCorrectBadOriented3DExtrudedCells1();
- void testConvertExtrudedPolyhedra1();
- void testNonRegressionCopyTinyStrings();
- //MEDCouplingBasicsTestInterp.cxx
- void test2DInterpP0P0_1();
- void test2DInterpP0P0PL_1();
- void test2DInterpP0P0PL_2();
- void test2DInterpP0P0PL_3();
- void test2DInterpP0P0PL_4();
- void test2DInterpP0P1_1();
- void test2DInterpP0P1PL_1();
- void test2DInterpP0P1PL_2();
- void test2DInterpP1P0_1();
- void test2DInterpP1P0PL_1();
- void test2DInterpP1P0PL_2();
- void test2DInterpP1P1_1();
- void test2DInterpP1P1PL_1();
- void test3DSurfInterpP0P0_1();
- void test3DSurfInterpP0P0PL_1();
- void test3DSurfInterpP0P1_1();
- void test3DSurfInterpP0P1PL_1();
- void test3DSurfInterpP1P0_1();
- void test3DSurfInterpP1P0PL_1();
- void test3DSurfInterpP1P1_1();
- void test3DSurfInterpP1P1PL_1();
- void test3DSurfInterpP0P0_2();
- void test3DSurfInterpP0P0_3();
- void test3DInterpP0P0_1();
- void test3DInterpP0P0PL_1();
- void test3DInterpP0P0PL_2();
- void test3DInterpP0P0PL_3();
- void test3DInterpP0P0PL_4();
- void test3DInterpP0P1_1();
- void test3DInterpP0P1PL_1();
- void test3DInterpP1P0_1();
- void test3DInterpP1P0PL_1();
- void test3DInterpP1P1_1();
- void test3DInterpP1P1PL_1();
-
- void testInterpolationCC();
- void testInterpolationCU1D();
- void testInterpolationCU2D();
- void testInterpolationCU3D();
-
- void test3DInterpP0P0Empty();
- void test2DInterpP0IntegralUniform();
- void test3DSurfInterpP0IntegralUniform();
- void test3DInterpP0IntegralUniform();
- void test2DInterpP1IntegralUniform();
- void test3DInterpP1IntegralUniform();
- void test2DInterpP1P0Bary_1();
- void test3DSurfInterpP1P0Bary_1();
- void test3DInterpP1P0Bary_1();
- void test3DTo1DInterpP0P0PL_1();
-
- void test2D1DBasicInterpP0P0();
- void test2D1DSegQuadInterpP0P0_1();
- void test2D1DSegQuadInterpP0P0_2();
- void test2D1DSegQuadInterpP0P0_3();
- void test2D1DSegQuadInterpP0P0_4();
- void test2D1DSegQuadInterpP0P0_5();
- void test2D1DSegQuadInterpP0P0_6();
- void test2D1DSegTriInterpP0P0_1();
- void test2D1DSegTriInterpP0P0_2();
- void test2D1DSegTriInterpP0P0_3();
- void test2D1DSegTriInterpP0P0_4();
- void test2D1DSegTriInterpP0P0_5();
- void test2D1DSegTriInterpP0P0_6();
- void test3D2DBasicInterpP0P0();
- void test3D2DQuadHexaInterpP0P0_1();
- void test3D2DQuadHexaInterpP0P0_2();
- void test3D2DQuadHexaInterpP0P0_3();
- void test3D2DQuadHexaInterpP0P0_4();
- void test3D2DQuadHexaInterpP0P0_5();
- void test3D2DQuadHexaInterpP0P0_6();
- void test3D2DTriHexaInterpP0P0_1();
- void test3D2DTriHexaInterpP0P0_2();
- void test3D2DTriHexaInterpP0P0_3();
- void test3D2DTriHexaInterpP0P0_4();
- void test3D2DTriHexaInterpP0P0_5();
- void test3D2DTriHexaInterpP0P0_6();
- void test3D2DQuadTetraInterpP0P0_1();
- void test3D2DQuadTetraInterpP0P0_2();
- void test3D2DQuadTetraInterpP0P0_3();
- void test3D2DQuadTetraInterpP0P0_4();
- void test3D2DQuadTetraInterpP0P0_5();
- void test3D2DQuadTetraInterpP0P0_6();
- void test3D2DTriTetraInterpP0P0_1();
- void test3D2DTriTetraInterpP0P0_2();
- void test3D2DTriTetraInterpP0P0_3();
- void test3D2DTriTetraInterpP0P0_4();
- void test3D2DTriTetraInterpP0P0_5();
- void test3D2DTriTetraInterpP0P0_6();
-
- void test1DInterp_1();
- void test2DCurveInterpP0P0_1();
- void test2DCurveInterpP0P0_2();
- void test2DCurveInterpP0P1_1();
- void test2DCurveInterpP1P0_1();
- void test2DCurveInterpP1P1_1();
-
public:
static MEDCouplingUMesh *build3DSourceMesh_2();
static MEDCouplingUMesh *build3DTargetMesh_2();
static MEDCouplingMultiFields *buildMultiFields_1();
static std::vector<MEDCouplingFieldDouble *> buildMultiFields_2();
static double sumAll(const std::vector< std::map<int,double> >& matrix);
- private:
+ protected:
static int countNonZero(const std::vector< std::map<int,double> >& matrix);
static void test2D1DMeshesIntersection(MEDCouplingUMesh *sourceMesh,
#include "MEDCouplingBasicsTestData1.hxx"
+#include "Interpolation2D.txx"
+#include "Interpolation3D2D.txx"
+#include "Interpolation2D1D.txx"
+#include "MEDCouplingNormalizedUnstructuredMesh.txx"
+#include "MEDCouplingNormalizedCartesianMesh.txx"
+
using namespace ParaMEDMEM;
+typedef std::vector<std::map<int,double> > IntersectionMatrix;
+
MEDCouplingUMesh *MEDCouplingBasicsTest::build3DSourceMesh_2()
{
double sourceCoords[84]={100.0, 100.0, 0.0, 100.0, 100.0, 100.0, 100.0, 0.0, 100.0, 100.0, 0.0, 0.0, 0.0, 100.0, 0.0, 0.0, 100.0, 100.0, 0.0,
return targetMesh;
}
+
+int MEDCouplingBasicsTest::countNonZero(const std::vector< std::map<int,double> >& matrix)
+{
+ int ret=0.;
+ for(std::vector< std::map<int,double> >::const_iterator iter=matrix.begin();iter!=matrix.end();iter++)
+ for(std::map<int,double>::const_iterator iter2=(*iter).begin();iter2!=(*iter).end();iter2++)
+ if (!INTERP_KERNEL::epsilonEqual((*iter2).second, 0.)) ret +=1;
+ return ret;
+}
+
+void MEDCouplingBasicsTest::test2D1DMeshesIntersection(MEDCouplingUMesh *sourceMesh,
+ MEDCouplingUMesh *targetMesh,
+ const double correctLength,
+ const int correctDuplicateFacesNbr,
+ const int correctTotalIntersectFacesNbr)
+{
+ MEDCouplingNormalizedUnstructuredMesh<2,2> sourceWrapper(sourceMesh);
+ MEDCouplingNormalizedUnstructuredMesh<2,2> targetWrapper(targetMesh);
+ INTERP_KERNEL::Interpolation2D1D myInterpolator;
+ myInterpolator.setPrecision(1e-12);
+ const double prec = 1.0e-5;
+ IntersectionMatrix matrix;
+ myInterpolator.setIntersectionType(INTERP_KERNEL::Geometric2D);
+ myInterpolator.interpolateMeshes(sourceWrapper,targetWrapper,matrix,"P0P0");
+
+ std::cout.precision(16);
+
+ const double length = sumAll(matrix);
+ LOG(1, "length = " << surf <<" correctLength = " << correctLength );
+ CPPUNIT_ASSERT_DOUBLES_EQUAL(correctLength, length, prec * std::max(correctLength, length));
+
+ INTERP_KERNEL::Interpolation3D2D::DuplicateFacesType duplicateFaces = myInterpolator.retrieveDuplicateFaces();
+ int duplicateFacesNbr = duplicateFaces.size();
+ LOG(1, "duplicateFacesNbr = " << duplicateFacesNbr <<" correctDuplicateFacesNbr = " << correctDuplicateFacesNbr);
+ CPPUNIT_ASSERT_EQUAL(correctDuplicateFacesNbr, duplicateFacesNbr);
+
+ if (correctTotalIntersectFacesNbr >= 0)
+ {
+ int totalIntersectFacesNbr = countNonZero(matrix);
+ LOG(1, "totalIntersectFacesNbr = " << totalIntersectFacesNbr <<" correctTotalIntersectFacesNbr = " << correctTotalIntersectFacesNbr );
+ CPPUNIT_ASSERT_EQUAL(correctTotalIntersectFacesNbr, totalIntersectFacesNbr);
+ }
+ //clean up
+ sourceMesh->decrRef();
+ targetMesh->decrRef();
+}
+
+void MEDCouplingBasicsTest::test3D2DMeshesIntersection(MEDCouplingUMesh *sourceMesh,
+ MEDCouplingUMesh *targetMesh,
+ const double correctSurf,
+ const int correctDuplicateFacesNbr,
+ const int correctTotalIntersectFacesNbr)
+{
+ MEDCouplingNormalizedUnstructuredMesh<3,3> sourceWrapper(sourceMesh);
+ MEDCouplingNormalizedUnstructuredMesh<3,3> targetWrapper(targetMesh);
+ INTERP_KERNEL::Interpolation3D2D myInterpolator;
+ myInterpolator.setPrecision(1e-12);
+ const double prec = 1.0e-5;
+ IntersectionMatrix matrix;
+ INTERP_KERNEL::SplittingPolicy sp[] = { INTERP_KERNEL::PLANAR_FACE_5, INTERP_KERNEL::PLANAR_FACE_6, INTERP_KERNEL::GENERAL_24, INTERP_KERNEL::GENERAL_48 };
+ for ( size_t i = 0; i < sizeof(sp)/sizeof(sp[0]); ++i )
+ {
+ myInterpolator.setSplittingPolicy( sp[i] );
+ matrix.clear();
+ myInterpolator.interpolateMeshes(sourceWrapper,targetWrapper,matrix,"P0P0");
+
+ std::cout.precision(16);
+
+ const double surf = sumAll(matrix);
+ LOG(1, "surf = " << surf <<" correctSurf = " << correctSurf );
+ CPPUNIT_ASSERT_DOUBLES_EQUAL(correctSurf, surf, prec * std::max(correctSurf, surf));
+
+ INTERP_KERNEL::Interpolation3D2D::DuplicateFacesType duplicateFaces = myInterpolator.retrieveDuplicateFaces();
+ int duplicateFacesNbr = duplicateFaces.size();
+ LOG(1, "duplicateFacesNbr = " << duplicateFacesNbr <<" correctDuplicateFacesNbr = " << correctDuplicateFacesNbr);
+ CPPUNIT_ASSERT_EQUAL(correctDuplicateFacesNbr, duplicateFacesNbr);
+
+ if (correctTotalIntersectFacesNbr >= 0)
+ {
+ int totalIntersectFacesNbr = countNonZero(matrix);
+ LOG(1, "totalIntersectFacesNbr = " << totalIntersectFacesNbr <<" correctTotalIntersectFacesNbr = " << correctTotalIntersectFacesNbr );
+ CPPUNIT_ASSERT_EQUAL(correctTotalIntersectFacesNbr, totalIntersectFacesNbr);
+ }
+ }
+ //clean up
+ sourceMesh->decrRef();
+ targetMesh->decrRef();
+}
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#include "MEDCouplingBasicsTest.hxx"
+#include "MEDCouplingBasicsTest1.hxx"
#include "MEDCouplingUMesh.hxx"
#include "MEDCouplingCMesh.hxx"
#include "MEDCouplingExtrudedMesh.hxx"
using namespace ParaMEDMEM;
-void MEDCouplingBasicsTest::testArray()
+void MEDCouplingBasicsTest1::testArray()
{
int tmp1[6]={7,6,5,4,3,2};
const int tmp2[3]={8,9,10};
}
}
-void MEDCouplingBasicsTest::testArray2()
+void MEDCouplingBasicsTest1::testArray2()
{
DataArrayDouble *arr=DataArrayDouble::New();
arr->alloc(3,4);
arr->decrRef();
}
-void MEDCouplingBasicsTest::testArray3()
+void MEDCouplingBasicsTest1::testArray3()
{
DataArrayInt *arr1=DataArrayInt::New();
arr1->alloc(7,2);
arr6->decrRef();
}
-void MEDCouplingBasicsTest::testMesh()
+void MEDCouplingBasicsTest1::testMesh()
{
const int nbOfCells=6;
const int nbOfNodes=12;
mesh->decrRef();
}
-void MEDCouplingBasicsTest::testMeshPointsCloud()
+void MEDCouplingBasicsTest1::testMeshPointsCloud()
{
double targetCoords[27]={-0.3,-0.3,0.5, 0.2,-0.3,1., 0.7,-0.3,1.5, -0.3,0.2,0.5, 0.2,0.2,1., 0.7,0.2,1.5, -0.3,0.7,0.5, 0.2,0.7,1., 0.7,0.7,1.5};
const int targetConn[]={0,1,2,3,4,5,7,6};
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::testMeshM1D()
+void MEDCouplingBasicsTest1::testMeshM1D()
{
MEDCouplingUMesh *meshM1D=MEDCouplingUMesh::New();
CPPUNIT_ASSERT_THROW(meshM1D->getMeshDimension(),INTERP_KERNEL::Exception);
meshM1D->decrRef();
}
-void MEDCouplingBasicsTest::testDeepCopy()
+void MEDCouplingBasicsTest1::testDeepCopy()
{
DataArrayDouble *array=DataArrayDouble::New();
array->alloc(5,3);
array4->decrRef();
}
-void MEDCouplingBasicsTest::testRevNodal()
+void MEDCouplingBasicsTest1::testRevNodal()
{
MEDCouplingUMesh *mesh=build2DTargetMesh_1();
DataArrayInt *revNodal=DataArrayInt::New();
mesh->decrRef();
}
-void MEDCouplingBasicsTest::testConvertToPolyTypes()
+void MEDCouplingBasicsTest1::testConvertToPolyTypes()
{
////// 2D
MEDCouplingUMesh *mesh=build2DTargetMesh_1();
mesh->decrRef();
}
-void MEDCouplingBasicsTest::testDescConn2D()
+void MEDCouplingBasicsTest1::testDescConn2D()
{
MEDCouplingUMesh *mesh=build2DTargetMesh_1();
DataArrayInt *desc=DataArrayInt::New();
mesh->decrRef();
}
-void MEDCouplingBasicsTest::testDescConn3D()
+void MEDCouplingBasicsTest1::testDescConn3D()
{
MEDCouplingUMesh *mesh=build3DTargetMesh_1();
DataArrayInt *desc=DataArrayInt::New();
mesh->decrRef();
}
-void MEDCouplingBasicsTest::testFindBoundaryNodes()
+void MEDCouplingBasicsTest1::testFindBoundaryNodes()
{
MEDCouplingUMesh *mesh=build3DTargetMesh_1();
std::vector<int> boundaryNodes;
mesh->decrRef();
}
-void MEDCouplingBasicsTest::testBoundaryMesh()
+void MEDCouplingBasicsTest1::testBoundaryMesh()
{
MEDCouplingUMesh *mesh=build3DTargetMesh_1();
MEDCouplingPointSet *mesh2=mesh->buildBoundaryMesh(false);
mesh->decrRef();
}
-void MEDCouplingBasicsTest::testBuildPartOfMySelf()
+void MEDCouplingBasicsTest1::testBuildPartOfMySelf()
{
MEDCouplingUMesh *mesh=build2DTargetMesh_1();
mesh->setName("Toto");
mesh->decrRef();
}
-void MEDCouplingBasicsTest::testBuildPartOfMySelfNode()
+void MEDCouplingBasicsTest1::testBuildPartOfMySelfNode()
{
MEDCouplingUMesh *mesh=build2DTargetMesh_1();
const int tab1[2]={5,7};
mesh->decrRef();
}
-void MEDCouplingBasicsTest::testZipCoords()
+void MEDCouplingBasicsTest1::testZipCoords()
{
MEDCouplingUMesh *mesh=build2DTargetMesh_1();
CPPUNIT_ASSERT_EQUAL(2,(int)mesh->getAllTypes().size());
mesh->decrRef();
}
-void MEDCouplingBasicsTest::testZipConnectivity()
+void MEDCouplingBasicsTest1::testZipConnectivity()
{
MEDCouplingUMesh *m1=build2DTargetMesh_1();
MEDCouplingUMesh *m2=build2DTargetMesh_1();
m6->decrRef();
}
-void MEDCouplingBasicsTest::testEqualMesh()
+void MEDCouplingBasicsTest1::testEqualMesh()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_1();
MEDCouplingUMesh *mesh2=build2DTargetMesh_1();
mesh2->decrRef();
}
-void MEDCouplingBasicsTest::testEqualFieldDouble()
+void MEDCouplingBasicsTest1::testEqualFieldDouble()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_1();
MEDCouplingUMesh *mesh2=build2DTargetMesh_1();
mesh2->decrRef();
}
-void MEDCouplingBasicsTest::testNatureChecking()
+void MEDCouplingBasicsTest1::testNatureChecking()
{
MEDCouplingFieldDouble *field=MEDCouplingFieldDouble::New(ON_CELLS,NO_TIME);
field->setNature(Integral);
field->decrRef();
}
-void MEDCouplingBasicsTest::testBuildSubMeshData()
+void MEDCouplingBasicsTest1::testBuildSubMeshData()
{
MEDCouplingUMesh *targetMesh=build2DTargetMesh_1();
//check buildSubMesh on field on cells
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::testExtrudedMesh1()
+void MEDCouplingBasicsTest1::testExtrudedMesh1()
{
MEDCouplingUMesh *mesh2D=0;
MEDCouplingUMesh *mesh3D=build3DExtrudedUMesh_1(mesh2D);
mesh2D->decrRef();
}
-void MEDCouplingBasicsTest::testExtrudedMesh2()
+void MEDCouplingBasicsTest1::testExtrudedMesh2()
{
MEDCouplingUMesh *mN,*mTT,*mTF;
build3DExtrudedUMesh_2(mN,mTT,mTF);
/*!
* This test check MEDCouplingUMesh::buildExtrudedMesh method.
*/
-void MEDCouplingBasicsTest::testExtrudedMesh3()
+void MEDCouplingBasicsTest1::testExtrudedMesh3()
{
MEDCouplingUMesh *m1=build2DTargetMesh_1();
m1->changeSpaceDimension(3);
* This test check MEDCouplingUMesh::buildExtrudedMesh method, but also, MEDCouplingExtrudedMesh following methods :
* getCellContainingPoint getMeasureField getNodeIdsOfCell getCoordinateOfNode getTypeOfCell build3DUnstructuredMesh.
*/
-void MEDCouplingBasicsTest::testExtrudedMesh4()
+void MEDCouplingBasicsTest1::testExtrudedMesh4()
{
MEDCouplingUMesh *m1=build2DTargetMesh_1();
std::vector<int> cells(2); cells[0]=2; cells[1]=4;
m1->decrRef();
}
-void MEDCouplingBasicsTest::testFindCommonNodes()
+void MEDCouplingBasicsTest1::testFindCommonNodes()
{
DataArrayInt *comm,*commI;
MEDCouplingUMesh *targetMesh=build3DTargetMesh_1();
o2n->decrRef();
}
-void MEDCouplingBasicsTest::testCheckButterflyCells()
+void MEDCouplingBasicsTest1::testCheckButterflyCells()
{
std::vector<int> cells;
MEDCouplingUMesh *sourceMesh=build2DTargetMesh_1();
sourceMesh->decrRef();
}
-void MEDCouplingBasicsTest::testMergeMesh1()
+void MEDCouplingBasicsTest1::testMergeMesh1()
{
MEDCouplingUMesh *m1=build2DTargetMesh_1();
MEDCouplingUMesh *m2=build2DSourceMesh_1();
m2->decrRef();
}
-void MEDCouplingBasicsTest::testMergeMeshOnSameCoords1()
+void MEDCouplingBasicsTest1::testMergeMeshOnSameCoords1()
{
MEDCouplingUMesh *m1=build2DTargetMesh_1();
MEDCouplingUMesh *m2=build2DTargetMesh_1();
m3->decrRef();
}
-void MEDCouplingBasicsTest::testMergeField1()
+void MEDCouplingBasicsTest1::testMergeField1()
{
MEDCouplingUMesh *m1=build2DTargetMesh_1();
MEDCouplingUMesh *m2=build2DSourceMesh_1();
return true;
}
-void MEDCouplingBasicsTest::testFillFromAnalytic()
+void MEDCouplingBasicsTest1::testFillFromAnalytic()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=m->fillFromAnalytic(ON_CELLS,1,func1);
m->decrRef();
}
-void MEDCouplingBasicsTest::testFillFromAnalytic2()
+void MEDCouplingBasicsTest1::testFillFromAnalytic2()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=m->fillFromAnalytic(ON_CELLS,1,"y+x");
m->decrRef();
}
-void MEDCouplingBasicsTest::testApplyFunc()
+void MEDCouplingBasicsTest1::testApplyFunc()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=m->fillFromAnalytic(ON_NODES,2,func2);
m->decrRef();
}
-void MEDCouplingBasicsTest::testApplyFunc2()
+void MEDCouplingBasicsTest1::testApplyFunc2()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=m->fillFromAnalytic(ON_NODES,2,func2);
m->decrRef();
}
-void MEDCouplingBasicsTest::testOperationsOnFields()
+void MEDCouplingBasicsTest1::testOperationsOnFields()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=m->fillFromAnalytic(ON_NODES,1,func1);
m->decrRef();
}
-void MEDCouplingBasicsTest::testOperationsOnFields2()
+void MEDCouplingBasicsTest1::testOperationsOnFields2()
{
MEDCouplingUMesh *m=build3DSurfTargetMesh_1();
MEDCouplingFieldDouble *f1=m->fillFromAnalytic(ON_NODES,1,"x+y+z");
m->decrRef();
}
-void MEDCouplingBasicsTest::testOperationsOnFields3()
+void MEDCouplingBasicsTest1::testOperationsOnFields3()
{
MEDCouplingUMesh *m=build3DSurfTargetMesh_1();
MEDCouplingFieldDouble *f1=m->fillFromAnalytic(ON_NODES,1,"x+y+z");
/*!
* Check of LINEAR_TIME and CONST_ON_TIME_INTERVAL policies
*/
-void MEDCouplingBasicsTest::testOperationsOnFields4()
+void MEDCouplingBasicsTest1::testOperationsOnFields4()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
int nbOfCells=m->getNumberOfCells();
return true;
}
-void MEDCouplingBasicsTest::testMergeNodesOnField()
+void MEDCouplingBasicsTest1::testMergeNodesOnField()
{
double *tmp;
MEDCouplingUMesh *targetMesh=build3DTargetMeshMergeNode_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::testCheckConsecutiveCellTypes()
+void MEDCouplingBasicsTest1::testCheckConsecutiveCellTypes()
{
MEDCouplingUMesh *sourceMesh=build2DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build2DTargetMesh_1();
sourceMesh->decrRef();
}
-void MEDCouplingBasicsTest::testRearrange2ConsecutiveCellTypes()
+void MEDCouplingBasicsTest1::testRearrange2ConsecutiveCellTypes()
{
MEDCouplingUMesh *m1_1=build2DSourceMesh_1();
MEDCouplingUMesh *m2_1=build2DTargetMesh_1();
m2_2->decrRef();
}
-void MEDCouplingBasicsTest::testSplitByType()
+void MEDCouplingBasicsTest1::testSplitByType()
{
MEDCouplingUMesh *m1=build3DSurfTargetMesh_1();
std::vector<MEDCouplingUMesh *> v=m1->splitByType();
m1->decrRef();
}
-void MEDCouplingBasicsTest::testFuseUMeshesOnSameCoords()
+void MEDCouplingBasicsTest1::testFuseUMeshesOnSameCoords()
{
std::vector<const MEDCouplingUMesh *> meshes;
MEDCouplingUMesh *m2=build2DTargetMesh_1();
m5->decrRef();
}
-void MEDCouplingBasicsTest::testFuseUMeshesOnSameCoords2()
+void MEDCouplingBasicsTest1::testFuseUMeshesOnSameCoords2()
{
MEDCouplingUMesh *m2;
MEDCouplingUMesh *m1=build3DExtrudedUMesh_1(m2);
m1->decrRef();
}
-void MEDCouplingBasicsTest::testBuildOrthogonalField()
+void MEDCouplingBasicsTest1::testBuildOrthogonalField()
{
MEDCouplingUMesh *targetMesh=build3DSurfTargetMesh_1();
MEDCouplingFieldDouble *field=targetMesh->buildOrthogonalField();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::testGetCellsContainingPoint()
+void MEDCouplingBasicsTest1::testGetCellsContainingPoint()
{
MEDCouplingUMesh *targetMesh=build2DTargetMesh_1();
double pos[12]={0.,0.,0.4,0.4,0.,0.4,0.1,0.1,0.25,0.,0.65,0.};
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::testGetValueOn1()
+void MEDCouplingBasicsTest1::testGetValueOn1()
{
MEDCouplingUMesh *targetMesh=build2DTargetMesh_1();
MEDCouplingFieldDouble *fieldOnCells=MEDCouplingFieldDouble::New(ON_CELLS);
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::testCMesh0()
+void MEDCouplingBasicsTest1::testCMesh0()
{
MEDCouplingCMesh* mesh=MEDCouplingCMesh::New();
DataArrayDouble* coordsX=DataArrayDouble::New();
mesh->decrRef();
}
-void MEDCouplingBasicsTest::testScale()
+void MEDCouplingBasicsTest1::testScale()
{
MEDCouplingUMesh *mesh=build2DTargetMesh_1();
const double pos[2]={0.2,0.2};
mesh->decrRef();
}
-void MEDCouplingBasicsTest::testTryToShareSameCoords()
+void MEDCouplingBasicsTest1::testTryToShareSameCoords()
{
MEDCouplingUMesh *m1=build2DTargetMesh_1();
MEDCouplingUMesh *m2=build2DTargetMesh_1();
m2->decrRef();
}
-void MEDCouplingBasicsTest::testFindNodeOnPlane()
+void MEDCouplingBasicsTest1::testFindNodeOnPlane()
{
MEDCouplingUMesh *mesh=build3DTargetMesh_1();
std::vector<int> n;
mesh->decrRef();
}
-void MEDCouplingBasicsTest::testRenumberCells()
+void MEDCouplingBasicsTest1::testRenumberCells()
{
MEDCouplingUMesh *m=build3DSurfTargetMesh_1();
MEDCouplingUMesh *m2=build3DSurfTargetMesh_1();
m2->decrRef();
}
-void MEDCouplingBasicsTest::testChangeSpaceDimension()
+void MEDCouplingBasicsTest1::testChangeSpaceDimension()
{
MEDCouplingUMesh *m1=build3DSurfTargetMesh_1();
MEDCouplingUMesh *m2=build2DTargetMesh_1();
--- /dev/null
+// Copyright (C) 2007-2011 CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+#ifndef __MEDCOUPLINGBASICSTEST1_HXX__
+#define __MEDCOUPLINGBASICSTEST1_HXX__
+
+#include "MEDCouplingBasicsTest.hxx"
+
+#include <map>
+#include <vector>
+
+namespace ParaMEDMEM
+{
+ class DataArrayDouble;
+ class MEDCouplingUMesh;
+ class MEDCouplingFieldDouble;
+ class MEDCouplingMultiFields;
+
+ class MEDCouplingBasicsTest1 : public MEDCouplingBasicsTest
+ {
+ CPPUNIT_TEST_SUITE(MEDCouplingBasicsTest1);
+ CPPUNIT_TEST( testArray );
+ CPPUNIT_TEST( testArray2 );
+ CPPUNIT_TEST( testArray3 );
+ CPPUNIT_TEST( testMesh );
+ CPPUNIT_TEST( testMeshPointsCloud );
+ CPPUNIT_TEST( testMeshM1D );
+ CPPUNIT_TEST( testDeepCopy );
+ CPPUNIT_TEST( testRevNodal );
+ CPPUNIT_TEST( testConvertToPolyTypes );
+ CPPUNIT_TEST( testDescConn2D );
+ CPPUNIT_TEST( testDescConn3D );
+ CPPUNIT_TEST( testFindBoundaryNodes );
+ CPPUNIT_TEST( testBoundaryMesh );
+ CPPUNIT_TEST( testBuildPartOfMySelf );
+ CPPUNIT_TEST( testBuildPartOfMySelfNode );
+ CPPUNIT_TEST( testZipCoords );
+ CPPUNIT_TEST( testZipConnectivity );
+ CPPUNIT_TEST( testEqualMesh );
+ CPPUNIT_TEST( testEqualFieldDouble );
+ CPPUNIT_TEST( testNatureChecking );
+ CPPUNIT_TEST( testBuildSubMeshData );
+ CPPUNIT_TEST( testExtrudedMesh1 );
+ CPPUNIT_TEST( testExtrudedMesh2 );
+ CPPUNIT_TEST( testExtrudedMesh3 );
+ CPPUNIT_TEST( testExtrudedMesh4 );
+ CPPUNIT_TEST( testFindCommonNodes );
+ CPPUNIT_TEST( testCheckButterflyCells );
+ CPPUNIT_TEST( testMergeMesh1 );
+ CPPUNIT_TEST( testMergeMeshOnSameCoords1 );
+ CPPUNIT_TEST( testMergeField1 );
+ CPPUNIT_TEST( testFillFromAnalytic );
+ CPPUNIT_TEST( testFillFromAnalytic2 );
+ CPPUNIT_TEST( testApplyFunc );
+ CPPUNIT_TEST( testApplyFunc2 );
+ CPPUNIT_TEST( testOperationsOnFields );
+ CPPUNIT_TEST( testOperationsOnFields2 );
+ CPPUNIT_TEST( testOperationsOnFields3 );
+ CPPUNIT_TEST( testOperationsOnFields4 );
+ CPPUNIT_TEST( testMergeNodesOnField );
+ CPPUNIT_TEST( testCheckConsecutiveCellTypes );
+ CPPUNIT_TEST( testRearrange2ConsecutiveCellTypes );
+ CPPUNIT_TEST( testSplitByType );
+ CPPUNIT_TEST( testFuseUMeshesOnSameCoords );
+ CPPUNIT_TEST( testFuseUMeshesOnSameCoords2 );
+ CPPUNIT_TEST( testBuildOrthogonalField );
+ CPPUNIT_TEST( testGetCellsContainingPoint );
+ CPPUNIT_TEST( testGetValueOn1 );
+ CPPUNIT_TEST( testCMesh0 );
+ CPPUNIT_TEST( testScale );
+ CPPUNIT_TEST( testTryToShareSameCoords );
+ CPPUNIT_TEST( testFindNodeOnPlane );
+ CPPUNIT_TEST( testRenumberCells );
+ CPPUNIT_TEST( testChangeSpaceDimension );
+ CPPUNIT_TEST_SUITE_END();
+ public:
+ void testArray();
+ void testArray2();
+ void testArray3();
+ void testMesh();
+ void testMeshPointsCloud();
+ void testMeshM1D();
+ void testDeepCopy();
+ void testRevNodal();
+ void testConvertToPolyTypes();
+ void testDescConn2D();
+ void testDescConn3D();
+ void testFindBoundaryNodes();
+ void testBoundaryMesh();
+ void testBuildPartOfMySelf();
+ void testBuildPartOfMySelfNode();
+ void testZipCoords();
+ void testZipConnectivity();
+ void testEqualMesh();
+ void testEqualFieldDouble();
+ void testNatureChecking();
+ void testBuildSubMeshData();
+ void testExtrudedMesh1();
+ void testExtrudedMesh2();
+ void testExtrudedMesh3();
+ void testExtrudedMesh4();
+ void testFindCommonNodes();
+ void testCheckButterflyCells();
+ void testMergeMesh1();
+ void testMergeMeshOnSameCoords1();
+ void testMergeField1();
+ void testFillFromAnalytic();
+ void testFillFromAnalytic2();
+ void testApplyFunc();
+ void testApplyFunc2();
+ void testOperationsOnFields();
+ void testOperationsOnFields2();
+ void testOperationsOnFields3();
+ void testOperationsOnFields4();
+ void testMergeNodesOnField();
+ void testCheckConsecutiveCellTypes();
+ void testRearrange2ConsecutiveCellTypes();
+ void testSplitByType();
+ void testFuseUMeshesOnSameCoords();
+ void testFuseUMeshesOnSameCoords2();
+ void testBuildOrthogonalField();
+ void testGetCellsContainingPoint();
+ void testGetValueOn1();
+ void testCMesh0();
+ void testScale();
+ void testTryToShareSameCoords();
+ void testFindNodeOnPlane();
+ void testRenumberCells();
+ void testChangeSpaceDimension();
+ };
+}
+
+#endif
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#include "MEDCouplingBasicsTest.hxx"
+#include "MEDCouplingBasicsTest2.hxx"
#include "MEDCouplingUMesh.hxx"
#include "MEDCouplingCMesh.hxx"
#include "MEDCouplingExtrudedMesh.hxx"
using namespace ParaMEDMEM;
-void MEDCouplingBasicsTest::testGaussPointField1()
+void MEDCouplingBasicsTest2::testGaussPointField1()
{
const double _a=0.446948490915965;
const double _b=0.091576213509771;
m->decrRef();
}
-void MEDCouplingBasicsTest::testGaussPointNEField1()
+void MEDCouplingBasicsTest2::testGaussPointNEField1()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
MEDCouplingFieldDouble *f=MEDCouplingFieldDouble::New(ON_GAUSS_NE,NO_TIME);
m->decrRef();
}
-void MEDCouplingBasicsTest::testCellOrientation1()
+void MEDCouplingBasicsTest2::testCellOrientation1()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
double vec[3]={0.,0.,1.};
m->decrRef();
}
-void MEDCouplingBasicsTest::testCellOrientation2()
+void MEDCouplingBasicsTest2::testCellOrientation2()
{
MEDCouplingUMesh *m1=0;
MEDCouplingUMesh *m2=build3DExtrudedUMesh_1(m1);
/*!
* This test check polyhedron true barycenter computation.
*/
-void MEDCouplingBasicsTest::testPolyhedronBarycenter()
+void MEDCouplingBasicsTest2::testPolyhedronBarycenter()
{
int connN[]={0,3,2,1, -1, 4,5,6,7, -1, 0,4,7,3, -1, 3,7,6,2, -1, 2,6,5,1, -1, 1,5,4,0};
double coords[]={0.,0.,0., 1.,0.,0., 1.,1.,0., 0.,1.,0., 0.,0.,1., 1.,0.,1., 1.,1.,1., 0.,1.,1., 0.5, 0.5, 0.5};
meshN->decrRef();
}
-void MEDCouplingBasicsTest::testNormL12Integ1D()
+void MEDCouplingBasicsTest2::testNormL12Integ1D()
{
MEDCouplingUMesh *m1=build1DTargetMesh_3();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,NO_TIME);
m1->decrRef();
}
-void MEDCouplingBasicsTest::testAreaBary2D()
+void MEDCouplingBasicsTest2::testAreaBary2D()
{
MEDCouplingUMesh *m1=build2DTargetMesh_3();
MEDCouplingFieldDouble *f1=m1->getMeasureField(false);
/*!
* This test check polyhedron true barycenter computation 2.
*/
-void MEDCouplingBasicsTest::testAreaBary3D()
+void MEDCouplingBasicsTest2::testAreaBary3D()
{
double coords [] = { 0.241310763507 , 0.0504777305619 , 0.0682283524903 , 0.252501053866 , -0.0625176732937 , 0.137272639894 ,
0.152262663601 , 0.241816569527 , 0.133812556197 , 0.18047750211 , -0.0789949051358 , 0.339098173401 ,
meshN->decrRef();
}
-void MEDCouplingBasicsTest::testRenumberCellsForFields()
+void MEDCouplingBasicsTest2::testRenumberCellsForFields()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
MEDCouplingFieldDouble *f=MEDCouplingFieldDouble::New(ON_CELLS,NO_TIME);
m->decrRef();
}
-void MEDCouplingBasicsTest::testRenumberNodesForFields()
+void MEDCouplingBasicsTest2::testRenumberNodesForFields()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
MEDCouplingFieldDouble *f=MEDCouplingFieldDouble::New(ON_NODES,NO_TIME);
f->decrRef();
}
-void MEDCouplingBasicsTest::testConvertQuadraticCellsToLinear()
+void MEDCouplingBasicsTest2::testConvertQuadraticCellsToLinear()
{
MEDCouplingUMesh *mesh=build2DTargetMesh_3();
mesh->checkCoherency();
mesh->decrRef();
}
-void MEDCouplingBasicsTest::testCheckGeoEquivalWith()
+void MEDCouplingBasicsTest2::testCheckGeoEquivalWith()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_3();
MEDCouplingUMesh *mesh2=build2DTargetMesh_3();
mesh2->decrRef();
}
-void MEDCouplingBasicsTest::testCheckGeoEquivalWith2()
+void MEDCouplingBasicsTest2::testCheckGeoEquivalWith2()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_4();
MEDCouplingUMesh *mesh2=build2DTargetMesh_1();
mesh2->decrRef();
}
-void MEDCouplingBasicsTest::testCopyTinyStringsFromOnFields()
+void MEDCouplingBasicsTest2::testCopyTinyStringsFromOnFields()
{
MEDCouplingUMesh *m=build3DSurfTargetMesh_1();
int nbOfCells=m->getNumberOfCells();
m->decrRef();
}
-void MEDCouplingBasicsTest::testTryToShareSameCoordsPermute()
+void MEDCouplingBasicsTest2::testTryToShareSameCoordsPermute()
{
MEDCouplingUMesh *m=build3DSurfTargetMesh_1();
MEDCouplingUMesh *m2=build3DSurfTargetMesh_1();
m->decrRef();
}
-void MEDCouplingBasicsTest::testTryToShareSameCoordsPermute2()
+void MEDCouplingBasicsTest2::testTryToShareSameCoordsPermute2()
{
MEDCouplingUMesh *m1=build2DTargetMesh_4();
double targetCoords[8]={-0.3,-0.3, 0.2,-0.3, -0.3,0.2, 0.2,0.2 };
m2->decrRef();
}
-void MEDCouplingBasicsTest::testChangeUnderlyingMesh1()
+void MEDCouplingBasicsTest2::testChangeUnderlyingMesh1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_3();
MEDCouplingUMesh *mesh2=build2DTargetMesh_3();
mesh2->decrRef();
}
-void MEDCouplingBasicsTest::testGetMaxValue1()
+void MEDCouplingBasicsTest2::testGetMaxValue1()
{
MEDCouplingUMesh *m=build3DSurfTargetMesh_1();
int nbOfCells=m->getNumberOfCells();
f->decrRef();
}
-void MEDCouplingBasicsTest::testSubstractInPlaceDM1()
+void MEDCouplingBasicsTest2::testSubstractInPlaceDM1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_3();
MEDCouplingUMesh *mesh2=build2DTargetMesh_3();
mesh2->decrRef();
}
-void MEDCouplingBasicsTest::testDotCrossProduct1()
+void MEDCouplingBasicsTest2::testDotCrossProduct1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_3();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,ONE_TIME);
mesh1->decrRef();
}
-void MEDCouplingBasicsTest::testMinMaxFields1()
+void MEDCouplingBasicsTest2::testMinMaxFields1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_3();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,ONE_TIME);
mesh1->decrRef();
}
-void MEDCouplingBasicsTest::testApplyLin1()
+void MEDCouplingBasicsTest2::testApplyLin1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_3();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,LINEAR_TIME);
f1->decrRef();
}
-void MEDCouplingBasicsTest::testGetIdsInRange1()
+void MEDCouplingBasicsTest2::testGetIdsInRange1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_3();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,ONE_TIME);
mesh1->decrRef();
}
-void MEDCouplingBasicsTest::testBuildSubPart1()
+void MEDCouplingBasicsTest2::testBuildSubPart1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,ONE_TIME);
mesh1->decrRef();
}
-void MEDCouplingBasicsTest::testDoublyContractedProduct1()
+void MEDCouplingBasicsTest2::testDoublyContractedProduct1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,NO_TIME);
f1->decrRef();
}
-void MEDCouplingBasicsTest::testDeterminant1()
+void MEDCouplingBasicsTest2::testDeterminant1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,CONST_ON_TIME_INTERVAL);
f1->decrRef();
}
-void MEDCouplingBasicsTest::testEigenValues1()
+void MEDCouplingBasicsTest2::testEigenValues1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,NO_TIME);
f1->decrRef();
}
-void MEDCouplingBasicsTest::testEigenVectors1()
+void MEDCouplingBasicsTest2::testEigenVectors1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,NO_TIME);
f1->decrRef();
}
-void MEDCouplingBasicsTest::testInverse1()
+void MEDCouplingBasicsTest2::testInverse1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,NO_TIME);
f1->decrRef();
}
-void MEDCouplingBasicsTest::testTrace1()
+void MEDCouplingBasicsTest2::testTrace1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,NO_TIME);
f1->decrRef();
}
-void MEDCouplingBasicsTest::testDeviator1()
+void MEDCouplingBasicsTest2::testDeviator1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,NO_TIME);
f1->decrRef();
}
-void MEDCouplingBasicsTest::testMagnitude1()
+void MEDCouplingBasicsTest2::testMagnitude1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,NO_TIME);
f1->decrRef();
}
-void MEDCouplingBasicsTest::testMaxPerTuple1()
+void MEDCouplingBasicsTest2::testMaxPerTuple1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,NO_TIME);
f1->decrRef();
}
-void MEDCouplingBasicsTest::testChangeNbOfComponents()
+void MEDCouplingBasicsTest2::testChangeNbOfComponents()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,NO_TIME);
f1->decrRef();
}
-void MEDCouplingBasicsTest::testSortPerTuple1()
+void MEDCouplingBasicsTest2::testSortPerTuple1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,NO_TIME);
f1->decrRef();
}
-void MEDCouplingBasicsTest::testIsEqualWithoutConsideringStr1()
+void MEDCouplingBasicsTest2::testIsEqualWithoutConsideringStr1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_1();
MEDCouplingUMesh *mesh2=build2DTargetMesh_1();
mesh2->decrRef();
}
-void MEDCouplingBasicsTest::testGetNodeIdsOfCell1()
+void MEDCouplingBasicsTest2::testGetNodeIdsOfCell1()
{
MEDCouplingUMesh *mesh1=build2DTargetMesh_1();
std::vector<int> nodeIds;
mesh1->decrRef();
}
-void MEDCouplingBasicsTest::testGetEdgeRatioField1()
+void MEDCouplingBasicsTest2::testGetEdgeRatioField1()
{
MEDCouplingUMesh *m1=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=m1->getEdgeRatioField();
m1->decrRef();
}
-void MEDCouplingBasicsTest::testFillFromAnalytic3()
+void MEDCouplingBasicsTest2::testFillFromAnalytic3()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,ONE_TIME);
f1->decrRef();
}
-void MEDCouplingBasicsTest::testFieldDoubleOpEqual1()
+void MEDCouplingBasicsTest2::testFieldDoubleOpEqual1()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,ONE_TIME);
m->decrRef();
}
-void MEDCouplingBasicsTest::testAreaBary3D2()
+void MEDCouplingBasicsTest2::testAreaBary3D2()
{
const double coordsForHexa8[24]={
-75.45749305371, 180.95495078401, 39.515472018008,
--- /dev/null
+// Copyright (C) 2007-2011 CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+#ifndef __MEDCOUPLINGBASICSTEST2_HXX__
+#define __MEDCOUPLINGBASICSTEST2_HXX__
+
+#include "MEDCouplingBasicsTest.hxx"
+
+#include <map>
+#include <vector>
+
+namespace ParaMEDMEM
+{
+ class DataArrayDouble;
+ class MEDCouplingUMesh;
+ class MEDCouplingFieldDouble;
+ class MEDCouplingMultiFields;
+
+ class MEDCouplingBasicsTest2 : public MEDCouplingBasicsTest
+ {
+ CPPUNIT_TEST_SUITE(MEDCouplingBasicsTest2);
+ CPPUNIT_TEST( testGaussPointField1 );
+ CPPUNIT_TEST( testGaussPointNEField1 );
+ CPPUNIT_TEST( testCellOrientation1 );
+ CPPUNIT_TEST( testCellOrientation2 );
+ CPPUNIT_TEST( testPolyhedronBarycenter );
+ CPPUNIT_TEST( testNormL12Integ1D );
+ CPPUNIT_TEST( testAreaBary2D );
+ CPPUNIT_TEST( testAreaBary3D );
+ CPPUNIT_TEST( testRenumberCellsForFields );
+ CPPUNIT_TEST( testRenumberNodesForFields );
+ CPPUNIT_TEST( testConvertQuadraticCellsToLinear );
+ CPPUNIT_TEST( testCheckGeoEquivalWith );
+ CPPUNIT_TEST( testCheckGeoEquivalWith2 );
+ CPPUNIT_TEST( testCopyTinyStringsFromOnFields );
+ CPPUNIT_TEST( testTryToShareSameCoordsPermute );
+ CPPUNIT_TEST( testTryToShareSameCoordsPermute2 );
+ CPPUNIT_TEST( testChangeUnderlyingMesh1 );
+ CPPUNIT_TEST( testGetMaxValue1 );
+ CPPUNIT_TEST( testSubstractInPlaceDM1 );
+ CPPUNIT_TEST( testDotCrossProduct1 );
+ CPPUNIT_TEST( testMinMaxFields1 );
+ CPPUNIT_TEST( testApplyLin1 );
+ CPPUNIT_TEST( testGetIdsInRange1 );
+ CPPUNIT_TEST( testBuildSubPart1 );
+ CPPUNIT_TEST( testDoublyContractedProduct1 );
+ CPPUNIT_TEST( testDeterminant1 );
+ CPPUNIT_TEST( testEigenValues1 );
+ CPPUNIT_TEST( testEigenVectors1 );
+ CPPUNIT_TEST( testInverse1 );
+ CPPUNIT_TEST( testTrace1 );
+ CPPUNIT_TEST( testDeviator1 );
+ CPPUNIT_TEST( testMagnitude1 );
+ CPPUNIT_TEST( testMaxPerTuple1 );
+ CPPUNIT_TEST( testChangeNbOfComponents );
+ CPPUNIT_TEST( testSortPerTuple1 );
+ CPPUNIT_TEST( testIsEqualWithoutConsideringStr1 );
+ CPPUNIT_TEST( testGetNodeIdsOfCell1 );
+ CPPUNIT_TEST( testGetEdgeRatioField1 );
+ CPPUNIT_TEST( testFillFromAnalytic3 );
+ CPPUNIT_TEST( testFieldDoubleOpEqual1 );
+ CPPUNIT_TEST( testAreaBary3D2 );
+ CPPUNIT_TEST_SUITE_END();
+ public:
+ void testGaussPointField1();
+ void testGaussPointNEField1();
+ void testCellOrientation1();
+ void testCellOrientation2();
+ void testPolyhedronBarycenter();
+ void testNormL12Integ1D();
+ void testAreaBary2D();
+ void testAreaBary3D();
+ void testRenumberCellsForFields();
+ void testRenumberNodesForFields();
+ void testConvertQuadraticCellsToLinear();
+ void testCheckGeoEquivalWith();
+ void testCheckGeoEquivalWith2();
+ void testCopyTinyStringsFromOnFields();
+ void testTryToShareSameCoordsPermute();
+ void testTryToShareSameCoordsPermute2();
+ void testChangeUnderlyingMesh1();
+ void testGetMaxValue1();
+ void testSubstractInPlaceDM1();
+ void testDotCrossProduct1();
+ void testMinMaxFields1();
+ void testApplyLin1();
+ void testGetIdsInRange1();
+ void testBuildSubPart1();
+ void testDoublyContractedProduct1();
+ void testDeterminant1();
+ void testEigenValues1();
+ void testEigenVectors1();
+ void testInverse1();
+ void testTrace1();
+ void testDeviator1();
+ void testMagnitude1();
+ void testMaxPerTuple1();
+ void testChangeNbOfComponents();
+ void testSortPerTuple1();
+ void testIsEqualWithoutConsideringStr1();
+ void testGetNodeIdsOfCell1();
+ void testGetEdgeRatioField1();
+ void testFillFromAnalytic3();
+ void testFieldDoubleOpEqual1();
+ void testAreaBary3D2();
+ };
+}
+
+#endif
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#include "MEDCouplingBasicsTest.hxx"
+#include "MEDCouplingBasicsTest3.hxx"
#include "MEDCouplingUMesh.hxx"
#include "MEDCouplingCMesh.hxx"
#include "MEDCouplingExtrudedMesh.hxx"
using namespace ParaMEDMEM;
-void MEDCouplingBasicsTest::testGetMeasureFieldCMesh1()
+void MEDCouplingBasicsTest3::testGetMeasureFieldCMesh1()
{
MEDCouplingCMesh *m=MEDCouplingCMesh::New();
DataArrayDouble *da=DataArrayDouble::New();
m->decrRef();
}
-void MEDCouplingBasicsTest::testFieldDoubleZipCoords1()
+void MEDCouplingBasicsTest3::testFieldDoubleZipCoords1()
{
MEDCouplingUMesh *m=build2DTargetMeshMergeNode_1();
MEDCouplingFieldDouble *f=m->fillFromAnalytic(ON_NODES,2,"x*2.");
m->decrRef();
}
-void MEDCouplingBasicsTest::testFieldDoubleZipConnectivity1()
+void MEDCouplingBasicsTest3::testFieldDoubleZipConnectivity1()
{
MEDCouplingUMesh *m1=build2DTargetMesh_1();
MEDCouplingUMesh *m2=build2DTargetMesh_1();
m6->decrRef();
}
-void MEDCouplingBasicsTest::testDaDoubleRenumber1()
+void MEDCouplingBasicsTest3::testDaDoubleRenumber1()
{
DataArrayDouble *a=DataArrayDouble::New();
a->alloc(7,2);
d->decrRef();
}
-void MEDCouplingBasicsTest::testDaDoubleRenumberAndReduce1()
+void MEDCouplingBasicsTest3::testDaDoubleRenumberAndReduce1()
{
DataArrayDouble *a=DataArrayDouble::New();
a->alloc(7,2);
d->decrRef();
}
-void MEDCouplingBasicsTest::testDaDoubleRenumberInPlace1()
+void MEDCouplingBasicsTest3::testDaDoubleRenumberInPlace1()
{
DataArrayDouble *a=DataArrayDouble::New();
a->alloc(7,2);
c->decrRef();
}
-void MEDCouplingBasicsTest::testDaDoubleRenumberR1()
+void MEDCouplingBasicsTest3::testDaDoubleRenumberR1()
{
DataArrayDouble *a=DataArrayDouble::New();
a->alloc(7,2);
d->decrRef();
}
-void MEDCouplingBasicsTest::testDaDoubleRenumberInPlaceR1()
+void MEDCouplingBasicsTest3::testDaDoubleRenumberInPlaceR1()
{
DataArrayDouble *a=DataArrayDouble::New();
a->alloc(7,2);
c->decrRef();
}
-void MEDCouplingBasicsTest::testDaDoubleSelectByTupleId1()
+void MEDCouplingBasicsTest3::testDaDoubleSelectByTupleId1()
{
DataArrayDouble *a=DataArrayDouble::New();
a->alloc(7,2);
d->decrRef();
}
-void MEDCouplingBasicsTest::testDaDoubleGetMinMaxValues1()
+void MEDCouplingBasicsTest3::testDaDoubleGetMinMaxValues1()
{
DataArrayDouble *a=DataArrayDouble::New();
a->alloc(9,1);
a->decrRef();
}
-void MEDCouplingBasicsTest::testFieldDoubleGetMinMaxValues2()
+void MEDCouplingBasicsTest3::testFieldDoubleGetMinMaxValues2()
{
MEDCouplingUMesh *m1=0;
MEDCouplingUMesh *m2=build3DExtrudedUMesh_1(m1);
m2->decrRef();
}
-void MEDCouplingBasicsTest::testBuildUnstructuredCMesh1()
+void MEDCouplingBasicsTest3::testBuildUnstructuredCMesh1()
{
MEDCouplingCMesh *m=MEDCouplingCMesh::New();
DataArrayDouble *da=DataArrayDouble::New();
m->decrRef();
}
-void MEDCouplingBasicsTest::testDataArrayIntInvertO2NNO21()
+void MEDCouplingBasicsTest3::testDataArrayIntInvertO2NNO21()
{
const int arr1[6]={2,0,4,1,5,3};
DataArrayInt *da=DataArrayInt::New();
da->decrRef();
}
-void MEDCouplingBasicsTest::testKeepSetSelectedComponent1()
+void MEDCouplingBasicsTest3::testKeepSetSelectedComponent1()
{
const double arr1[20]={1.,2.,3.,4., 11.,12.,13.,14., 21.,22.,23.,24., 31.,32.,33.,34., 41.,42.,43.,44.};
DataArrayDouble *a1=DataArrayDouble::New();
a1->decrRef();
}
-void MEDCouplingBasicsTest::testKeepSetSelectedComponent2()
+void MEDCouplingBasicsTest3::testKeepSetSelectedComponent2()
{
MEDCouplingUMesh *m1=build2DTargetMesh_1();
const double arr1[20]={1.,2.,3.,4., 11.,12.,13.,14., 21.,22.,23.,24., 31.,32.,33.,34., 41.,42.,43.,44.};
m1->decrRef();
}
-void MEDCouplingBasicsTest::testDAIGetIdsEqual1()
+void MEDCouplingBasicsTest3::testDAIGetIdsEqual1()
{
const int tab1[7]={5,-2,-4,-2,3,2,-2};
DataArrayInt *da=DataArrayInt::New();
da->decrRef();
}
-void MEDCouplingBasicsTest::testDAIGetIdsEqualList1()
+void MEDCouplingBasicsTest3::testDAIGetIdsEqualList1()
{
const int tab1[7]={5,-2,-4,-2,3,2,-2};
DataArrayInt *da=DataArrayInt::New();
da->decrRef();
}
-void MEDCouplingBasicsTest::testDAFromNoInterlace1()
+void MEDCouplingBasicsTest3::testDAFromNoInterlace1()
{
const int tab1[15]={1,11,21,31,41,2,12,22,32,42,3,13,23,33,43};
DataArrayInt *da=DataArrayInt::New();
da->decrRef();
}
-void MEDCouplingBasicsTest::testDAToNoInterlace1()
+void MEDCouplingBasicsTest3::testDAToNoInterlace1()
{
const int tab1[15]={1,2,3,11,12,13,21,22,23,31,32,33,41,42,43};
DataArrayInt *da=DataArrayInt::New();
da->decrRef();
}
-void MEDCouplingBasicsTest::testDAIsUniform1()
+void MEDCouplingBasicsTest3::testDAIsUniform1()
{
const int tab1[5]={1,1,1,1,1};
DataArrayInt *da=DataArrayInt::New();
da->decrRef();
}
-void MEDCouplingBasicsTest::testDADFromPolarToCart1()
+void MEDCouplingBasicsTest3::testDADFromPolarToCart1()
{
const double tab1[4]={2.,0.2,2.5,0.7};
DataArrayDouble *da=DataArrayDouble::New();
da->decrRef();
}
-void MEDCouplingBasicsTest::testDADFromCylToCart1()
+void MEDCouplingBasicsTest3::testDADFromCylToCart1()
{
const double tab1[6]={2.,0.2,4.,2.5,0.7,9.};
DataArrayDouble *da=DataArrayDouble::New();
da->decrRef();
}
-void MEDCouplingBasicsTest::testDADFromSpherToCart1()
+void MEDCouplingBasicsTest3::testDADFromSpherToCart1()
{
const double tab1[6]={2.,0.2,0.3,2.5,0.7,0.8};
DataArrayDouble *da=DataArrayDouble::New();
da->decrRef();
}
-void MEDCouplingBasicsTest::testUnPolyze1()
+void MEDCouplingBasicsTest3::testUnPolyze1()
{
const int elts[8]={0,1,2,3,4,5,6,7};
std::vector<int> eltsV(elts,elts+8);
mesh2->decrRef();
}
-void MEDCouplingBasicsTest::testConvertDegeneratedCells1()
+void MEDCouplingBasicsTest3::testConvertDegeneratedCells1()
{
MEDCouplingUMesh *mesh=build3DTargetMesh_1();
int conn[32]={0,1,3,3,9,10,12,12, 0,1,3,4,9,9,9,9, 1,1,1,1,10,12,9,10, 10,11,12,9,1,1,1,1};
mesh->decrRef();
}
-void MEDCouplingBasicsTest::testGetNodeIdsNearPoints1()
+void MEDCouplingBasicsTest3::testGetNodeIdsNearPoints1()
{
MEDCouplingUMesh *mesh=build2DTargetMesh_1();
DataArrayDouble *coords=mesh->getCoords();
mesh->decrRef();
}
-void MEDCouplingBasicsTest::testFieldCopyTinyAttrFrom1()
+void MEDCouplingBasicsTest3::testFieldCopyTinyAttrFrom1()
{
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,ONE_TIME);
f1->setName("f1");
/*!
* 1D -> 2D extrusion with rotation
*/
-void MEDCouplingBasicsTest::testExtrudedMesh5()
+void MEDCouplingBasicsTest3::testExtrudedMesh5()
{
const double coo1[4]={0.,1.,2.,3.5};
DataArrayDouble *a=DataArrayDouble::New();
/*!
* 1D -> 2D extrusion without rotation
*/
-void MEDCouplingBasicsTest::testExtrudedMesh6()
+void MEDCouplingBasicsTest3::testExtrudedMesh6()
{
const double coo1[4]={0.,1.,2.,3.5};
DataArrayDouble *a=DataArrayDouble::New();
/*!
* 2D -> 3D extrusion with rotation
*/
-void MEDCouplingBasicsTest::testExtrudedMesh7()
+void MEDCouplingBasicsTest3::testExtrudedMesh7()
{
const double coo1[4]={0.,1.,2.,3.5};
DataArrayDouble *a=DataArrayDouble::New();
a->decrRef();
}
-void MEDCouplingBasicsTest::testSimplexize1()
+void MEDCouplingBasicsTest3::testSimplexize1()
{
MEDCouplingUMesh *m=build3DSurfTargetMesh_1();
std::vector<int> v(1);
m->decrRef();
}
-void MEDCouplingBasicsTest::testSimplexize2()
+void MEDCouplingBasicsTest3::testSimplexize2()
{
MEDCouplingUMesh *m=build3DSurfTargetMesh_1();
std::vector<int> v(1);
m->decrRef();
}
-void MEDCouplingBasicsTest::testDAMeld1()
+void MEDCouplingBasicsTest3::testDAMeld1()
{
DataArrayDouble *da1=DataArrayDouble::New();
da1->alloc(7,2);
da3->decrRef();
}
-void MEDCouplingBasicsTest::testFieldMeld1()
+void MEDCouplingBasicsTest3::testFieldMeld1()
{
MEDCouplingUMesh *m=build3DSurfTargetMesh_1();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,ONE_TIME);
m->decrRef();
}
-void MEDCouplingBasicsTest::testMergeNodes2()
+void MEDCouplingBasicsTest3::testMergeNodes2()
{
MEDCouplingUMesh *m1=build2DTargetMesh_1();
MEDCouplingUMesh *m2=build2DTargetMesh_1();
m2->decrRef();
}
-void MEDCouplingBasicsTest::testMergeField2()
+void MEDCouplingBasicsTest3::testMergeField2()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,ONE_TIME);
m->decrRef();
}
-void MEDCouplingBasicsTest::testDAIBuildComplement1()
+void MEDCouplingBasicsTest3::testDAIBuildComplement1()
{
DataArrayInt *a=DataArrayInt::New();
const int tab[4]={3,1,7,8};
a->decrRef();
}
-void MEDCouplingBasicsTest::testDAIBuildUnion1()
+void MEDCouplingBasicsTest3::testDAIBuildUnion1()
{
DataArrayInt *a=DataArrayInt::New();
const int tab1[4]={3,1,7,8};
a->decrRef();
}
-void MEDCouplingBasicsTest::testDAIBuildIntersection1()
+void MEDCouplingBasicsTest3::testDAIBuildIntersection1()
{
DataArrayInt *a=DataArrayInt::New();
const int tab1[4]={3,1,7,8};
a->decrRef();
}
-void MEDCouplingBasicsTest::testDAIDeltaShiftIndex1()
+void MEDCouplingBasicsTest3::testDAIDeltaShiftIndex1()
{
DataArrayInt *a=DataArrayInt::New();
const int tab[7]={1,3,6,7,7,9,15};
a->decrRef();
}
-void MEDCouplingBasicsTest::testDaDoubleSelectByTupleIdSafe1()
+void MEDCouplingBasicsTest3::testDaDoubleSelectByTupleIdSafe1()
{
DataArrayDouble *a=DataArrayDouble::New();
a->alloc(7,2);
d->decrRef();
}
-void MEDCouplingBasicsTest::testAreCellsIncludedIn1()
+void MEDCouplingBasicsTest3::testAreCellsIncludedIn1()
{
MEDCouplingUMesh *m=build3DSurfTargetMesh_1();
const int pt[2]={1,3};
m->decrRef();
}
-void MEDCouplingBasicsTest::testDAIBuildSubstraction1()
+void MEDCouplingBasicsTest3::testDAIBuildSubstraction1()
{
DataArrayInt *a=DataArrayInt::New();
const int aa[]={2,3,6,8,9};
a->decrRef();
}
-void MEDCouplingBasicsTest::testBuildOrthogonalField2()
+void MEDCouplingBasicsTest3::testBuildOrthogonalField2()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
DataArrayInt *d1=DataArrayInt::New();
m->decrRef();
}
-void MEDCouplingBasicsTest::testUMInsertNextCell1()
+void MEDCouplingBasicsTest3::testUMInsertNextCell1()
{
double targetCoords[18]={-0.3,-0.3, 0.2,-0.3, 0.7,-0.3, -0.3,0.2, 0.2,0.2, 0.7,0.2, -0.3,0.7, 0.2,0.7, 0.7,0.7 };
int targetConn[18]={0,3,4,1, 1,4,2, 4,5,2, 6,7,4,3, 7,8,5,4};
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::testFieldOperatorDivDiffComp1()
+void MEDCouplingBasicsTest3::testFieldOperatorDivDiffComp1()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
DataArrayInt *d1=DataArrayInt::New();
m->decrRef();
}
-void MEDCouplingBasicsTest::testDARearrange1()
+void MEDCouplingBasicsTest3::testDARearrange1()
{
DataArrayInt *da1=DataArrayInt::New();
da1->alloc(12,1);
da2->decrRef();
}
-void MEDCouplingBasicsTest::testGetDifferentValues1()
+void MEDCouplingBasicsTest3::testGetDifferentValues1()
{
DataArrayInt *da1=DataArrayInt::New();
const int arr[12]={1,2,3,2,2,3,5,1,5,5,2,2};
da1->decrRef();
}
-void MEDCouplingBasicsTest::testDAIBuildPermutationArr1()
+void MEDCouplingBasicsTest3::testDAIBuildPermutationArr1()
{
DataArrayInt *a=DataArrayInt::New();
const int vala[5]={4,5,6,7,8};
b->decrRef();
}
-void MEDCouplingBasicsTest::testAreCellsIncludedIn2()
+void MEDCouplingBasicsTest3::testAreCellsIncludedIn2()
{
const char myName[]="Vitoo";
MEDCouplingUMesh *m=build3DSurfTargetMesh_1();
tmp->decrRef();
}
-void MEDCouplingBasicsTest::testUMeshGetPartBarycenterAndOwner1()
+void MEDCouplingBasicsTest3::testUMeshGetPartBarycenterAndOwner1()
{
MEDCouplingUMesh *m1=build2DTargetMesh_1();
const int part[3]={1,0,4};
m1->decrRef();
}
-void MEDCouplingBasicsTest::testUMeshGetPartMeasureField1()
+void MEDCouplingBasicsTest3::testUMeshGetPartMeasureField1()
{
MEDCouplingUMesh *m1=build2DTargetMesh_1();
const int part[3]={1,0,4};
m1->decrRef();
}
-void MEDCouplingBasicsTest::testUMeshBuildPartOrthogonalField1()
+void MEDCouplingBasicsTest3::testUMeshBuildPartOrthogonalField1()
{
MEDCouplingUMesh *m1=build2DTargetMesh_1();
m1->changeSpaceDimension(3);
m1->decrRef();
}
-void MEDCouplingBasicsTest::testUMeshGetTypesOfPart1()
+void MEDCouplingBasicsTest3::testUMeshGetTypesOfPart1()
{
MEDCouplingUMesh *m1=build2DTargetMesh_1();
const int part1[]={0,3,4};
m1->decrRef();
}
-void MEDCouplingBasicsTest::testUMeshKeepCellIdsByType1()
+void MEDCouplingBasicsTest3::testUMeshKeepCellIdsByType1()
{
MEDCouplingUMesh *m1=build2DTargetMesh_1();
const int part1[3]={0,3,4};
m1->decrRef();
}
-void MEDCouplingBasicsTest::testDAIAggregateMulti1()
+void MEDCouplingBasicsTest3::testDAIAggregateMulti1()
{
DataArrayInt *a=DataArrayInt::New();
a->setName("aa");
b->decrRef();
}
-void MEDCouplingBasicsTest::testMergeUMeshes2()
+void MEDCouplingBasicsTest3::testMergeUMeshes2()
{
MEDCouplingUMesh *m1=build3DSurfTargetMesh_1();
MEDCouplingUMesh *m2=build3DSurfTargetMesh_1();
m3_2->decrRef();
}
-void MEDCouplingBasicsTest::testBuild0DMeshFromCoords1()
+void MEDCouplingBasicsTest3::testBuild0DMeshFromCoords1()
{
const double sourceCoords[12]={-0.3,-0.3,0., 0.7,-0.3,0., -0.3,0.7,0., 0.7,0.7,0.};
DataArrayDouble *coo=DataArrayDouble::New();
--- /dev/null
+// Copyright (C) 2007-2011 CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+#ifndef __MEDCOUPLINGBASICSTEST3_HXX__
+#define __MEDCOUPLINGBASICSTEST3_HXX__
+
+#include "MEDCouplingBasicsTest.hxx"
+
+#include <map>
+#include <vector>
+
+namespace ParaMEDMEM
+{
+ class DataArrayDouble;
+ class MEDCouplingUMesh;
+ class MEDCouplingFieldDouble;
+ class MEDCouplingMultiFields;
+
+ class MEDCouplingBasicsTest3 : public MEDCouplingBasicsTest
+ {
+ CPPUNIT_TEST_SUITE(MEDCouplingBasicsTest3);
+ CPPUNIT_TEST( testGetMeasureFieldCMesh1 );
+ CPPUNIT_TEST( testFieldDoubleZipCoords1 );
+ CPPUNIT_TEST( testFieldDoubleZipConnectivity1 );
+ CPPUNIT_TEST( testDaDoubleRenumber1 );
+ CPPUNIT_TEST( testDaDoubleRenumberAndReduce1 );
+ CPPUNIT_TEST( testDaDoubleRenumberInPlace1 );
+ CPPUNIT_TEST( testDaDoubleSelectByTupleId1 );
+ CPPUNIT_TEST( testDaDoubleRenumberR1 );
+ CPPUNIT_TEST( testDaDoubleRenumberInPlaceR1 );
+ CPPUNIT_TEST( testDaDoubleGetMinMaxValues1 );
+ CPPUNIT_TEST( testFieldDoubleGetMinMaxValues2 );
+ CPPUNIT_TEST( testBuildUnstructuredCMesh1 );
+ CPPUNIT_TEST( testDataArrayIntInvertO2NNO21 );
+ CPPUNIT_TEST( testKeepSetSelectedComponent1 );
+ CPPUNIT_TEST( testKeepSetSelectedComponent2 );
+ CPPUNIT_TEST( testDAIGetIdsEqual1 );
+ CPPUNIT_TEST( testDAIGetIdsEqualList1 );
+ CPPUNIT_TEST( testDAFromNoInterlace1 );
+ CPPUNIT_TEST( testDAToNoInterlace1 );
+ CPPUNIT_TEST( testDAIsUniform1 );
+ CPPUNIT_TEST( testDADFromPolarToCart1 );
+ CPPUNIT_TEST( testDADFromCylToCart1 );
+ CPPUNIT_TEST( testDADFromSpherToCart1 );
+ CPPUNIT_TEST( testUnPolyze1 );
+ CPPUNIT_TEST( testConvertDegeneratedCells1 );
+ CPPUNIT_TEST( testGetNodeIdsNearPoints1 );
+ CPPUNIT_TEST( testFieldCopyTinyAttrFrom1 );
+ CPPUNIT_TEST( testExtrudedMesh5 );
+ CPPUNIT_TEST( testExtrudedMesh6 );
+ CPPUNIT_TEST( testExtrudedMesh7 );
+ CPPUNIT_TEST( testSimplexize1 );
+ CPPUNIT_TEST( testSimplexize2 );
+ CPPUNIT_TEST( testDAMeld1 );
+ CPPUNIT_TEST( testFieldMeld1 );
+ CPPUNIT_TEST( testMergeNodes2 );
+ CPPUNIT_TEST( testMergeField2 );
+ CPPUNIT_TEST( testDAIBuildComplement1 );
+ CPPUNIT_TEST( testDAIBuildUnion1 );
+ CPPUNIT_TEST( testDAIBuildIntersection1 );
+ CPPUNIT_TEST( testDAIDeltaShiftIndex1 );
+ CPPUNIT_TEST( testDaDoubleSelectByTupleIdSafe1 );
+ CPPUNIT_TEST( testAreCellsIncludedIn1 );
+ CPPUNIT_TEST( testDAIBuildSubstraction1 );
+ CPPUNIT_TEST( testBuildOrthogonalField2 );
+ CPPUNIT_TEST( testUMInsertNextCell1 );
+ CPPUNIT_TEST( testFieldOperatorDivDiffComp1 );
+ CPPUNIT_TEST( testDARearrange1 );
+ CPPUNIT_TEST( testGetDifferentValues1 );
+ CPPUNIT_TEST( testDAIBuildPermutationArr1 );
+ CPPUNIT_TEST( testAreCellsIncludedIn2 );
+ CPPUNIT_TEST( testUMeshGetPartBarycenterAndOwner1 );
+ CPPUNIT_TEST( testUMeshGetPartMeasureField1 );
+ CPPUNIT_TEST( testUMeshBuildPartOrthogonalField1 );
+ CPPUNIT_TEST( testUMeshGetTypesOfPart1 );
+ CPPUNIT_TEST( testUMeshKeepCellIdsByType1 );
+ CPPUNIT_TEST( testDAIAggregateMulti1 );
+ CPPUNIT_TEST( testMergeUMeshes2 );
+ CPPUNIT_TEST( testBuild0DMeshFromCoords1 );
+ CPPUNIT_TEST_SUITE_END();
+ public:
+ void testGetMeasureFieldCMesh1();
+ void testFieldDoubleZipCoords1();
+ void testFieldDoubleZipConnectivity1();
+ void testDaDoubleRenumber1();
+ void testDaDoubleRenumberAndReduce1();
+ void testDaDoubleRenumberInPlace1();
+ void testDaDoubleSelectByTupleId1();
+ void testDaDoubleRenumberR1();
+ void testDaDoubleRenumberInPlaceR1();
+ void testDaDoubleGetMinMaxValues1();
+ void testFieldDoubleGetMinMaxValues2();
+ void testBuildUnstructuredCMesh1();
+ void testDataArrayIntInvertO2NNO21();
+ void testKeepSetSelectedComponent1();
+ void testKeepSetSelectedComponent2();
+ void testDAIGetIdsEqual1();
+ void testDAIGetIdsEqualList1();
+ void testDAFromNoInterlace1();
+ void testDAToNoInterlace1();
+ void testDAIsUniform1();
+ void testDADFromPolarToCart1();
+ void testDADFromCylToCart1();
+ void testDADFromSpherToCart1();
+ void testUnPolyze1();
+ void testConvertDegeneratedCells1();
+ void testGetNodeIdsNearPoints1();
+ void testFieldCopyTinyAttrFrom1();
+ void testExtrudedMesh5();
+ void testExtrudedMesh6();
+ void testExtrudedMesh7();
+ void testSimplexize1();
+ void testSimplexize2();
+ void testDAMeld1();
+ void testFieldMeld1();
+ void testMergeNodes2();
+ void testMergeField2();
+ void testDAIBuildComplement1();
+ void testDAIBuildUnion1();
+ void testDAIBuildIntersection1();
+ void testDAIDeltaShiftIndex1();
+ void testDaDoubleSelectByTupleIdSafe1();
+ void testAreCellsIncludedIn1();
+ void testDAIBuildSubstraction1();
+ void testBuildOrthogonalField2();
+ void testUMInsertNextCell1();
+ void testFieldOperatorDivDiffComp1();
+ void testDARearrange1();
+ void testGetDifferentValues1();
+ void testDAIBuildPermutationArr1();
+ void testAreCellsIncludedIn2();
+ void testUMeshGetPartBarycenterAndOwner1();
+ void testUMeshGetPartMeasureField1();
+ void testUMeshBuildPartOrthogonalField1();
+ void testUMeshGetTypesOfPart1();
+ void testUMeshKeepCellIdsByType1();
+ void testDAIAggregateMulti1();
+ void testMergeUMeshes2();
+ void testBuild0DMeshFromCoords1();
+ };
+}
+
+#endif
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#include "MEDCouplingBasicsTest.hxx"
+#include "MEDCouplingBasicsTest4.hxx"
#include "MEDCouplingUMesh.hxx"
#include "MEDCouplingCMesh.hxx"
#include "MEDCouplingExtrudedMesh.hxx"
using namespace ParaMEDMEM;
-void MEDCouplingBasicsTest::testDescriptionInMeshTimeUnit1()
+void MEDCouplingBasicsTest4::testDescriptionInMeshTimeUnit1()
{
static const char text1[]="totoTTEDD";
MEDCouplingUMesh *m=build2DTargetMesh_1();
m->decrRef();
}
-void MEDCouplingBasicsTest::testMultiFields1()
+void MEDCouplingBasicsTest4::testMultiFields1()
{
MEDCouplingMultiFields *mfs=buildMultiFields_1();
std::vector<MEDCouplingMesh *> ms=mfs->getMeshes();
mfs->decrRef();
}
-void MEDCouplingBasicsTest::testFieldOverTime1()
+void MEDCouplingBasicsTest4::testFieldOverTime1()
{
std::vector<MEDCouplingFieldDouble *> fs=buildMultiFields_2();
CPPUNIT_ASSERT_THROW(MEDCouplingFieldOverTime::New(fs),INTERP_KERNEL::Exception);
fot->decrRef();
}
-void MEDCouplingBasicsTest::testDAICheckAndPreparePermutation1()
+void MEDCouplingBasicsTest4::testDAICheckAndPreparePermutation1()
{
const int vals1[]={9,10,0,6,4,11,3,7};
const int expect1[]={5,6,0,3,2,7,1,4};
da->decrRef();
}
-void MEDCouplingBasicsTest::testDAIChangeSurjectiveFormat1()
+void MEDCouplingBasicsTest4::testDAIChangeSurjectiveFormat1()
{
const int vals1[8]={0,3,2,3,2,2,1,2};
const int expected1[5]={0,1,2,6,8};
da->decrRef();
}
-void MEDCouplingBasicsTest::testUMeshGetCellIdsLyingOnNodes1()
+void MEDCouplingBasicsTest4::testUMeshGetCellIdsLyingOnNodes1()
{
MEDCouplingUMesh *m=build3DSurfTargetMesh_1();
const int nodeIds1[5]={1,2,3,4,6};
m->decrRef();
}
-void MEDCouplingBasicsTest::testUMeshFindCellsIdsOnBoundary1()
+void MEDCouplingBasicsTest4::testUMeshFindCellsIdsOnBoundary1()
{
MEDCouplingUMesh *m=build3DSurfTargetMesh_1();
DataArrayInt *da5=m->findCellsIdsOnBoundary();
m->decrRef();
}
-void MEDCouplingBasicsTest::testMeshSetTime1()
+void MEDCouplingBasicsTest4::testMeshSetTime1()
{
MEDCouplingUMesh *m1=build3DSurfTargetMesh_1();
MEDCouplingUMesh *m2=build3DSurfTargetMesh_1();
b->decrRef();
}
-void MEDCouplingBasicsTest::testApplyFuncTwo1()
+void MEDCouplingBasicsTest4::testApplyFuncTwo1()
{
MEDCouplingUMesh *m1=build3DSurfTargetMesh_1();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,ONE_TIME);
m1->decrRef();
}
-void MEDCouplingBasicsTest::testApplyFuncThree1()
+void MEDCouplingBasicsTest4::testApplyFuncThree1()
{
MEDCouplingUMesh *m1=build3DSurfTargetMesh_1();
MEDCouplingFieldDouble *f1=MEDCouplingFieldDouble::New(ON_CELLS,ONE_TIME);
m1->decrRef();
}
-void MEDCouplingBasicsTest::testFillFromAnalyticTwo1()
+void MEDCouplingBasicsTest4::testFillFromAnalyticTwo1()
{
MEDCouplingUMesh *m1=build3DSurfTargetMesh_1();
CPPUNIT_ASSERT_THROW(m1->fillFromAnalytic2(ON_NODES,1,"y+z"),INTERP_KERNEL::Exception);
m1->decrRef();
}
-void MEDCouplingBasicsTest::testFillFromAnalyticThree1()
+void MEDCouplingBasicsTest4::testFillFromAnalyticThree1()
{
MEDCouplingUMesh *m1=build3DSurfTargetMesh_1();
std::vector<std::string> vs(3);
m1->decrRef();
}
-void MEDCouplingBasicsTest::testDAUnitVar1()
+void MEDCouplingBasicsTest4::testDAUnitVar1()
{
DataArrayDouble *da=DataArrayDouble::New();
da->alloc(1,3);
da->decrRef();
}
-void MEDCouplingBasicsTest::testGaussCoordinates1()
+void MEDCouplingBasicsTest4::testGaussCoordinates1()
{
//Testing 1D cell types
MEDCouplingUMesh *m1=build1DMultiTypes_1();
/*!
* Not activated test ! To be implemented !
*/
-void MEDCouplingBasicsTest::testQ1Localization1()
+void MEDCouplingBasicsTest4::testQ1Localization1()
{
MEDCouplingUMesh *m=buildHexa8Mesh_1();
MEDCouplingFieldDouble *f=MEDCouplingFieldDouble::New(ON_NODES,ONE_TIME);
m->decrRef();
}
-void MEDCouplingBasicsTest::testP2Localization1()
+void MEDCouplingBasicsTest4::testP2Localization1()
{
MEDCouplingUMesh *m=MEDCouplingUMesh::New("testP2",2);
const double coords[12]={0.,2.,3.5,0.,4.5,1.5,1.2,0.32,3.4,1.,2.1,2.4};
f->decrRef();
}
-void MEDCouplingBasicsTest::testP2Localization2()
+void MEDCouplingBasicsTest4::testP2Localization2()
{
MEDCouplingUMesh *m=MEDCouplingUMesh::New("testP2_2",3);
const double coords[30]={0.33312787792955395, -0.35155740179580952, -0.03567564825034563, 1.307146326477638, -0.57234557776250305, -0.08608044208272235, 0.5551834466499993, 0.62324964668794192, -0.014638951108536295, 0.37761817224442129, -0.38324019806913578, 0.96283164472856886, 0.79494856035658679, -0.40628057809270046, 0.0021004190225864614, 1.023740446371799, 0.07665912970471335, -0.072889657161871096, 0.54564584619517376, 0.11132872093429744, 0.039647326652013051, 0.27164784387819052, -0.42018012100866675, 0.46563376500745146, 0.89501965094896418, -0.56148455362735061, 0.43337469695473035, 0.49118025152924394, 0.093884938060727313, 0.47216346905220891};
f->decrRef();
}
-void MEDCouplingBasicsTest::testGetValueOn2()
+void MEDCouplingBasicsTest4::testGetValueOn2()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
MEDCouplingFieldDouble *f=MEDCouplingFieldDouble::New(ON_CELLS,NO_TIME);
m->decrRef();
}
-void MEDCouplingBasicsTest::testDAIGetIdsNotEqual1()
+void MEDCouplingBasicsTest4::testDAIGetIdsNotEqual1()
{
DataArrayInt *d=DataArrayInt::New();
const int vals1[10]={2,3,5,6,8,5,5,6,1,-5};
d2->decrRef();
}
-void MEDCouplingBasicsTest::testDAIComputeOffsets1()
+void MEDCouplingBasicsTest4::testDAIComputeOffsets1()
{
DataArrayInt *d=DataArrayInt::New();
const int vals1[6]={3,5,1,2,0,8};
d->decrRef();
}
-void MEDCouplingBasicsTest::testUMeshHexagonPrism1()
+void MEDCouplingBasicsTest4::testUMeshHexagonPrism1()
{
const double coords[36]={
0.8660254037844386, 0.5, 0.0, 0.0, 1.0, 0.0, -0.8660254037844386, 0.5, 0.0, -0.8660254037844386, -0.5, 0.0, 0.0, -1.0, 0.0, 0.8660254037844386, -0.5, 0.0,
mesh->decrRef();
}
-void MEDCouplingBasicsTest::testDADCheckIsMonotonic()
+void MEDCouplingBasicsTest4::testDADCheckIsMonotonic()
{
DataArrayDouble *da=DataArrayDouble::New();
const double vals[4]={-1.,1.01,2.03,6.};
da->decrRef();
}
-void MEDCouplingBasicsTest::testCheckCoherencyDeeper1()
+void MEDCouplingBasicsTest4::testCheckCoherencyDeeper1()
{
MEDCouplingUMesh *m=build3DSourceMesh_1();
m->checkCoherency();
m->decrRef();
}
-void MEDCouplingBasicsTest::testUnPolyze2()
+void MEDCouplingBasicsTest4::testUnPolyze2()
{
MEDCouplingUMesh *m=MEDCouplingUMesh::New("jjj",3);
DataArrayDouble *coo=DataArrayDouble::New();
m2->decrRef();
}
-void MEDCouplingBasicsTest::testDACpyFrom1()
+void MEDCouplingBasicsTest4::testDACpyFrom1()
{
DataArrayDouble *d=DataArrayDouble::New();
d->alloc(12,1);
d4->decrRef();
}
-void MEDCouplingBasicsTest::testDAITransformWithIndArr1()
+void MEDCouplingBasicsTest4::testDAITransformWithIndArr1()
{
const int tab1[4]={17,18,22,19};
const int tab2[12]={0,1,1,3,3,0,1,3,2,2,3,0};
d1->decrRef();
}
-void MEDCouplingBasicsTest::testDAIBuildPermArrPerLevel1()
+void MEDCouplingBasicsTest4::testDAIBuildPermArrPerLevel1()
{
const int arr[12]={2,0,1,1,0,1,2,0,1,1,0,0};
const int expected1[12]={10,0,5,6,1,7,11,2,8,9,3,4};
da2->decrRef();
}
-void MEDCouplingBasicsTest::testDAIOperations1()
+void MEDCouplingBasicsTest4::testDAIOperations1()
{
const int arr1[12]={-1,-2,4,7,3,2,6,6,4,3,0,1};
DataArrayInt *da=DataArrayInt::New();
da->decrRef();
}
-void MEDCouplingBasicsTest::testEmulateMEDMEMBDC1()
+void MEDCouplingBasicsTest4::testEmulateMEDMEMBDC1()
{
MEDCouplingUMesh *m1=0;
MEDCouplingUMesh *m=buildPointe_1(m1);
m->decrRef();
}
-void MEDCouplingBasicsTest::testGetLevArrPerCellTypes1()
+void MEDCouplingBasicsTest4::testGetLevArrPerCellTypes1()
{
MEDCouplingUMesh *m1=0;
MEDCouplingUMesh *m=buildPointe_1(m1);
m1->decrRef();
}
-void MEDCouplingBasicsTest::testSortCellsInMEDFileFrmt1()
+void MEDCouplingBasicsTest4::testSortCellsInMEDFileFrmt1()
{
MEDCouplingUMesh *m1=0;
MEDCouplingUMesh *m=buildPointe_1(m1);
m->decrRef();
}
-void MEDCouplingBasicsTest::testBuildPartAndReduceNodes1()
+void MEDCouplingBasicsTest4::testBuildPartAndReduceNodes1()
{
MEDCouplingMesh *m=build2DTargetMesh_1();
const int arr[2]={1,0};
m->decrRef();
}
-void MEDCouplingBasicsTest::testDAITransformWithIndArrR1()
+void MEDCouplingBasicsTest4::testDAITransformWithIndArrR1()
{
const int tab1[6]={2,4,5,3,6,7};
const int tab2[12]={-1,-1,0,1,2,3,4,5,-1,-1,-1,-1};
d1->decrRef();
}
-void MEDCouplingBasicsTest::testDAISplitByValueRange1()
+void MEDCouplingBasicsTest4::testDAISplitByValueRange1()
{
const int val1[9]={6,5,0,3,2,7,8,1,4};
const int val2[3]={0,4,9};
d->decrRef();
}
-void MEDCouplingBasicsTest::testUMeshSplitProfilePerType1()
+void MEDCouplingBasicsTest4::testUMeshSplitProfilePerType1()
{
const int val0[5]={2,0,1,3,4};
MEDCouplingUMesh *m=build2DTargetMesh_1();
m->decrRef();
}
-void MEDCouplingBasicsTest::testDAIBuildExplicitArrByRanges1()
+void MEDCouplingBasicsTest4::testDAIBuildExplicitArrByRanges1()
{
DataArrayInt *d=DataArrayInt::New();
d->alloc(3,1);
d->decrRef();
}
-void MEDCouplingBasicsTest::testDAIComputeOffsets2()
+void MEDCouplingBasicsTest4::testDAIComputeOffsets2()
{
DataArrayInt *d=DataArrayInt::New();
const int vals1[6]={3,5,1,2,0,8};
d->decrRef();
}
-void MEDCouplingBasicsTest::testMergeField3()
+void MEDCouplingBasicsTest4::testMergeField3()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
m->getCoords()->setInfoOnComponent(0,"x [m]");
f2->decrRef();
}
-void MEDCouplingBasicsTest::testGetDistributionOfTypes1()
+void MEDCouplingBasicsTest4::testGetDistributionOfTypes1()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
const int tab1[5]={2,0,1,3,4};
m->decrRef();
}
-void MEDCouplingBasicsTest::testNorm2_1()
+void MEDCouplingBasicsTest4::testNorm2_1()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
MEDCouplingFieldDouble *f=MEDCouplingFieldDouble::New(ON_CELLS,ONE_TIME);
f->decrRef();
}
-void MEDCouplingBasicsTest::testNormMax1()
+void MEDCouplingBasicsTest4::testNormMax1()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
MEDCouplingFieldDouble *f=MEDCouplingFieldDouble::New(ON_CELLS,ONE_TIME);
f->decrRef();
}
-void MEDCouplingBasicsTest::testFindAndCorrectBadOriented3DExtrudedCells1()
+void MEDCouplingBasicsTest4::testFindAndCorrectBadOriented3DExtrudedCells1()
{
const double coords[38*3]={0.0011180339887498999, -0.0011755705045849499, 0.0, -0.0012331070204200001, -0.0011755705045849499, 0.0, -0.00067557050458494599, -0.00145964954842536, 0.0, -0.00050000000000000001, -0.00086602540378443902, 0.0, 0.00140211303259031, -0.00061803398874989504, 0.0, 0.00086602540378443902, -0.00050000000000000001, 0.0, 0.001, 0.0, 0.0, 0.00034561537182258202, 0.000269164072574575, 0.0, 0.0, 0.001, 0.0, -0.00050000000000000001, 0.00086602540378443902, 0.0, -0.000269164072574575, 0.00034561537182258202, 0.0, -0.001, 0.0, 0.0, -0.00086602540378443902, -0.00050000000000000001, 0.0, -0.00034561537182258202, -0.000269164072574575, 0.0, 0.0, -0.001, 0.0, 0.00050000000000000001, -0.00086602540378443902, 0.0, 0.000269164072574575, -0.00034561537182258202, 0.0, 0.0015, -6.01853107621011e-36, 0.0, 0.00056049747291484397, -0.00145964954842536, 0.0, 0.0011180339887498999, -0.0011755705045849499, 0.00050000000000000001, -0.0012331070204200001, -0.0011755705045849499, 0.00050000000000000001, -0.00067557050458494599, -0.00145964954842536, 0.00050000000000000001, -0.00050000000000000001, -0.00086602540378443902, 0.00050000000000000001, 0.00140211303259031, -0.00061803398874989504, 0.00050000000000000001, 0.00086602540378443902, -0.00050000000000000001, 0.00050000000000000001, 0.001, 0.0, 0.00050000000000000001, 0.00034561537182258202, 0.000269164072574575, 0.00050000000000000001, 0.0, 0.001, 0.00050000000000000001, -0.00050000000000000001, 0.00086602540378443902, 0.00050000000000000001, -0.000269164072574575, 0.00034561537182258202, 0.00050000000000000001, -0.001, 0.0, 0.00050000000000000001, -0.00086602540378443902, -0.00050000000000000001, 0.00050000000000000001, -0.00034561537182258202, -0.000269164072574575, 0.00050000000000000001, 0.0, -0.001, 0.00050000000000000001, 0.00050000000000000001, -0.00086602540378443902, 0.00050000000000000001, 0.000269164072574575, -0.00034561537182258202, 0.00050000000000000001, 0.0015, -6.01853107621011e-36, 0.00050000000000000001, 0.00056049747291484397, -0.00145964954842536, 0.00050000000000000001};
const int conn[56]={2, 1, 3, 21, 20, 22, 4, 0, 5, 23, 19, 24, 8, 9, 10, 27, 28, 29, 11, 12, 13, 30, 31, 32, 0, 18, 15, 5, 19, 37, 34, 24, 6, 17, 4, 5, 25, 36, 23, 24, 3, 14, 16, 13, 22, 33, 35, 32, 13, 16, 7, 10, 32, 35, 26, 29};
m->decrRef();
}
-void MEDCouplingBasicsTest::testConvertExtrudedPolyhedra1()
+void MEDCouplingBasicsTest4::testConvertExtrudedPolyhedra1()
{
const int conn[72]={1,2,3,4, 5,6,7,8,9,10,11,12, 13,14,15,16, 17,18,19,20,21,22, 23,24,25,26,27,28, 29,30,31,32,33,34,35,36,37,38, 39,40,41,42,43,44,45,46, 47,48,49,50,51,52,53,54,55,56,57,58, 59,60,61,62,63,64,65,66,67,68,69,70,71,72};
MEDCouplingUMesh *m=MEDCouplingUMesh::New("Example",3);
m->decrRef();
}
-void MEDCouplingBasicsTest::testNonRegressionCopyTinyStrings()
+void MEDCouplingBasicsTest4::testNonRegressionCopyTinyStrings()
{
MEDCouplingUMesh *m=build2DTargetMesh_1();
MEDCouplingFieldDouble *f1=m->getMeasureField(true);
--- /dev/null
+// Copyright (C) 2007-2011 CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+#ifndef __MEDCOUPLINGBASICSTEST4_HXX__
+#define __MEDCOUPLINGBASICSTEST4_HXX__
+
+#include "MEDCouplingBasicsTest.hxx"
+
+#include <map>
+#include <vector>
+
+namespace ParaMEDMEM
+{
+ class DataArrayDouble;
+ class MEDCouplingUMesh;
+ class MEDCouplingFieldDouble;
+ class MEDCouplingMultiFields;
+
+ class MEDCouplingBasicsTest4 : public MEDCouplingBasicsTest
+ {
+ CPPUNIT_TEST_SUITE(MEDCouplingBasicsTest4);
+ CPPUNIT_TEST( testDescriptionInMeshTimeUnit1 );
+ CPPUNIT_TEST( testMultiFields1 );
+ CPPUNIT_TEST( testFieldOverTime1 );
+ CPPUNIT_TEST( testDAICheckAndPreparePermutation1 );
+ CPPUNIT_TEST( testDAIChangeSurjectiveFormat1 );
+ CPPUNIT_TEST( testUMeshGetCellIdsLyingOnNodes1 );
+ CPPUNIT_TEST( testUMeshFindCellsIdsOnBoundary1 );
+ CPPUNIT_TEST( testMeshSetTime1 );
+ CPPUNIT_TEST( testApplyFuncTwo1 );
+ CPPUNIT_TEST( testApplyFuncThree1 );
+ CPPUNIT_TEST( testFillFromAnalyticTwo1 );
+ CPPUNIT_TEST( testFillFromAnalyticThree1 );
+ CPPUNIT_TEST( testDAUnitVar1 );
+ CPPUNIT_TEST( testGaussCoordinates1 );
+ CPPUNIT_TEST( testP2Localization1 );
+ CPPUNIT_TEST( testP2Localization2 );
+ CPPUNIT_TEST( testGetValueOn2 );
+ CPPUNIT_TEST( testDAIGetIdsNotEqual1 );
+ CPPUNIT_TEST( testDAIComputeOffsets1 );
+ CPPUNIT_TEST( testUMeshHexagonPrism1 );
+ CPPUNIT_TEST( testDADCheckIsMonotonic );
+ CPPUNIT_TEST( testCheckCoherencyDeeper1 );
+ CPPUNIT_TEST( testUnPolyze2 );
+ CPPUNIT_TEST( testDACpyFrom1 );
+ CPPUNIT_TEST( testDAITransformWithIndArr1 );
+ CPPUNIT_TEST( testDAIBuildPermArrPerLevel1 );
+ CPPUNIT_TEST( testDAIOperations1 );
+ CPPUNIT_TEST( testEmulateMEDMEMBDC1 );
+ CPPUNIT_TEST( testGetLevArrPerCellTypes1 );
+ CPPUNIT_TEST( testSortCellsInMEDFileFrmt1 );
+ CPPUNIT_TEST( testBuildPartAndReduceNodes1 );
+ CPPUNIT_TEST( testDAITransformWithIndArrR1 );
+ CPPUNIT_TEST( testDAISplitByValueRange1 );
+ CPPUNIT_TEST( testUMeshSplitProfilePerType1 );
+ CPPUNIT_TEST( testDAIBuildExplicitArrByRanges1 );
+ CPPUNIT_TEST( testDAIComputeOffsets2 );
+ CPPUNIT_TEST( testMergeField3 );
+ CPPUNIT_TEST( testGetDistributionOfTypes1 );
+ CPPUNIT_TEST( testNorm2_1 );
+ CPPUNIT_TEST( testNormMax1 );
+ CPPUNIT_TEST( testFindAndCorrectBadOriented3DExtrudedCells1 );
+ CPPUNIT_TEST( testConvertExtrudedPolyhedra1 );
+ CPPUNIT_TEST( testNonRegressionCopyTinyStrings );
+ CPPUNIT_TEST_SUITE_END();
+ public:
+ void testDescriptionInMeshTimeUnit1();
+ void testMultiFields1();
+ void testFieldOverTime1();
+ void testDAICheckAndPreparePermutation1();
+ void testDAIChangeSurjectiveFormat1();
+ void testUMeshGetCellIdsLyingOnNodes1();
+ void testUMeshFindCellsIdsOnBoundary1();
+ void testMeshSetTime1();
+ void testApplyFuncTwo1();
+ void testApplyFuncThree1();
+ void testFillFromAnalyticTwo1();
+ void testFillFromAnalyticThree1();
+ void testDAUnitVar1();
+ void testGaussCoordinates1();
+ void testQ1Localization1();
+ void testP2Localization1();
+ void testP2Localization2();
+ void testGetValueOn2();
+ void testDAIGetIdsNotEqual1();
+ void testDAIComputeOffsets1();
+ void testUMeshHexagonPrism1();
+ void testDADCheckIsMonotonic();
+ void testCheckCoherencyDeeper1();
+ void testUnPolyze2();
+ void testDACpyFrom1();
+ void testDAITransformWithIndArr1();
+ void testDAIBuildPermArrPerLevel1();
+ void testDAIOperations1();
+ void testEmulateMEDMEMBDC1();
+ void testGetLevArrPerCellTypes1();
+ void testSortCellsInMEDFileFrmt1();
+ void testBuildPartAndReduceNodes1();
+ void testDAITransformWithIndArrR1();
+ void testDAISplitByValueRange1();
+ void testUMeshSplitProfilePerType1();
+ void testDAIBuildExplicitArrByRanges1();
+ void testDAIComputeOffsets2();
+ void testMergeField3();
+ void testGetDistributionOfTypes1();
+ void testNorm2_1();
+ void testNormMax1();
+ void testFindAndCorrectBadOriented3DExtrudedCells1();
+ void testConvertExtrudedPolyhedra1();
+ void testNonRegressionCopyTinyStrings();
+ };
+}
+
+#endif
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#include "MEDCouplingBasicsTest.hxx"
+#include "MEDCouplingBasicsTestInterp.hxx"
#include "MEDCouplingUMesh.hxx"
#include "MEDCouplingExtrudedMesh.hxx"
#include "MEDCouplingFieldDouble.hxx"
typedef std::vector<std::map<int,double> > IntersectionMatrix;
-void MEDCouplingBasicsTest::test2DInterpP0P0_1()
+void MEDCouplingBasicsTestInterp::test2DInterpP0P0_1()
{
MEDCouplingUMesh *sourceMesh=build2DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build2DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DInterpP0P0PL_1()
+void MEDCouplingBasicsTestInterp::test2DInterpP0P0PL_1()
{
MEDCouplingUMesh *sourceMesh=build2DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build2DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DInterpP0P0PL_2()
+void MEDCouplingBasicsTestInterp::test2DInterpP0P0PL_2()
{
MEDCouplingUMesh *sourceMesh=build2DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build2DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DInterpP0P0PL_3()
+void MEDCouplingBasicsTestInterp::test2DInterpP0P0PL_3()
{
MEDCouplingUMesh *sourceMesh=build2DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build2DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DInterpP0P0PL_4()
+void MEDCouplingBasicsTestInterp::test2DInterpP0P0PL_4()
{
MEDCouplingUMesh *sourceMesh=build2DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build2DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DInterpP0P1_1()
+void MEDCouplingBasicsTestInterp::test2DInterpP0P1_1()
{
MEDCouplingUMesh *sourceMesh=build2DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build2DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DInterpP0P1PL_1()
+void MEDCouplingBasicsTestInterp::test2DInterpP0P1PL_1()
{
MEDCouplingUMesh *sourceMesh=build2DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build2DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DInterpP0P1PL_2()
+void MEDCouplingBasicsTestInterp::test2DInterpP0P1PL_2()
{
MEDCouplingUMesh *sourceMesh=build2DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build2DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DInterpP1P0_1()
+void MEDCouplingBasicsTestInterp::test2DInterpP1P0_1()
{
MEDCouplingUMesh *sourceMesh=build2DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build2DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DInterpP1P0PL_1()
+void MEDCouplingBasicsTestInterp::test2DInterpP1P0PL_1()
{
MEDCouplingUMesh *sourceMesh=build2DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build2DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DInterpP1P0PL_2()
+void MEDCouplingBasicsTestInterp::test2DInterpP1P0PL_2()
{
MEDCouplingUMesh *sourceMesh=build2DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build2DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DInterpP1P1_1()
+void MEDCouplingBasicsTestInterp::test2DInterpP1P1_1()
{
MEDCouplingUMesh *sourceMesh=build2DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build2DTargetMesh_2();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DInterpP1P1PL_1()
+void MEDCouplingBasicsTestInterp::test2DInterpP1P1PL_1()
{
MEDCouplingUMesh *sourceMesh=build2DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build2DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DSurfInterpP0P0_1()
+void MEDCouplingBasicsTestInterp::test3DSurfInterpP0P0_1()
{
MEDCouplingUMesh *sourceMesh=build3DSurfSourceMesh_1();
MEDCouplingUMesh *targetMesh=build3DSurfTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DSurfInterpP0P0PL_1()
+void MEDCouplingBasicsTestInterp::test3DSurfInterpP0P0PL_1()
{
MEDCouplingUMesh *sourceMesh=build3DSurfSourceMesh_1();
MEDCouplingUMesh *targetMesh=build3DSurfTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DSurfInterpP0P1_1()
+void MEDCouplingBasicsTestInterp::test3DSurfInterpP0P1_1()
{
MEDCouplingUMesh *sourceMesh=build3DSurfSourceMesh_1();
MEDCouplingUMesh *targetMesh=build3DSurfTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DSurfInterpP0P1PL_1()
+void MEDCouplingBasicsTestInterp::test3DSurfInterpP0P1PL_1()
{
MEDCouplingUMesh *sourceMesh=build3DSurfSourceMesh_1();
MEDCouplingUMesh *targetMesh=build3DSurfTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DSurfInterpP1P0_1()
+void MEDCouplingBasicsTestInterp::test3DSurfInterpP1P0_1()
{
MEDCouplingUMesh *sourceMesh=build3DSurfSourceMesh_1();
MEDCouplingUMesh *targetMesh=build3DSurfTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DSurfInterpP1P0PL_1()
+void MEDCouplingBasicsTestInterp::test3DSurfInterpP1P0PL_1()
{
MEDCouplingUMesh *sourceMesh=build3DSurfSourceMesh_1();
MEDCouplingUMesh *targetMesh=build3DSurfTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DSurfInterpP1P1_1()
+void MEDCouplingBasicsTestInterp::test3DSurfInterpP1P1_1()
{
MEDCouplingUMesh *sourceMesh=build3DSurfSourceMesh_1();
MEDCouplingUMesh *targetMesh=build3DSurfTargetMesh_2();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DSurfInterpP1P1PL_1()
+void MEDCouplingBasicsTestInterp::test3DSurfInterpP1P1PL_1()
{
MEDCouplingUMesh *sourceMesh=build3DSurfSourceMesh_1();
MEDCouplingUMesh *targetMesh=build3DSurfTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DSurfInterpP0P0_2()
+void MEDCouplingBasicsTestInterp::test3DSurfInterpP0P0_2()
{
MEDCouplingUMesh *sourceMesh=build3DSurfSourceMesh_1();
MEDCouplingUMesh *targetMesh=build3DSurfTargetMeshPerm_1();
/*!
* Test of precision option implemented by Fabien that represents distance of "barycenter" to the other cell.
*/
-void MEDCouplingBasicsTest::test3DSurfInterpP0P0_3()
+void MEDCouplingBasicsTestInterp::test3DSurfInterpP0P0_3()
{
INTERP_KERNEL::Interpolation3DSurf myInterpolator;
std::vector<std::map<int,double> > res;
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DInterpP0P0_1()
+void MEDCouplingBasicsTestInterp::test3DInterpP0P0_1()
{
MEDCouplingUMesh *sourceMesh=build3DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build3DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DInterpP0P0PL_1()
+void MEDCouplingBasicsTestInterp::test3DInterpP0P0PL_1()
{
MEDCouplingUMesh *sourceMesh=build3DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build3DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DInterpP0P0PL_2()
+void MEDCouplingBasicsTestInterp::test3DInterpP0P0PL_2()
{
MEDCouplingUMesh *sourceMesh=build3DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build3DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DInterpP0P0PL_3()
+void MEDCouplingBasicsTestInterp::test3DInterpP0P0PL_3()
{
MEDCouplingUMesh *sourceMesh=build3DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build3DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DInterpP0P0PL_4()
+void MEDCouplingBasicsTestInterp::test3DInterpP0P0PL_4()
{
MEDCouplingUMesh *sourceMesh=build3DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build3DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DInterpP0P1_1()
+void MEDCouplingBasicsTestInterp::test3DInterpP0P1_1()
{
MEDCouplingUMesh *sourceMesh=build3DTargetMesh_1();
MEDCouplingUMesh *targetMesh=build3DSourceMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DInterpP0P1PL_1()
+void MEDCouplingBasicsTestInterp::test3DInterpP0P1PL_1()
{
MEDCouplingUMesh *sourceMesh=build3DTargetMesh_1();
MEDCouplingUMesh *targetMesh=build3DSourceMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DInterpP1P0_1()
+void MEDCouplingBasicsTestInterp::test3DInterpP1P0_1()
{
MEDCouplingUMesh *sourceMesh=build3DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build3DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DInterpP1P0PL_1()
+void MEDCouplingBasicsTestInterp::test3DInterpP1P0PL_1()
{
MEDCouplingUMesh *sourceMesh=build3DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build3DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DInterpP1P1_1()
+void MEDCouplingBasicsTestInterp::test3DInterpP1P1_1()
{
MEDCouplingUMesh *sourceMesh=build3DSourceMesh_2();
MEDCouplingUMesh *targetMesh=build3DTargetMesh_2();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DInterpP1P1PL_1()
+void MEDCouplingBasicsTestInterp::test3DInterpP1P1PL_1()
{
MEDCouplingUMesh *sourceMesh=build3DSourceMesh_2();
MEDCouplingUMesh *targetMesh=build3DTargetMesh_2();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DInterpP0P0Empty()
+void MEDCouplingBasicsTestInterp::test3DInterpP0P0Empty()
{
MEDCouplingUMesh *sourceMesh=MEDCouplingUMesh::New();
sourceMesh->setMeshDimension(2);
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::testInterpolationCC()
+void MEDCouplingBasicsTestInterp::testInterpolationCC()
{
double arr1[3] = { 0/2., 1/2., 2/2. };
double arr2[4] = { 0/3, 1/3., 2/3., 3/3. };
mesh[1]->decrRef();
}
-void MEDCouplingBasicsTest::testInterpolationCU1D()
+void MEDCouplingBasicsTestInterp::testInterpolationCU1D()
{
MEDCouplingCMesh* meshC = MEDCouplingCMesh::New();
DataArrayDouble* coords = DataArrayDouble::New();
meshU->decrRef();
}
-void MEDCouplingBasicsTest::testInterpolationCU2D()
+void MEDCouplingBasicsTestInterp::testInterpolationCU2D()
{
MEDCouplingCMesh* meshC = MEDCouplingCMesh::New();
DataArrayDouble* coords = DataArrayDouble::New();
meshU->decrRef();
}
-void MEDCouplingBasicsTest::testInterpolationCU3D()
+void MEDCouplingBasicsTestInterp::testInterpolationCU3D()
{
MEDCouplingCMesh* meshC = MEDCouplingCMesh::New();
DataArrayDouble* coords = DataArrayDouble::New();
meshU->decrRef();
}
-void MEDCouplingBasicsTest::test2DInterpP0IntegralUniform()
+void MEDCouplingBasicsTestInterp::test2DInterpP0IntegralUniform()
{
MEDCouplingUMesh *targetMesh=build2DTargetMesh_1();
//
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DSurfInterpP0IntegralUniform()
+void MEDCouplingBasicsTestInterp::test3DSurfInterpP0IntegralUniform()
{
MEDCouplingUMesh *targetMesh=build3DSurfTargetMesh_1();
INTERP_KERNEL::Interpolation3DSurf myInterpolator;
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DInterpP0IntegralUniform()
+void MEDCouplingBasicsTestInterp::test3DInterpP0IntegralUniform()
{
MEDCouplingUMesh *targetMesh=build3DTargetMesh_1();
INTERP_KERNEL::Interpolation3D myInterpolator;
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DInterpP1IntegralUniform()
+void MEDCouplingBasicsTestInterp::test2DInterpP1IntegralUniform()
{
MEDCouplingUMesh *targetMesh=build2DSourceMesh_1();
//
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DInterpP1IntegralUniform()
+void MEDCouplingBasicsTestInterp::test3DInterpP1IntegralUniform()
{
MEDCouplingUMesh *sourceMesh=build3DSourceMesh_1();
//
sourceMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DInterpP1P0Bary_1()
+void MEDCouplingBasicsTestInterp::test2DInterpP1P0Bary_1()
{
MEDCouplingUMesh *sourceMesh=build2DSourceMesh_1();
MEDCouplingUMesh *targetMesh=build2DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DSurfInterpP1P0Bary_1()
+void MEDCouplingBasicsTestInterp::test3DSurfInterpP1P0Bary_1()
{
MEDCouplingUMesh *sourceMesh=build3DSurfSourceMesh_1();
MEDCouplingUMesh *targetMesh=build3DSurfTargetMesh_1();
}
#include <iomanip>
-void MEDCouplingBasicsTest::test3DInterpP1P0Bary_1()
+void MEDCouplingBasicsTestInterp::test3DInterpP1P0Bary_1()
{
MEDCouplingUMesh *sourceMesh=build3DSourceMesh_2();
MEDCouplingUMesh *targetMesh=build3DTargetMesh_2();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3DTo1DInterpP0P0PL_1()
+void MEDCouplingBasicsTestInterp::test3DTo1DInterpP0P0PL_1()
{
MEDCouplingUMesh *sourceMesh=build3DTargetMesh_1();
MEDCouplingUMesh *targetMesh=build1DTargetMesh_1();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test1DInterp_1()
+void MEDCouplingBasicsTestInterp::test1DInterp_1()
{
// c1 c0 c2 - pay attention to cell order!
// S: o---o------o---o
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DCurveInterpP0P0_1()
+void MEDCouplingBasicsTestInterp::test2DCurveInterpP0P0_1()
{
// coincident meshes
MEDCouplingUMesh *sourceMesh=build2DCurveMesh(0,0);
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DCurveInterpP0P0_2()
+void MEDCouplingBasicsTestInterp::test2DCurveInterpP0P0_2()
{
// equal meshes shifted one from another along X by 0.5
MEDCouplingUMesh *sourceMesh=build2DCurveMesh(0.5,0);
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DCurveInterpP0P1_1()
+void MEDCouplingBasicsTestInterp::test2DCurveInterpP0P1_1()
{
// coincident meshes
MEDCouplingUMesh *sourceMesh=build2DCurveMesh(0,0);
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DCurveInterpP1P0_1()
+void MEDCouplingBasicsTestInterp::test2DCurveInterpP1P0_1()
{
// coincident meshes
MEDCouplingUMesh *sourceMesh=build2DCurveMesh(0,0);
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2DCurveInterpP1P1_1()
+void MEDCouplingBasicsTestInterp::test2DCurveInterpP1P1_1()
{
// coincident meshes
MEDCouplingUMesh *sourceMesh=build2DCurveMesh(0,0);
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test2D1DBasicInterpP0P0()
+void MEDCouplingBasicsTestInterp::test2D1DBasicInterpP0P0()
{
MEDCouplingUMesh *sourceMesh=build2D1DSourceMesh();
MEDCouplingUMesh *targetMesh=build2D1DTargetMesh();
targetMesh->decrRef();
}
-int MEDCouplingBasicsTest::countNonZero(const std::vector< std::map<int,double> >& matrix)
-{
- int ret=0.;
- for(std::vector< std::map<int,double> >::const_iterator iter=matrix.begin();iter!=matrix.end();iter++)
- for(std::map<int,double>::const_iterator iter2=(*iter).begin();iter2!=(*iter).end();iter2++)
- if (!INTERP_KERNEL::epsilonEqual((*iter2).second, 0.)) ret +=1;
- return ret;
-}
-
-void MEDCouplingBasicsTest::test2D1DMeshesIntersection(MEDCouplingUMesh *sourceMesh,
- MEDCouplingUMesh *targetMesh,
- const double correctLength,
- const int correctDuplicateFacesNbr,
- const int correctTotalIntersectFacesNbr)
-{
- MEDCouplingNormalizedUnstructuredMesh<2,2> sourceWrapper(sourceMesh);
- MEDCouplingNormalizedUnstructuredMesh<2,2> targetWrapper(targetMesh);
- INTERP_KERNEL::Interpolation2D1D myInterpolator;
- myInterpolator.setPrecision(1e-12);
- const double prec = 1.0e-5;
- IntersectionMatrix matrix;
- myInterpolator.setIntersectionType(INTERP_KERNEL::Geometric2D);
- myInterpolator.interpolateMeshes(sourceWrapper,targetWrapper,matrix,"P0P0");
-
- std::cout.precision(16);
-
- const double length = sumAll(matrix);
- LOG(1, "length = " << surf <<" correctLength = " << correctLength );
- CPPUNIT_ASSERT_DOUBLES_EQUAL(correctLength, length, prec * std::max(correctLength, length));
-
- INTERP_KERNEL::Interpolation3D2D::DuplicateFacesType duplicateFaces = myInterpolator.retrieveDuplicateFaces();
- int duplicateFacesNbr = duplicateFaces.size();
- LOG(1, "duplicateFacesNbr = " << duplicateFacesNbr <<" correctDuplicateFacesNbr = " << correctDuplicateFacesNbr);
- CPPUNIT_ASSERT_EQUAL(correctDuplicateFacesNbr, duplicateFacesNbr);
-
- if (correctTotalIntersectFacesNbr >= 0)
- {
- int totalIntersectFacesNbr = countNonZero(matrix);
- LOG(1, "totalIntersectFacesNbr = " << totalIntersectFacesNbr <<" correctTotalIntersectFacesNbr = " << correctTotalIntersectFacesNbr );
- CPPUNIT_ASSERT_EQUAL(correctTotalIntersectFacesNbr, totalIntersectFacesNbr);
- }
- //clean up
- sourceMesh->decrRef();
- targetMesh->decrRef();
-}
-
-void MEDCouplingBasicsTest::test2D1DSegQuadInterpP0P0_1()
+void MEDCouplingBasicsTestInterp::test2D1DSegQuadInterpP0P0_1()
{
MEDCouplingUMesh *sourceMesh=build2D1DSegSourceMesh();
MEDCouplingUMesh *targetMesh=build2D1DQuadTargetMesh();
test2D1DMeshesIntersection(sourceMesh, targetMesh, 16., 0, 4);
}
-void MEDCouplingBasicsTest::test2D1DSegQuadInterpP0P0_2()
+void MEDCouplingBasicsTestInterp::test2D1DSegQuadInterpP0P0_2()
{
const double shiftX = 3.;
MEDCouplingUMesh *sourceMesh=build2D1DSegSourceMesh(shiftX);
test2D1DMeshesIntersection(sourceMesh, targetMesh, 2. * 16., 4, 2 * 4);
}
-void MEDCouplingBasicsTest::test2D1DSegQuadInterpP0P0_3()
+void MEDCouplingBasicsTestInterp::test2D1DSegQuadInterpP0P0_3()
{
const double shiftX = 1.5;
const double inclinationX = 3.;
test2D1DMeshesIntersection(sourceMesh, targetMesh, 20., 0, 4);
}
-void MEDCouplingBasicsTest::test2D1DSegQuadInterpP0P0_4()
+void MEDCouplingBasicsTestInterp::test2D1DSegQuadInterpP0P0_4()
{
const double shiftX = 3.;
const double inclinationX = 3.;
test2D1DMeshesIntersection(sourceMesh, targetMesh, 2. * 20., 4, 2 * 4);
}
-void MEDCouplingBasicsTest::test2D1DSegQuadInterpP0P0_5()
+void MEDCouplingBasicsTestInterp::test2D1DSegQuadInterpP0P0_5()
{
const double shiftX = 9.;
const double inclinationX = 3.;
test2D1DMeshesIntersection(sourceMesh, targetMesh, 12., 0, 3);
}
-void MEDCouplingBasicsTest::test2D1DSegQuadInterpP0P0_6()
+void MEDCouplingBasicsTestInterp::test2D1DSegQuadInterpP0P0_6()
{
const double shiftX = 9.;
const double inclinationX = 3.;
test2D1DMeshesIntersection(sourceMesh, targetMesh, 10., 0, 2);
}
-void MEDCouplingBasicsTest::test2D1DSegTriInterpP0P0_1()
+void MEDCouplingBasicsTestInterp::test2D1DSegTriInterpP0P0_1()
{
MEDCouplingUMesh *sourceMesh=build2D1DSegSourceMesh();
MEDCouplingUMesh *targetMesh=build2D1DTriTargetMesh();
test2D1DMeshesIntersection(sourceMesh, targetMesh, 16., 0, 4);
}
-void MEDCouplingBasicsTest::test2D1DSegTriInterpP0P0_2()
+void MEDCouplingBasicsTestInterp::test2D1DSegTriInterpP0P0_2()
{
const double shiftX = 3.;
MEDCouplingUMesh *sourceMesh=build2D1DSegSourceMesh(shiftX);
test2D1DMeshesIntersection(sourceMesh, targetMesh, 2. * 16., 4, 2 * 4);
}
-void MEDCouplingBasicsTest::test2D1DSegTriInterpP0P0_3()
+void MEDCouplingBasicsTestInterp::test2D1DSegTriInterpP0P0_3()
{
const double shiftX = 1.5;
const double inclinationX = 3.;
test2D1DMeshesIntersection(sourceMesh, targetMesh, 20., 0, 8);
}
-void MEDCouplingBasicsTest::test2D1DSegTriInterpP0P0_4()
+void MEDCouplingBasicsTestInterp::test2D1DSegTriInterpP0P0_4()
{
const double shiftX = 3.;
const double inclinationX = 3.;
test2D1DMeshesIntersection(sourceMesh, targetMesh, 2. * 20., 4, 8);
}
-void MEDCouplingBasicsTest::test2D1DSegTriInterpP0P0_5()
+void MEDCouplingBasicsTestInterp::test2D1DSegTriInterpP0P0_5()
{
const double shiftX = 9.;
const double inclinationX = 3.;
test2D1DMeshesIntersection(sourceMesh, targetMesh, 12., 0, 6);
}
-void MEDCouplingBasicsTest::test2D1DSegTriInterpP0P0_6()
+void MEDCouplingBasicsTestInterp::test2D1DSegTriInterpP0P0_6()
{
const double shiftX = 9.;
const double inclinationX = 3.;
test2D1DMeshesIntersection(sourceMesh, targetMesh, 20., 2, 4);
}
-void MEDCouplingBasicsTest::test3D2DBasicInterpP0P0()
+void MEDCouplingBasicsTestInterp::test3D2DBasicInterpP0P0()
{
MEDCouplingUMesh *sourceMesh=build3D2DSourceMesh();
MEDCouplingUMesh *targetMesh=build3D2DTargetMesh();
targetMesh->decrRef();
}
-void MEDCouplingBasicsTest::test3D2DMeshesIntersection(MEDCouplingUMesh *sourceMesh,
- MEDCouplingUMesh *targetMesh,
- const double correctSurf,
- const int correctDuplicateFacesNbr,
- const int correctTotalIntersectFacesNbr)
-{
- MEDCouplingNormalizedUnstructuredMesh<3,3> sourceWrapper(sourceMesh);
- MEDCouplingNormalizedUnstructuredMesh<3,3> targetWrapper(targetMesh);
- INTERP_KERNEL::Interpolation3D2D myInterpolator;
- myInterpolator.setPrecision(1e-12);
- const double prec = 1.0e-5;
- IntersectionMatrix matrix;
- INTERP_KERNEL::SplittingPolicy sp[] = { INTERP_KERNEL::PLANAR_FACE_5, INTERP_KERNEL::PLANAR_FACE_6, INTERP_KERNEL::GENERAL_24, INTERP_KERNEL::GENERAL_48 };
- for ( size_t i = 0; i < sizeof(sp)/sizeof(sp[0]); ++i )
- {
- myInterpolator.setSplittingPolicy( sp[i] );
- matrix.clear();
- myInterpolator.interpolateMeshes(sourceWrapper,targetWrapper,matrix,"P0P0");
-
- std::cout.precision(16);
-
- const double surf = sumAll(matrix);
- LOG(1, "surf = " << surf <<" correctSurf = " << correctSurf );
- CPPUNIT_ASSERT_DOUBLES_EQUAL(correctSurf, surf, prec * std::max(correctSurf, surf));
-
- INTERP_KERNEL::Interpolation3D2D::DuplicateFacesType duplicateFaces = myInterpolator.retrieveDuplicateFaces();
- int duplicateFacesNbr = duplicateFaces.size();
- LOG(1, "duplicateFacesNbr = " << duplicateFacesNbr <<" correctDuplicateFacesNbr = " << correctDuplicateFacesNbr);
- CPPUNIT_ASSERT_EQUAL(correctDuplicateFacesNbr, duplicateFacesNbr);
-
- if (correctTotalIntersectFacesNbr >= 0)
- {
- int totalIntersectFacesNbr = countNonZero(matrix);
- LOG(1, "totalIntersectFacesNbr = " << totalIntersectFacesNbr <<" correctTotalIntersectFacesNbr = " << correctTotalIntersectFacesNbr );
- CPPUNIT_ASSERT_EQUAL(correctTotalIntersectFacesNbr, totalIntersectFacesNbr);
- }
- }
- //clean up
- sourceMesh->decrRef();
- targetMesh->decrRef();
-}
-
-void MEDCouplingBasicsTest::test3D2DQuadHexaInterpP0P0_1()
+void MEDCouplingBasicsTestInterp::test3D2DQuadHexaInterpP0P0_1()
{
MEDCouplingUMesh *sourceMesh=build3D2DQuadSourceMesh();
MEDCouplingUMesh *targetMesh=build3D2DHexaTargetMesh();
test3D2DMeshesIntersection(sourceMesh, targetMesh, 240., 0, 20);
}
-void MEDCouplingBasicsTest::test3D2DQuadHexaInterpP0P0_2()
+void MEDCouplingBasicsTestInterp::test3D2DQuadHexaInterpP0P0_2()
{
const double shiftX = 3.;
MEDCouplingUMesh *sourceMesh=build3D2DQuadSourceMesh(shiftX);
test3D2DMeshesIntersection(sourceMesh, targetMesh, 2. * 240., 20, 2 * 20);
}
-void MEDCouplingBasicsTest::test3D2DQuadHexaInterpP0P0_3()
+void MEDCouplingBasicsTestInterp::test3D2DQuadHexaInterpP0P0_3()
{
const double shiftX = 1.5;
const double inclinationX = 3.;
test3D2DMeshesIntersection(sourceMesh, targetMesh, 300., 0, 20);
}
-void MEDCouplingBasicsTest::test3D2DQuadHexaInterpP0P0_4()
+void MEDCouplingBasicsTestInterp::test3D2DQuadHexaInterpP0P0_4()
{
const double shiftX = 3.;
const double inclinationX = 3.;
test3D2DMeshesIntersection(sourceMesh, targetMesh, 2. * 300., 20, 2 * 20);
}
-void MEDCouplingBasicsTest::test3D2DQuadHexaInterpP0P0_5()
+void MEDCouplingBasicsTestInterp::test3D2DQuadHexaInterpP0P0_5()
{
const double shiftX = 9.;
const double inclinationX = 3.;
test3D2DMeshesIntersection(sourceMesh, targetMesh, 180., 0, 15);
}
-void MEDCouplingBasicsTest::test3D2DQuadHexaInterpP0P0_6()
+void MEDCouplingBasicsTestInterp::test3D2DQuadHexaInterpP0P0_6()
{
const double shiftX = 9.;
const double inclinationX = 3.;
test3D2DMeshesIntersection(sourceMesh, targetMesh, 150., 0, 10);
}
-void MEDCouplingBasicsTest::test3D2DTriHexaInterpP0P0_1()
+void MEDCouplingBasicsTestInterp::test3D2DTriHexaInterpP0P0_1()
{
MEDCouplingUMesh *sourceMesh=build3D2DTriSourceMesh();
MEDCouplingUMesh *targetMesh=build3D2DHexaTargetMesh();
test3D2DMeshesIntersection(sourceMesh, targetMesh, 240., 0, 40);
}
-void MEDCouplingBasicsTest::test3D2DTriHexaInterpP0P0_2()
+void MEDCouplingBasicsTestInterp::test3D2DTriHexaInterpP0P0_2()
{
const double shiftX = 3.;
MEDCouplingUMesh *sourceMesh=build3D2DTriSourceMesh(shiftX);
test3D2DMeshesIntersection(sourceMesh, targetMesh, 2. * 240., 40, 2 * 40);
}
-void MEDCouplingBasicsTest::test3D2DTriHexaInterpP0P0_3()
+void MEDCouplingBasicsTestInterp::test3D2DTriHexaInterpP0P0_3()
{
const double shiftX = 1.5;
const double inclinationX = 3.;
test3D2DMeshesIntersection(sourceMesh, targetMesh, 300., 0, 40);
}
-void MEDCouplingBasicsTest::test3D2DTriHexaInterpP0P0_4()
+void MEDCouplingBasicsTestInterp::test3D2DTriHexaInterpP0P0_4()
{
const double shiftX = 3.;
const double inclinationX = 3.;
test3D2DMeshesIntersection(sourceMesh, targetMesh, 2. * 300., 40, 2 * 40);
}
-void MEDCouplingBasicsTest::test3D2DTriHexaInterpP0P0_5()
+void MEDCouplingBasicsTestInterp::test3D2DTriHexaInterpP0P0_5()
{
const double shiftX = 9.;
const double inclinationX = 3.;
test3D2DMeshesIntersection(sourceMesh, targetMesh, 180., 0, 30);
}
-void MEDCouplingBasicsTest::test3D2DTriHexaInterpP0P0_6()
+void MEDCouplingBasicsTestInterp::test3D2DTriHexaInterpP0P0_6()
{
const double shiftX = 9.;
const double inclinationX = 3.;
test3D2DMeshesIntersection(sourceMesh, targetMesh, 150., 0, 20);
}
-void MEDCouplingBasicsTest::test3D2DQuadTetraInterpP0P0_1()
+void MEDCouplingBasicsTestInterp::test3D2DQuadTetraInterpP0P0_1()
{
MEDCouplingUMesh *sourceMesh=build3D2DQuadSourceMesh();
MEDCouplingUMesh *targetMesh=build3D2DTetraTargetMesh();
test3D2DMeshesIntersection(sourceMesh, targetMesh, 240., 20, 40);
}
-void MEDCouplingBasicsTest::test3D2DQuadTetraInterpP0P0_2()
+void MEDCouplingBasicsTestInterp::test3D2DQuadTetraInterpP0P0_2()
{
const double shiftX = 3.;
MEDCouplingUMesh *sourceMesh=build3D2DQuadSourceMesh(shiftX);
test3D2DMeshesIntersection(sourceMesh, targetMesh, 2. * 240., 20, 2 * 40);
}
-void MEDCouplingBasicsTest::test3D2DQuadTetraInterpP0P0_3()
+void MEDCouplingBasicsTestInterp::test3D2DQuadTetraInterpP0P0_3()
{
const double shiftX = 1.5;
const double inclinationX = 3.;
test3D2DMeshesIntersection(sourceMesh, targetMesh, 300., 0, 100);
}
-void MEDCouplingBasicsTest::test3D2DQuadTetraInterpP0P0_4()
+void MEDCouplingBasicsTestInterp::test3D2DQuadTetraInterpP0P0_4()
{
const double shiftX = 3.;
const double inclinationX = 3.;
test3D2DMeshesIntersection(sourceMesh, targetMesh, 2. * 300., 20, 2 * 40);
}
-void MEDCouplingBasicsTest::test3D2DQuadTetraInterpP0P0_5()
+void MEDCouplingBasicsTestInterp::test3D2DQuadTetraInterpP0P0_5()
{
const double shiftX = 9.;
const double inclinationX = 3.;
test3D2DMeshesIntersection(sourceMesh, targetMesh, 180., 0, 45);
}
-void MEDCouplingBasicsTest::test3D2DQuadTetraInterpP0P0_6()
+void MEDCouplingBasicsTestInterp::test3D2DQuadTetraInterpP0P0_6()
{
const double shiftX = 9.;
const double inclinationX = 3.;
test3D2DMeshesIntersection(sourceMesh, targetMesh, 150., 0, 30);
}
-void MEDCouplingBasicsTest::test3D2DTriTetraInterpP0P0_1()
+void MEDCouplingBasicsTestInterp::test3D2DTriTetraInterpP0P0_1()
{
MEDCouplingUMesh *sourceMesh=build3D2DTriSourceMesh();
MEDCouplingUMesh *targetMesh=build3D2DTetraTargetMesh();
test3D2DMeshesIntersection(sourceMesh, targetMesh, 240., 0, 40);
}
-void MEDCouplingBasicsTest::test3D2DTriTetraInterpP0P0_2()
+void MEDCouplingBasicsTestInterp::test3D2DTriTetraInterpP0P0_2()
{
const double shiftX = 3.;
MEDCouplingUMesh *sourceMesh=build3D2DTriSourceMesh(shiftX);
test3D2DMeshesIntersection(sourceMesh, targetMesh, 2. * 240., 40, 40 + 80);
}
-void MEDCouplingBasicsTest::test3D2DTriTetraInterpP0P0_3()
+void MEDCouplingBasicsTestInterp::test3D2DTriTetraInterpP0P0_3()
{
const double shiftX = 1.5;
const double inclinationX = 3.;
test3D2DMeshesIntersection(sourceMesh, targetMesh, 300., 0);
}
-void MEDCouplingBasicsTest::test3D2DTriTetraInterpP0P0_4()
+void MEDCouplingBasicsTestInterp::test3D2DTriTetraInterpP0P0_4()
{
const double shiftX = 3.;
const double inclinationX = 3.;
test3D2DMeshesIntersection(sourceMesh, targetMesh, 2. * 300., 40, 40 + 80);
}
-void MEDCouplingBasicsTest::test3D2DTriTetraInterpP0P0_5()
+void MEDCouplingBasicsTestInterp::test3D2DTriTetraInterpP0P0_5()
{
const double shiftX = 9.;
const double inclinationX = 3.;
test3D2DMeshesIntersection(sourceMesh, targetMesh, 180., 0);
}
-void MEDCouplingBasicsTest::test3D2DTriTetraInterpP0P0_6()
+void MEDCouplingBasicsTestInterp::test3D2DTriTetraInterpP0P0_6()
{
const double shiftX = 9.;
const double inclinationX = 3.;
--- /dev/null
+// Copyright (C) 2007-2011 CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+#ifndef __MEDCOUPLINGBASICSTESTINTERP_HXX__
+#define __MEDCOUPLINGBASICSTESTINTERP_HXX__
+
+#include "MEDCouplingBasicsTest.hxx"
+
+#include <map>
+#include <vector>
+
+namespace ParaMEDMEM
+{
+ class DataArrayDouble;
+ class MEDCouplingUMesh;
+ class MEDCouplingFieldDouble;
+ class MEDCouplingMultiFields;
+
+ class MEDCouplingBasicsTestInterp : public MEDCouplingBasicsTest
+ {
+ CPPUNIT_TEST_SUITE(MEDCouplingBasicsTestInterp);
+ CPPUNIT_TEST( test2DInterpP0P0_1 );
+ CPPUNIT_TEST( test2DInterpP0P0PL_1 );
+ CPPUNIT_TEST( test2DInterpP0P0PL_2 );
+ CPPUNIT_TEST( test2DInterpP0P0PL_3 );
+ CPPUNIT_TEST( test2DInterpP0P0PL_4 );
+ CPPUNIT_TEST( test2DInterpP0P1_1 );
+ CPPUNIT_TEST( test2DInterpP0P1PL_1 );
+ CPPUNIT_TEST( test2DInterpP0P1PL_2 );
+ CPPUNIT_TEST( test2DInterpP1P0_1 );
+ CPPUNIT_TEST( test2DInterpP1P0PL_1 );
+ CPPUNIT_TEST( test2DInterpP1P0PL_2 );
+ CPPUNIT_TEST( test2DInterpP1P1_1 );
+ CPPUNIT_TEST( test2DInterpP1P1PL_1 );
+ CPPUNIT_TEST( test3DSurfInterpP0P0_1 );
+ CPPUNIT_TEST( test3DSurfInterpP0P0PL_1 );
+ CPPUNIT_TEST( test3DSurfInterpP0P1_1 );
+ CPPUNIT_TEST( test3DSurfInterpP0P1PL_1 );
+ CPPUNIT_TEST( test3DSurfInterpP1P0_1 );
+ CPPUNIT_TEST( test3DSurfInterpP1P0PL_1 );
+ CPPUNIT_TEST( test3DSurfInterpP1P1_1 );
+ CPPUNIT_TEST( test3DSurfInterpP1P1PL_1 );
+ CPPUNIT_TEST( test3DSurfInterpP0P0_2 );
+ CPPUNIT_TEST( test3DSurfInterpP0P0_3 );
+
+ CPPUNIT_TEST( testInterpolationCC );
+ CPPUNIT_TEST( testInterpolationCU1D );
+ CPPUNIT_TEST( testInterpolationCU2D );
+ CPPUNIT_TEST( testInterpolationCU3D );
+
+ CPPUNIT_TEST( test3DInterpP0P0_1 );
+ CPPUNIT_TEST( test3DInterpP0P0PL_1 );
+ CPPUNIT_TEST( test3DInterpP0P0PL_2 );
+ CPPUNIT_TEST( test3DInterpP0P0PL_3 );
+ CPPUNIT_TEST( test3DInterpP0P0PL_4 );
+ CPPUNIT_TEST( test3DInterpP0P1_1 );
+ CPPUNIT_TEST( test3DInterpP0P1PL_1 );
+ CPPUNIT_TEST( test3DInterpP1P0_1 );
+ CPPUNIT_TEST( test3DInterpP1P0PL_1 );
+ CPPUNIT_TEST( test3DInterpP1P1_1 );
+ CPPUNIT_TEST( test3DInterpP1P1PL_1 );
+ CPPUNIT_TEST( test3DInterpP0P0Empty );
+ CPPUNIT_TEST( test2DInterpP0IntegralUniform );
+ CPPUNIT_TEST( test3DSurfInterpP0IntegralUniform );
+ CPPUNIT_TEST( test3DInterpP0IntegralUniform );
+ CPPUNIT_TEST( test2DInterpP1IntegralUniform );
+ CPPUNIT_TEST( test3DInterpP1IntegralUniform );
+ CPPUNIT_TEST( test2DInterpP1P0Bary_1 );
+ CPPUNIT_TEST( test3DSurfInterpP1P0Bary_1 );
+ CPPUNIT_TEST( test3DInterpP1P0Bary_1 );
+ CPPUNIT_TEST( test3DTo1DInterpP0P0PL_1 );
+
+ CPPUNIT_TEST( test2D1DBasicInterpP0P0 );
+ CPPUNIT_TEST( test2D1DSegQuadInterpP0P0_1 );
+ CPPUNIT_TEST( test2D1DSegQuadInterpP0P0_2 );
+ CPPUNIT_TEST( test2D1DSegQuadInterpP0P0_3 );
+ CPPUNIT_TEST( test2D1DSegQuadInterpP0P0_4 );
+ CPPUNIT_TEST( test2D1DSegQuadInterpP0P0_5 );
+ CPPUNIT_TEST( test2D1DSegQuadInterpP0P0_6 );
+ CPPUNIT_TEST( test2D1DSegTriInterpP0P0_1 );
+ CPPUNIT_TEST( test2D1DSegTriInterpP0P0_2 );
+ CPPUNIT_TEST( test2D1DSegTriInterpP0P0_3 );
+ CPPUNIT_TEST( test2D1DSegTriInterpP0P0_4 );
+ CPPUNIT_TEST( test2D1DSegTriInterpP0P0_5 );
+ CPPUNIT_TEST( test2D1DSegTriInterpP0P0_6 );
+ CPPUNIT_TEST( test3D2DBasicInterpP0P0 );
+ CPPUNIT_TEST( test3D2DQuadHexaInterpP0P0_1 );
+ CPPUNIT_TEST( test3D2DQuadHexaInterpP0P0_2 );
+ CPPUNIT_TEST( test3D2DQuadHexaInterpP0P0_3 );
+ CPPUNIT_TEST( test3D2DQuadHexaInterpP0P0_4 );
+ CPPUNIT_TEST( test3D2DQuadHexaInterpP0P0_5 );
+ CPPUNIT_TEST( test3D2DQuadHexaInterpP0P0_6 );
+ CPPUNIT_TEST( test3D2DTriHexaInterpP0P0_1 );
+ CPPUNIT_TEST( test3D2DTriHexaInterpP0P0_2 );
+ CPPUNIT_TEST( test3D2DTriHexaInterpP0P0_3 );
+ CPPUNIT_TEST( test3D2DTriHexaInterpP0P0_4 );
+ CPPUNIT_TEST( test3D2DTriHexaInterpP0P0_5 );
+ CPPUNIT_TEST( test3D2DTriHexaInterpP0P0_6 );
+ CPPUNIT_TEST( test3D2DQuadTetraInterpP0P0_1 );
+ CPPUNIT_TEST( test3D2DQuadTetraInterpP0P0_2 );
+ CPPUNIT_TEST( test3D2DQuadTetraInterpP0P0_3 );
+ CPPUNIT_TEST( test3D2DQuadTetraInterpP0P0_4 );
+ CPPUNIT_TEST( test3D2DQuadTetraInterpP0P0_5 );
+ CPPUNIT_TEST( test3D2DQuadTetraInterpP0P0_6 );
+ CPPUNIT_TEST( test3D2DTriTetraInterpP0P0_1 );
+ CPPUNIT_TEST( test3D2DTriTetraInterpP0P0_2 );
+ CPPUNIT_TEST( test3D2DTriTetraInterpP0P0_3 );
+ CPPUNIT_TEST( test3D2DTriTetraInterpP0P0_4 );
+ CPPUNIT_TEST( test3D2DTriTetraInterpP0P0_5 );
+ CPPUNIT_TEST( test3D2DTriTetraInterpP0P0_6 );
+
+ CPPUNIT_TEST( test1DInterp_1 );
+ CPPUNIT_TEST( test2DCurveInterpP0P0_1 );
+ CPPUNIT_TEST( test2DCurveInterpP0P0_2 );
+ CPPUNIT_TEST( test2DCurveInterpP0P1_1 );
+ CPPUNIT_TEST( test2DCurveInterpP1P0_1 );
+ CPPUNIT_TEST( test2DCurveInterpP1P1_1 );
+ CPPUNIT_TEST_SUITE_END();
+ public:
+ void test2DInterpP0P0_1();
+ void test2DInterpP0P0PL_1();
+ void test2DInterpP0P0PL_2();
+ void test2DInterpP0P0PL_3();
+ void test2DInterpP0P0PL_4();
+ void test2DInterpP0P1_1();
+ void test2DInterpP0P1PL_1();
+ void test2DInterpP0P1PL_2();
+ void test2DInterpP1P0_1();
+ void test2DInterpP1P0PL_1();
+ void test2DInterpP1P0PL_2();
+ void test2DInterpP1P1_1();
+ void test2DInterpP1P1PL_1();
+ void test3DSurfInterpP0P0_1();
+ void test3DSurfInterpP0P0PL_1();
+ void test3DSurfInterpP0P1_1();
+ void test3DSurfInterpP0P1PL_1();
+ void test3DSurfInterpP1P0_1();
+ void test3DSurfInterpP1P0PL_1();
+ void test3DSurfInterpP1P1_1();
+ void test3DSurfInterpP1P1PL_1();
+ void test3DSurfInterpP0P0_2();
+ void test3DSurfInterpP0P0_3();
+ void test3DInterpP0P0_1();
+ void test3DInterpP0P0PL_1();
+ void test3DInterpP0P0PL_2();
+ void test3DInterpP0P0PL_3();
+ void test3DInterpP0P0PL_4();
+ void test3DInterpP0P1_1();
+ void test3DInterpP0P1PL_1();
+ void test3DInterpP1P0_1();
+ void test3DInterpP1P0PL_1();
+ void test3DInterpP1P1_1();
+ void test3DInterpP1P1PL_1();
+
+ void testInterpolationCC();
+ void testInterpolationCU1D();
+ void testInterpolationCU2D();
+ void testInterpolationCU3D();
+
+ void test3DInterpP0P0Empty();
+ void test2DInterpP0IntegralUniform();
+ void test3DSurfInterpP0IntegralUniform();
+ void test3DInterpP0IntegralUniform();
+ void test2DInterpP1IntegralUniform();
+ void test3DInterpP1IntegralUniform();
+ void test2DInterpP1P0Bary_1();
+ void test3DSurfInterpP1P0Bary_1();
+ void test3DInterpP1P0Bary_1();
+ void test3DTo1DInterpP0P0PL_1();
+
+ void test2D1DBasicInterpP0P0();
+ void test2D1DSegQuadInterpP0P0_1();
+ void test2D1DSegQuadInterpP0P0_2();
+ void test2D1DSegQuadInterpP0P0_3();
+ void test2D1DSegQuadInterpP0P0_4();
+ void test2D1DSegQuadInterpP0P0_5();
+ void test2D1DSegQuadInterpP0P0_6();
+ void test2D1DSegTriInterpP0P0_1();
+ void test2D1DSegTriInterpP0P0_2();
+ void test2D1DSegTriInterpP0P0_3();
+ void test2D1DSegTriInterpP0P0_4();
+ void test2D1DSegTriInterpP0P0_5();
+ void test2D1DSegTriInterpP0P0_6();
+ void test3D2DBasicInterpP0P0();
+ void test3D2DQuadHexaInterpP0P0_1();
+ void test3D2DQuadHexaInterpP0P0_2();
+ void test3D2DQuadHexaInterpP0P0_3();
+ void test3D2DQuadHexaInterpP0P0_4();
+ void test3D2DQuadHexaInterpP0P0_5();
+ void test3D2DQuadHexaInterpP0P0_6();
+ void test3D2DTriHexaInterpP0P0_1();
+ void test3D2DTriHexaInterpP0P0_2();
+ void test3D2DTriHexaInterpP0P0_3();
+ void test3D2DTriHexaInterpP0P0_4();
+ void test3D2DTriHexaInterpP0P0_5();
+ void test3D2DTriHexaInterpP0P0_6();
+ void test3D2DQuadTetraInterpP0P0_1();
+ void test3D2DQuadTetraInterpP0P0_2();
+ void test3D2DQuadTetraInterpP0P0_3();
+ void test3D2DQuadTetraInterpP0P0_4();
+ void test3D2DQuadTetraInterpP0P0_5();
+ void test3D2DQuadTetraInterpP0P0_6();
+ void test3D2DTriTetraInterpP0P0_1();
+ void test3D2DTriTetraInterpP0P0_2();
+ void test3D2DTriTetraInterpP0P0_3();
+ void test3D2DTriTetraInterpP0P0_4();
+ void test3D2DTriTetraInterpP0P0_5();
+ void test3D2DTriTetraInterpP0P0_6();
+
+ void test1DInterp_1();
+ void test2DCurveInterpP0P0_1();
+ void test2DCurveInterpP0P0_2();
+ void test2DCurveInterpP0P1_1();
+ void test2DCurveInterpP1P0_1();
+ void test2DCurveInterpP1P1_1();
+ };
+}
+
+#endif
dist_TestMEDCoupling_SOURCES = TestMEDCoupling.cxx MEDCouplingBasicsTest.hxx MEDCouplingBasicsTest0.cxx MEDCouplingBasicsTest1.cxx \
MEDCouplingBasicsTest2.cxx MEDCouplingBasicsTest3.cxx MEDCouplingBasicsTestInterp.cxx MEDCouplingBasicsTestData1.hxx \
- MEDCouplingBasicsTest4.cxx
+ MEDCouplingBasicsTest4.cxx MEDCouplingBasicsTest1.hxx MEDCouplingBasicsTest2.hxx MEDCouplingBasicsTest3.hxx \
+ MEDCouplingBasicsTest4.hxx MEDCouplingBasicsTestInterp.hxx
TestMEDCouplingRemapper_CPPFLAGS=@CPPUNIT_INCLUDES@ @PTHREAD_CFLAGS@ -I$(srcdir)/.. -I$(srcdir)/../../INTERP_KERNEL/Bases -I$(srcdir)/../../INTERP_KERNELTest -I$(srcdir)/../../INTERP_KERNEL -I$(srcdir)/../../INTERP_KERNEL/Geometric2D
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#include "MEDCouplingBasicsTest.hxx"
+#include "MEDCouplingBasicsTest1.hxx"
+#include "MEDCouplingBasicsTest2.hxx"
+#include "MEDCouplingBasicsTest3.hxx"
+#include "MEDCouplingBasicsTest4.hxx"
+#include "MEDCouplingBasicsTestInterp.hxx"
-CPPUNIT_TEST_SUITE_REGISTRATION( ParaMEDMEM::MEDCouplingBasicsTest );
+CPPUNIT_TEST_SUITE_REGISTRATION( ParaMEDMEM::MEDCouplingBasicsTest1 );
+CPPUNIT_TEST_SUITE_REGISTRATION( ParaMEDMEM::MEDCouplingBasicsTest2 );
+CPPUNIT_TEST_SUITE_REGISTRATION( ParaMEDMEM::MEDCouplingBasicsTest3 );
+CPPUNIT_TEST_SUITE_REGISTRATION( ParaMEDMEM::MEDCouplingBasicsTest4 );
+CPPUNIT_TEST_SUITE_REGISTRATION( ParaMEDMEM::MEDCouplingBasicsTestInterp );
#include "BasicMainTest.hxx"