#include <MEDSPLITTERTest.hxx>

Public Member Functions | |
| void | setUp () |
| void | tearDown () |
| void | testMESHCollection_constructor () |
| void | testMESHCollection_read_seq () |
| Testing basic manipulation for a sequential file. | |
| void | testMESHCollection_read_para () |
| Testing basic manipulation for a parallel file. | |
| void | testMESHCollection_square () |
| Testing a normal scheme. | |
| void | testMESHCollection_square_with_faces () |
| void | testMESHCollection_indivisible () |
| void | testMESHCollection_user_partition () |
| void | testMESHCollection_complete_sequence () |
| void | testMESHCollection_complete_sequence_with_polygon () |
| void | testMESHCollection_complete_sequence_with_polyhedra () |
| void | testMESHCollection_families () |
| void | testParallelTopology_graph_constructor () |
Private Member Functions | |
| CPPUNIT_TEST_SUITE (MEDSPLITTERTest) | |
| CPPUNIT_TEST (testMESHCollection_constructor) | |
| CPPUNIT_TEST (testMESHCollection_read_seq) | |
| CPPUNIT_TEST (testMESHCollection_read_para) | |
| CPPUNIT_TEST (testMESHCollection_square) | |
| CPPUNIT_TEST (testMESHCollection_square_with_faces) | |
| CPPUNIT_TEST (testMESHCollection_indivisible) | |
| CPPUNIT_TEST (testMESHCollection_user_partition) | |
| CPPUNIT_TEST (testParallelTopology_graph_constructor) | |
| CPPUNIT_TEST (testMESHCollection_complete_sequence) | |
| CPPUNIT_TEST (testMESHCollection_complete_sequence_with_polygon) | |
| CPPUNIT_TEST (testMESHCollection_families) | |
| CPPUNIT_TEST_SUITE_END () | |
| MEDSPLITTERTest.CPPUNIT_TEST_SUITE | ( | MEDSPLITTERTest | ) | [private] |
| MEDSPLITTERTest.CPPUNIT_TEST | ( | testMESHCollection_constructor | ) | [private] |
| MEDSPLITTERTest.CPPUNIT_TEST | ( | testMESHCollection_read_seq | ) | [private] |
| MEDSPLITTERTest.CPPUNIT_TEST | ( | testMESHCollection_read_para | ) | [private] |
| MEDSPLITTERTest.CPPUNIT_TEST | ( | testMESHCollection_square | ) | [private] |
| MEDSPLITTERTest.CPPUNIT_TEST | ( | testMESHCollection_square_with_faces | ) | [private] |
| MEDSPLITTERTest.CPPUNIT_TEST | ( | testMESHCollection_indivisible | ) | [private] |
| MEDSPLITTERTest.CPPUNIT_TEST | ( | testMESHCollection_user_partition | ) | [private] |
| MEDSPLITTERTest.CPPUNIT_TEST | ( | testParallelTopology_graph_constructor | ) | [private] |
| MEDSPLITTERTest.CPPUNIT_TEST | ( | testMESHCollection_complete_sequence | ) | [private] |
| MEDSPLITTERTest.CPPUNIT_TEST | ( | testMESHCollection_complete_sequence_with_polygon | ) | [private] |
| MEDSPLITTERTest.CPPUNIT_TEST | ( | testMESHCollection_families | ) | [private] |
| MEDSPLITTERTest.CPPUNIT_TEST_SUITE_END | ( | ) | [private] |
| void MEDSPLITTERTest::setUp | ( | ) |
Set up the environment
| void MEDSPLITTERTest::tearDown | ( | ) |
| void MEDSPLITTERTest::testMESHCollection_constructor | ( | ) |
Check methods (33), defined in MEDSPLITTER_MESHCollection.hxx: (-) MESHCollection(); (-) MESHCollection(const MESHCollection&, Topology*); (+) MESHCollection(const std.string& filename); (+) MESHCollection(const std.string& filename, const std.string& meshname); (-) ~MESHCollection(); (+) void write(const std.string& filename); (-) MESHCollectionDriver* retrieveDriver(); (-) MESHCollectionDriver* getDriver() const; (-) void buildCellGraph(MEDMEM.MEDSKYLINEARRAY* & array,int *& edgeweights ); (-) void buildCellGraph2ndversion(MEDMEM.MEDSKYLINEARRAY* & array,int *& edgeweights ); (+) Topology* createPartition(int nbdomain, Graph.splitter_type type = Graph.METIS, const string& ="", int* edgeweights=0, int* verticesweights=0); (-) Topology* createPartition(const int* partition); (-) void getTypeList(int* cell_list,int nb_cells,MED_EN.medEntityMesh entity, MED_EN.medGeometryElement* type_list) const ; (-) void getCoordinates(int* node_list,int nb_nodes, double* coordinates) const ; (-) void getNodeConnectivity( const int* cell_list,int nb_cells,MED_EN.medEntityMesh,MED_EN.medGeometryElement type, int* type_connectivity) const ; (-) void getFaceConnectivity( const int* cell_list,int nb_cells,MED_EN.medEntityMesh,MED_EN.medGeometryElement type, int* type_connectivity) const ; (+) int getMeshDimension() const ; (+) int getSpaceDimension() const ; (+) std.string getSystem() const; (-) std.string getMeshName() const; (-) std.vector<MEDMEM.MESH*>& getMesh() ; (-) MEDMEM.MESH* getMesh(int) const; (-) std.vector<MEDMEM.CONNECTZONE*>& getCZ(); (-) Topology* getTopology() const ; (-) void setTopology(Topology* topology); (+) string getName() const {return m_name;} (+) void setName(const string& name) {m_name=name;} (-) void castFamilies(const MESHCollection& old_collection); (-) void castSupport(const MESHCollection& old_collection, std.vector<const MEDMEM.SUPPORT*> old_support, std.vector<MEDMEM.SUPPORT*> new_support); (-) void castAllFields(const MESHCollection& old_collection); (-) void castField(const MESHCollection& old_collection, const string& fieldname, int itnumber, int ordernumber); (+) void setIndivisibleGroup(const string& a); (-) void buildConnectZones(int idomain);
References test_MEDSPLITTER.filename_rd, INTERP_TEST.getResourceFile(), and test_MEDSPLITTER.meshname.
| void MEDSPLITTERTest::testMESHCollection_read_seq | ( | ) |
Testing basic manipulation for a sequential file.
References test_MEDSPLITTER.collection, test_MEDSPLITTER.filename_rd, MEDSPLITTER.MESHCollection.getMeshDimension(), MEDSPLITTER.MESHCollection.getName(), INTERP_TEST.getResourceFile(), MEDSPLITTER.MESHCollection.getSpaceDimension(), MEDSPLITTER.MESHCollection.getSystem(), makeTmpFile(), MEDSPLITTER.MedAscii, test_MEDSPLITTER.meshname, MEDSPLITTERTest_TmpFilesRemover.Register(), MEDSPLITTER.MESHCollection.setDriverType(), MEDSPLITTER.MESHCollection.setName(), and MEDSPLITTER.MESHCollection.write().
| void MEDSPLITTERTest::testMESHCollection_read_para | ( | ) |
Testing basic manipulation for a parallel file.
References test_MEDSPLITTER.collection, MEDSPLITTER.MESHCollection.createPartition(), test_MEDSPLITTER.filename_rd, MEDSPLITTER.MESHCollection.getName(), INTERP_TEST.getResourceFile(), makeTmpFile(), test_MEDSPLITTER.meshname, test_MEDSPLITTER.new_collection, MEDSPLITTERTest_TmpFilesRemover.Register(), and MEDSPLITTER.MESHCollection.write().
| void MEDSPLITTERTest::testMESHCollection_square | ( | ) |
Testing a normal scheme.
References MEDSPLITTER.MESHCollection.castAllFields(), test_MEDSPLITTER.collection, MEDSPLITTER.MESHCollection.createPartition(), test_MEDSPLITTER.filename_rd, MEDMEM.MESH.getNumberOfElements(), INTERP_TEST.getResourceFile(), makeTmpFile(), MED_EN.MED_ALL_ELEMENTS, MED_EN.MED_CELL, MEDMEM.MED_DRIVER, MED_EN.MED_NODE, MED_EN.MED_POINT1, MED_EN.MED_QUAD4, test_gibi.mesh1, test_MEDSPLITTER.meshname, TestMedCorba4.n1, TestMedCorba4.n2, test_MEDSPLITTER.new_collection, MEDSPLITTERTest_TmpFilesRemover.Register(), dumpMEDMEM.tab, and MEDSPLITTER.MESHCollection.write().
| void MEDSPLITTERTest::testMESHCollection_square_with_faces | ( | ) |
References MEDSPLITTER.MESHCollection.castAllFields(), test_MEDSPLITTER.collection, MEDSPLITTER.MESHCollection.createPartition(), test_MEDSPLITTER.filename_rd, MEDMEM.MESH.getNumberOfElements(), INTERP_TEST.getResourceFile(), makeTmpFile(), MED_EN.MED_ALL_ELEMENTS, MED_EN.MED_CELL, MEDMEM.MED_DRIVER, MED_EN.MED_NODE, MED_EN.MED_POINT1, MED_EN.MED_QUAD4, MED_EN.MED_SEG2, test_gibi.mesh1, test_MEDSPLITTER.meshname, TestMedCorba4.n1, TestMedCorba4.n2, test_MEDSPLITTER.new_collection, MEDSPLITTERTest_TmpFilesRemover.Register(), MEDSPLITTER.MESHCollection.setSubdomainBoundaryCreates(), dumpMEDMEM.tab, and MEDSPLITTER.MESHCollection.write().
| void MEDSPLITTERTest::testMESHCollection_indivisible | ( | ) |
References test_MEDSPLITTER.collection, MEDSPLITTER.MESHCollection.createPartition(), med_opsupp_test.family, test_MEDSPLITTER.filename_rd, MEDMEM.MESH.getNumberOfElements(), INTERP_TEST.getResourceFile(), makeTmpFile(), MED_EN.MED_CELL, MEDMEM.MED_DRIVER, MED_EN.MED_QUAD4, test_gibi.mesh1, test_MEDSPLITTER.meshname, test_MEDSPLITTER.new_collection, MEDSPLITTERTest_TmpFilesRemover.Register(), MEDSPLITTER.MESHCollection.setIndivisibleGroup(), and MEDSPLITTER.MESHCollection.write().
| void MEDSPLITTERTest::testMESHCollection_user_partition | ( | ) |
References MEDSPLITTER.MESHCollection.castAllFields(), test_MEDSPLITTER.collection, MEDSPLITTER.MESHCollection.createPartition(), test_MEDSPLITTER.filename_rd, MEDMEM.MESH.getNumberOfElements(), INTERP_TEST.getResourceFile(), makeTmpFile(), MED_EN.MED_ALL_ELEMENTS, MED_EN.MED_CELL, MEDMEM.MED_DRIVER, MED_EN.MED_NODE, MED_EN.MED_POINT1, MED_EN.MED_QUAD4, test_gibi.mesh1, test_MEDSPLITTER.meshname, TestMedCorba4.n1, TestMedCorba4.n2, test_MEDSPLITTER.new_collection, MEDSPLITTERTest_TmpFilesRemover.Register(), dumpMEDMEM.tab, and MEDSPLITTER.MESHCollection.write().
| void MEDSPLITTERTest::testMESHCollection_complete_sequence | ( | ) |
Testing a complex scenario to involve several shared pointers on similar structures
References test_MEDSPLITTER.collection, MEDSPLITTER.MESHCollection.createPartition(), test_MEDSPLITTER.filename_rd, MEDSPLITTER.MESHCollection.getMesh(), MEDSPLITTER.MESHCollection.getName(), MEDMEM.MESH.getNumberOfElements(), MEDMEM.MESH.getNumberOfNodes(), INTERP_TEST.getResourceFile(), makeTmpFile(), MED_EN.MED_ALL_ELEMENTS, MED_EN.MED_CELL, MED_EN.MED_EDGE, MED_EN.MED_FACE, MEDSPLITTER.MedAscii, test_MEDSPLITTER.meshname, MEDSPLITTER.Topology.nbCells(), test_MEDSPLITTER.new_collection, MEDSPLITTERTest_TmpFilesRemover.Register(), MEDSPLITTER.MESHCollection.setDriverType(), and MEDSPLITTER.MESHCollection.write().
| void MEDSPLITTERTest::testMESHCollection_complete_sequence_with_polygon | ( | ) |
Testing a complex scenario to involve several shared pointers on similar structures
References test_MEDSPLITTER.collection, MEDSPLITTER.MESHCollection.createPartition(), test_MEDSPLITTER.filename_rd, MEDSPLITTER.MESHCollection.getMesh(), MEDSPLITTER.MESHCollection.getName(), MEDMEM.MESH.getNumberOfElements(), MEDMEM.MESH.getNumberOfNodes(), INTERP_TEST.getResourceFile(), makeTmpFile(), MED_EN.MED_ALL_ELEMENTS, MED_EN.MED_CELL, MED_EN.MED_EDGE, MED_EN.MED_FACE, MEDSPLITTER.MedAscii, test_MEDSPLITTER.meshname, MEDSPLITTER.Topology.nbCells(), test_MEDSPLITTER.new_collection, MEDSPLITTERTest_TmpFilesRemover.Register(), MEDSPLITTER.MESHCollection.setDriverType(), and MEDSPLITTER.MESHCollection.write().
| void MEDSPLITTERTest::testMESHCollection_complete_sequence_with_polyhedra | ( | ) |
Testing a complex scenario to involve several shared pointers on similar structures
References test_MEDSPLITTER.collection, MEDSPLITTER.MESHCollection.createPartition(), test_MEDSPLITTER.filename_rd, MEDSPLITTER.MESHCollection.getMesh(), MEDSPLITTER.MESHCollection.getName(), MEDMEM.MESH.getNumberOfElements(), MEDMEM.MESH.getNumberOfNodes(), INTERP_TEST.getResourceFile(), makeTmpFile(), MED_EN.MED_ALL_ELEMENTS, MED_EN.MED_CELL, MED_EN.MED_EDGE, MED_EN.MED_FACE, MEDSPLITTER.MedAscii, test_MEDSPLITTER.meshname, MEDSPLITTER.Topology.nbCells(), test_MEDSPLITTER.new_collection, MEDSPLITTERTest_TmpFilesRemover.Register(), MEDSPLITTER.MESHCollection.setDriverType(), and MEDSPLITTER.MESHCollection.write().
| void MEDSPLITTERTest::testMESHCollection_families | ( | ) |
Testing a TRIO_U scenario with subzones defined as families
References MEDSPLITTER.MESHCollection.castAllFields(), test_MEDSPLITTER.collection, MEDSPLITTER.MESHCollection.createPartition(), test_MEDSPLITTER.filename_rd, MEDMEM.GMESH.getFamily(), MEDMEM.SUPPORT.getName(), MEDMEM.MESH.getNumberOfElements(), INTERP_TEST.getResourceFile(), makeTmpFile(), MED_EN.MED_ALL_ELEMENTS, MED_EN.MED_CELL, MEDMEM.MED_DRIVER, MED_EN.MED_EDGE, test_gibi.mesh1, test_MEDSPLITTER.meshname, test_MEDSPLITTER.new_collection, MEDSPLITTERTest_TmpFilesRemover.Register(), MEDSPLITTER.MESHCollection.setSubdomainBoundaryCreates(), and MEDSPLITTER.MESHCollection.write().
| void MEDSPLITTERTest::testParallelTopology_graph_constructor | ( | ) |
References MEDSPLITTER.MESHCollection.buildCellGraph(), test_MEDSPLITTER.collection, MEDSPLITTER.Topology.convertCellToGlobal(), MEDSPLITTER.Topology.convertGlobalCellList(), MEDSPLITTER.Topology.convertGlobalFaceList(), MEDSPLITTER.Topology.convertGlobalNodeList(), MEDSPLITTER.Topology.convertGlobalNodeListWithTwins(), test_MEDSPLITTER.filename_rd, MEDSPLITTER.Topology.getCellNumber(), MEDSPLITTER.MESHCollection.getMeshDimension(), MEDSPLITTER.Topology.getNodeNumber(), INTERP_TEST.getResourceFile(), makeTmpFile(), test_MEDSPLITTER.meshname, MEDSPLITTER.Topology.nbCells(), MEDSPLITTER.Topology.nbDomain(), test_MEDSPLITTER.new_collection, and test_NonCoincidentDEC.size.