#include <MEDSPLITTER_MESHCollectionDriver.hxx>

Public Member Functions | |
| MESHCollectionDriver (MESHCollection *) | |
| virtual | ~MESHCollectionDriver () |
| virtual int | read (char *, ParaDomainSelector *sel=0)=0 |
| int | readSeq (char *, char *) |
| virtual void | write (char *, ParaDomainSelector *sel=0)=0 |
| virtual void | readFields (vector< MEDMEM::FIELD< int > * > &filenames, char *fieldname, int itnumber, int ordernumber)=0 |
| virtual void | readFields (vector< MEDMEM::FIELD< double > * > &filenames, char *fieldname, int itnumber, int ordernumber)=0 |
| virtual void | writeFields (vector< MEDMEM::FIELD< int > * > &filenames, char *fieldname)=0 |
| virtual void | writeFields (vector< MEDMEM::FIELD< double > * > &filenames, char *fieldname)=0 |
| void | readFileStruct (vector< string > &field_names, vector< int > &iternumber, vector< int > &ordernumber, vector< int > &types) |
| int | getFieldType (const std::string &fieldname) |
| retrieves the type of a field for a given fieldname | |
| void | readLoc2GlobCellConnect (int idomain, const set< int > &loc_domains, ParaDomainSelector *ds, vector< int > &loc2glob_corr) |
| Read CELL-CELL correspondences of joints with domains on other procs. | |
| int | readMeshDimension () const |
| Return mesh dimension from the distributed med file having been read. | |
Protected Member Functions | |
| void | readSubdomain (vector< int * > &cellglobal, vector< int * > &faceglobal, vector< int * > &nodeglobal, int idomain) |
| void | writeSubdomain (int idomain, int nbdomain, char *filename, ParaDomainSelector *domain_selector) |
| void | writeElementJoint (medEntityMesh entity, int icz, int idomain, int idistant, char *mesh_name, char *joint_name, med_2_3::med_idt fid) |
| void | jointSort (int *elems, int nbelems, bool is_first) |
Protected Attributes | |
| MESHCollection * | _collection |
| std::vector< std::string > | _filename |
| std::vector< std::string > | _meshname |
| MESHCollectionDriver::MESHCollectionDriver | ( | MESHCollection * | collection | ) |
| virtual MEDSPLITTER.MESHCollectionDriver.~MESHCollectionDriver | ( | ) | [virtual] |
| virtual int MEDSPLITTER.MESHCollectionDriver.read | ( | char * | , |
| ParaDomainSelector * | sel = 0 |
||
| ) | [pure virtual] |
Implemented in MEDSPLITTER.MESHCollectionMedAsciiDriver, and MEDSPLITTER.MESHCollectionMedXMLDriver.
| int MESHCollectionDriver::readSeq | ( | char * | filename, |
| char * | meshname | ||
| ) |
reads a unique MED File v>=2.1 and mounts the corresponding mesh in memory
| filename | binary file |
| meshname | mesh name in the MED file |
References MEDSPLITTER.MESHCollectionDriver._collection, MEDSPLITTER.MESHCollectionDriver._filename, BEGIN_OF_MED, END_OF_MED, MEDSPLITTER.MESHCollection.getCZ(), MEDSPLITTER.MESHCollection.getMesh(), MEDSPLITTER.MESHCollection.setName(), and MEDSPLITTER.MESHCollection.setTopology().
| virtual void MEDSPLITTER.MESHCollectionDriver.write | ( | char * | , |
| ParaDomainSelector * | sel = 0 |
||
| ) | [pure virtual] |
Implemented in MEDSPLITTER.MESHCollectionMedAsciiDriver, and MEDSPLITTER.MESHCollectionMedXMLDriver.
| virtual void MEDSPLITTER.MESHCollectionDriver.readFields | ( | vector< MEDMEM::FIELD< int > * > & | filenames, |
| char * | fieldname, | ||
| int | itnumber, | ||
| int | ordernumber | ||
| ) | [pure virtual] |
Implemented in MEDSPLITTER.MESHCollectionMedAsciiDriver, and MEDSPLITTER.MESHCollectionMedXMLDriver.
| virtual void MEDSPLITTER.MESHCollectionDriver.readFields | ( | vector< MEDMEM::FIELD< double > * > & | filenames, |
| char * | fieldname, | ||
| int | itnumber, | ||
| int | ordernumber | ||
| ) | [pure virtual] |
Implemented in MEDSPLITTER.MESHCollectionMedAsciiDriver, and MEDSPLITTER.MESHCollectionMedXMLDriver.
| virtual void MEDSPLITTER.MESHCollectionDriver.writeFields | ( | vector< MEDMEM::FIELD< int > * > & | filenames, |
| char * | fieldname | ||
| ) | [pure virtual] |
Implemented in MEDSPLITTER.MESHCollectionMedAsciiDriver, and MEDSPLITTER.MESHCollectionMedXMLDriver.
| virtual void MEDSPLITTER.MESHCollectionDriver.writeFields | ( | vector< MEDMEM::FIELD< double > * > & | filenames, |
| char * | fieldname | ||
| ) | [pure virtual] |
Implemented in MEDSPLITTER.MESHCollectionMedAsciiDriver, and MEDSPLITTER.MESHCollectionMedXMLDriver.
| void MESHCollectionDriver::readFileStruct | ( | vector< string > & | field_names, |
| vector< int > & | iternumber, | ||
| vector< int > & | ordernumber, | ||
| vector< int > & | types | ||
| ) |
Reads the file structure to determine the list of all the available fields
| field_names,vector<string> | containing the field names |
| iternumber,vector<int> | containing the iteration numbers |
| ordernumber,vector<int> | containing the order numbers |
| types,vector<int> | containing 0 for int fields and 1 for double fields |
References MEDSPLITTER.MESHCollectionDriver._filename, BEGIN_OF_MED, Med_Gen_test.dt, END_OF_MED, MEDMEM.MEDFILEBROWSER.getFieldIteration(), MEDMEM.MEDFILEBROWSER.getFieldNames(), MEDMEM.MEDFILEBROWSER.getFieldType(), MEDMEM.MEDFILEBROWSER.getNumberOfFields(), Med_Gen_test.it, MED_EN.MED_REEL64, and MESSAGE_MED.
| int MESHCollectionDriver::getFieldType | ( | const std::string & | fieldname | ) |
retrieves the type of a field for a given fieldname
References MEDSPLITTER.MESHCollectionDriver._filename, BEGIN_OF_MED, END_OF_MED, MEDMEM.MEDFILEBROWSER.getFieldType(), MED_EN.MED_REEL64, and testMEDMEM.ret.
| void MESHCollectionDriver::readLoc2GlobCellConnect | ( | int | idomain, |
| const set< int > & | loc_domains, | ||
| ParaDomainSelector * | domain_selector, | ||
| vector< int > & | loc2glob_corr | ||
| ) |
Read CELL-CELL correspondences of joints with domains on other procs.
| idomain | - domain index to return correspondence for |
| loc_domains | - domians on this pocessor |
| domain_selector | - info on cell distribution among procs |
| loc2glob_corr | - out, correspondence pairs where distant ids are global |
References MEDSPLITTER.MESHCollectionDriver._collection, MEDSPLITTER.MESHCollectionDriver._filename, MEDSPLITTER.MESHCollectionDriver._meshname, test_NonCoincidentDEC.filename, MEDSPLITTER.ParaDomainSelector.getDomainShift(), MEDSPLITTER.MESHCollection.getMesh(), MEDSPLITTER.MESHCollection.isDimensionOK(), MED_EN.MED_CELL, MED_EN.meshEntities, test_MEDSPLITTER.meshname, and medClient_test.types.
| int MESHCollectionDriver::readMeshDimension | ( | ) | const |
Return mesh dimension from the distributed med file having been read.
References MEDSPLITTER.MESHCollectionDriver._filename, MEDSPLITTER.MESHCollectionDriver._meshname, MED_EXCEPTION, medClient_test.meshDimension, and medClient_test.spaceDimension.
| void MESHCollectionDriver::readSubdomain | ( | vector< int * > & | cellglobal, |
| vector< int * > & | faceglobal, | ||
| vector< int * > & | nodeglobal, | ||
| int | idomain | ||
| ) | [protected] |
References MEDSPLITTER.MESHCollectionDriver._collection, MEDSPLITTER.MESHCollectionDriver._filename, MEDSPLITTER.MESHCollectionDriver._meshname, BEGIN_OF_MED, END_OF_MED, med_opsupp_test.entity, MEDSPLITTER.MESHCollection.getCZ(), MEDSPLITTER.MESHCollection.getMesh(), MEDMEM.MESH.getMeshDimension(), MEDMEM.MESH.getNumberOfElements(), MEDMEM.MESH.getNumberOfTypes(), MEDMEM.MESH.getTypes(), MEDSPLITTER.MESHCollection.isDimensionOK(), MED_EN.MED_ALL_ELEMENTS, MED_EN.MED_CELL, MED_EN.MED_EDGE, MED_EN.MED_FACE, MED_EN.MED_NODE, MED_EN.MED_POINT1, MED_test2.mesh, test_MEDSPLITTER.meshname, MESSAGE_MED, medClient_test.name, MEDMEM.CONNECTZONE.setDescription(), MEDMEM.CONNECTZONE.setDistantDomainNumber(), MEDMEM.CONNECTZONE.setDistantMesh(), MEDMEM.CONNECTZONE.setLocalDomainNumber(), MEDMEM.CONNECTZONE.setLocalMesh(), MEDMEM.CONNECTZONE.setName(), MEDMEM.CONNECTZONE.setNodeCorresp(), medClient_test.type, and medClient_test.types.
| void MESHCollectionDriver::writeSubdomain | ( | int | idomain, |
| int | nbdomain, | ||
| char * | filename, | ||
| ParaDomainSelector * | domain_selector | ||
| ) | [protected] |
References MEDSPLITTER.MESHCollectionDriver._collection, medClient_test.desc, MEDSPLITTER.Topology.getCellList(), MEDSPLITTER.Topology.getCellNumber(), MEDSPLITTER.MESHCollection.getCZ(), MEDSPLITTER.Topology.getFaceList(), MEDSPLITTER.Topology.getFaceNumber(), MEDSPLITTER.MESHCollection.getMesh(), MEDSPLITTER.MESHCollection.getMeshDimension(), MEDSPLITTER.Topology.getNodeList(), MEDSPLITTER.Topology.getNodeNumber(), MEDSPLITTER.MESHCollection.getSubdomainBoundaryCreates(), MEDSPLITTER.MESHCollection.getTopology(), MEDSPLITTER.MESHCollection.isDimensionOK(), MEDSPLITTER.MESHCollectionDriver.jointSort(), MED_EN.MED_ALL_ELEMENTS, MED_EN.MED_CELL, MED_EN.MED_EDGE, MED_EN.MED_FACE, MED_EN.MED_NODE, MED_EN.MED_POINT1, med_field_anal.mesh_name, MED_EN.meshEntities, MESSAGE_MED, SCRUTE_MED, test_NonCoincidentDEC.size, medClient_test.type, medClient_test.types, and MEDSPLITTER.MESHCollectionDriver.writeElementJoint().
std::vector<std::string> MEDSPLITTER.MESHCollectionDriver._filename [protected] |
std::vector<std::string> MEDSPLITTER.MESHCollectionDriver._meshname [protected] |