Version: 5.1.6

MEDSPLITTERTest Class Reference

#include <MEDSPLITTERTest.hxx>

Inheritance diagram for MEDSPLITTERTest:
Inheritance graph

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 ()
std::string getResourceFile (const std::string &)
 Get path to the resources file.
std::string getTmpDirectory ()
 Returns writable temporary directory.
std::string makeTmpFile (const std::string &, const std::string &="")
 Creates a copy of source file (if source file is specified) in the temporary directory and returns a path to the tmp file.

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 ()

Member Function Documentation

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 (  ) 
  • delete
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, getResourceFile(), and test_MEDSPLITTER.meshname.

void MEDSPLITTERTest::testMESHCollection_read_seq (  ) 
void MEDSPLITTERTest::testMESHCollection_read_para (  ) 
void MEDSPLITTERTest::testMESHCollection_square (  ) 
void MEDSPLITTERTest::testMESHCollection_square_with_faces (  ) 
void MEDSPLITTERTest::testMESHCollection_indivisible (  ) 
void MEDSPLITTERTest::testMESHCollection_user_partition (  ) 
void MEDSPLITTERTest::testMESHCollection_complete_sequence (  ) 
void MEDSPLITTERTest::testMESHCollection_complete_sequence_with_polygon (  ) 
void MEDSPLITTERTest::testMESHCollection_complete_sequence_with_polyhedra (  ) 
void MEDSPLITTERTest::testMESHCollection_families (  ) 
void MEDSPLITTERTest::testParallelTopology_graph_constructor (  ) 
std::string MEDSPLITTERTest::getResourceFile ( const std::string &  filename  ) 

Get path to the resources file.

When running 'make test' source file is taken from MED_SRC/resources folder. Otherwise, file is searched in ${MED_ROOT_DIR}/share/salome/resources/med folder.

Parameters:
filename name of the resource file (should not include a path)
Returns:
full path to the resource file
std::string MEDSPLITTERTest::getTmpDirectory (  ) 

Returns writable temporary directory.

Returns:
full path to the temporary directory
std::string MEDSPLITTERTest::makeTmpFile ( const std::string &  tmpfile,
const std::string &  srcfile = "" 
)

Creates a copy of source file (if source file is specified) in the temporary directory and returns a path to the tmp file.

Parameters:
tmpfile name of the temporary file (without path)
srcfile source file
Returns:
path to the temporary file

References medutilities.cmd, and getTmpDirectory().