#include <MEDFileMesh.hxx>

Public Member Functions | |
| bool | isEqual (const MEDFileMesh *other, double eps, std::string &what) const |
| void | clearNonDiscrAttributes () const |
| ~MEDFileUMesh () | |
| void | write (const char *fileName, int mode) const throw (INTERP_KERNEL::Exception) |
| int | getMeshDimension () const throw (INTERP_KERNEL::Exception) |
| int | getSizeAtLevel (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception) |
| const DataArrayInt * | getFamilyFieldAtLevel (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception) |
| const DataArrayInt * | getNumberFieldAtLevel (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception) |
| const DataArrayInt * | getRevNumberFieldAtLevel (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception) |
| std::vector< int > | getNonEmptyLevels () const |
| std::vector< int > | getNonEmptyLevelsExt () const |
| std::vector< int > | getGrpNonEmptyLevels (const char *grp) const throw (INTERP_KERNEL::Exception) |
| std::vector< int > | getGrpNonEmptyLevelsExt (const char *grp) const throw (INTERP_KERNEL::Exception) |
| std::vector< int > | getFamNonEmptyLevels (const char *fam) const throw (INTERP_KERNEL::Exception) |
| std::vector< int > | getFamNonEmptyLevelsExt (const char *fam) const throw (INTERP_KERNEL::Exception) |
| std::vector< int > | getGrpsNonEmptyLevels (const std::vector< std::string > &grps) const throw (INTERP_KERNEL::Exception) |
| std::vector< int > | getGrpsNonEmptyLevelsExt (const std::vector< std::string > &grps) const throw (INTERP_KERNEL::Exception) |
| std::vector< int > | getFamsNonEmptyLevels (const std::vector< std::string > &fams) const throw (INTERP_KERNEL::Exception) |
| std::vector< int > | getFamsNonEmptyLevelsExt (const std::vector< std::string > &fams) const throw (INTERP_KERNEL::Exception) |
| DataArrayDouble * | getCoords () const |
| MEDCouplingUMesh * | getGroup (int meshDimRelToMaxExt, const char *grp, bool renum=false) const throw (INTERP_KERNEL::Exception) |
| MEDCouplingUMesh * | getGroups (int meshDimRelToMaxExt, const std::vector< std::string > &grps, bool renum=false) const throw (INTERP_KERNEL::Exception) |
| MEDCouplingUMesh * | getFamily (int meshDimRelToMaxExt, const char *fam, bool renum=false) const throw (INTERP_KERNEL::Exception) |
| MEDCouplingUMesh * | getFamilies (int meshDimRelToMaxExt, const std::vector< std::string > &fams, bool renum=false) const throw (INTERP_KERNEL::Exception) |
| DataArrayInt * | getFamiliesArr (int meshDimRelToMaxExt, const std::vector< std::string > &fams, bool renum=false) const throw (INTERP_KERNEL::Exception) |
| MEDCouplingUMesh * | getMeshAtLevel (int meshDimRelToMaxExt, bool renum=false) const throw (INTERP_KERNEL::Exception) |
| MEDCouplingMesh * | getGenMeshAtLevel (int meshDimRelToMax, bool renum=false) const throw (INTERP_KERNEL::Exception) |
| MEDCouplingUMesh * | getLevel0Mesh (bool renum=false) const throw (INTERP_KERNEL::Exception) |
| MEDCouplingUMesh * | getLevelM1Mesh (bool renum=false) const throw (INTERP_KERNEL::Exception) |
| MEDCouplingUMesh * | getLevelM2Mesh (bool renum=false) const throw (INTERP_KERNEL::Exception) |
| MEDCouplingUMesh * | getLevelM3Mesh (bool renum=false) const throw (INTERP_KERNEL::Exception) |
| void | setFamilyNameAttachedOnId (int id, const std::string &newFamName) throw (INTERP_KERNEL::Exception) |
| void | setCoords (DataArrayDouble *coords) throw (INTERP_KERNEL::Exception) |
| void | eraseGroupsAtLevel (int meshDimRelToMaxExt) throw (INTERP_KERNEL::Exception) |
| void | setFamilyField (DataArrayInt *arr, const std::vector< std::vector< int > > &userfids, const std::vector< std::string > &grpNames, bool renum=false) throw (INTERP_KERNEL::Exception) |
| void | setFamilyFieldArr (int meshDimRelToMaxExt, DataArrayInt *famArr) throw (INTERP_KERNEL::Exception) |
| void | setRenumFieldArr (int meshDimRelToMaxExt, DataArrayInt *renumArr) throw (INTERP_KERNEL::Exception) |
| void | addNodeGroup (const std::string &name, const std::vector< int > &ids) throw (INTERP_KERNEL::Exception) |
| void | removeMeshAtLevel (int meshDimRelToMax) throw (INTERP_KERNEL::Exception) |
| void | setMeshAtLevel (int meshDimRelToMax, MEDCouplingUMesh *m, bool newOrOld=false) throw (INTERP_KERNEL::Exception) |
| void | setMeshAtLevelGen (int meshDimRelToMax, MEDCouplingUMesh *m, bool newOrOld) throw (INTERP_KERNEL::Exception) |
| void | setGroupsFromScratch (int meshDimRelToMax, const std::vector< const MEDCouplingUMesh * > &ms) throw (INTERP_KERNEL::Exception) |
| void | setGroupsOnSetMesh (int meshDimRelToMax, const std::vector< const MEDCouplingUMesh * > &ms, bool renum) throw (INTERP_KERNEL::Exception) |
| void | optimizeFamilies () throw (INTERP_KERNEL::Exception) |
Static Public Member Functions | |
| static MEDFileUMesh * | New (const char *fileName, const char *mName, int dt=-1, int it=-1) throw (INTERP_KERNEL::Exception) |
| static MEDFileUMesh * | New (const char *fileName) throw (INTERP_KERNEL::Exception) |
| static MEDFileUMesh * | New () |
Private Member Functions | |
| MEDFileUMesh () | |
| MEDFileUMesh (med_idt fid, const char *mName, int dt, int it) throw (INTERP_KERNEL::Exception) | |
| void | loadUMeshFromFile (med_idt fid, const char *mName, int dt, int it) throw (INTERP_KERNEL::Exception) |
| const MEDFileUMeshSplitL1 * | getMeshAtLevSafe (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception) |
| MEDFileUMeshSplitL1 * | getMeshAtLevSafe (int meshDimRelToMaxExt) throw (INTERP_KERNEL::Exception) |
| void | checkMeshDimCoherency (int meshDim, int meshDimRelToMax) const throw (INTERP_KERNEL::Exception) |
| DataArrayDouble * | checkMultiMesh (const std::vector< const MEDCouplingUMesh * > &ms) const throw (INTERP_KERNEL::Exception) |
| void | computeRevNum () const |
| void | synchronizeTinyInfoOnLeaves () const |
Private Attributes | |
| std::vector < MEDCouplingAutoRefCountObjectPtr < MEDFileUMeshSplitL1 > > | _ms |
| MEDCouplingAutoRefCountObjectPtr < DataArrayDouble > | _coords |
| MEDCouplingAutoRefCountObjectPtr < DataArrayInt > | _fam_coords |
| MEDCouplingAutoRefCountObjectPtr < DataArrayInt > | _num_coords |
| MEDCouplingAutoRefCountObjectPtr < DataArrayInt > | _rev_num_coords |
Friends | |
| class | MEDFileMesh |
| MEDFileUMesh::~MEDFileUMesh | ( | ) |
| MEDFileUMesh::MEDFileUMesh | ( | ) | [private] |
| MEDFileUMesh::MEDFileUMesh | ( | med_idt | fid, |
| const char * | mName, | ||
| int | dt, | ||
| int | it | ||
| ) | throw (INTERP_KERNEL::Exception) [private] |
References Med_Gen_test.dt, and Med_Gen_test.it.
| MEDFileUMesh * MEDFileUMesh::New | ( | const char * | fileName, |
| const char * | mName, | ||
| int | dt = -1, |
||
| int | it = -1 |
||
| ) | throw (INTERP_KERNEL::Exception) [static] |
Reimplemented from ParaMEDMEM.MEDFileMesh.
References MEDFileUtilities.CheckFileForRead(), Med_Gen_test.dt, Med_Gen_test.fileName, and Med_Gen_test.it.
| MEDFileUMesh * MEDFileUMesh::New | ( | const char * | fileName | ) | throw (INTERP_KERNEL::Exception) [static] |
Reimplemented from ParaMEDMEM.MEDFileMesh.
References MEDFileUtilities.CheckFileForRead(), Med_Gen_test.dt, Med_Gen_test.fileName, ParaMEDMEM.MEDFileMeshL2.GetMeshIdFromName(), MEDLoader.GetMeshNames(), and Med_Gen_test.it.
| MEDFileUMesh * MEDFileUMesh::New | ( | ) | [static] |
References ParaMEDMEM.MEDFileUMesh.MEDFileUMesh().
| bool MEDFileUMesh::isEqual | ( | const MEDFileMesh * | other, |
| double | eps, | ||
| std::string & | what | ||
| ) | const [virtual] |
Reimplemented from ParaMEDMEM.MEDFileMesh.
References ParaMEDMEM.MEDFileUMesh._coords, ParaMEDMEM.MEDFileUMesh._fam_coords, ParaMEDMEM.MEDFileUMesh._ms, ParaMEDMEM.MEDFileUMesh._num_coords, ParaMEDMEM.MEDFileUMesh.clearNonDiscrAttributes(), ParaMEDMEM.MEDFileUMeshSplitL1.isEqual(), ParaMEDMEM.DataArrayInt.isEqual(), ParaMEDMEM.DataArrayDouble.isEqual(), ParaMEDMEM.MEDFileMesh.isEqual(), testMEDMEM.ret, TestMedCorba3.s1, and TestMedCorba3.s2.
| void MEDFileUMesh::clearNonDiscrAttributes | ( | ) | const [virtual] |
| void MEDFileUMesh::write | ( | const char * | fileName, |
| int | mode | ||
| ) | const throw (INTERP_KERNEL::Exception) [virtual] |
Implements ParaMEDMEM.MEDFileMesh.
References MEDLoaderBase.buildEmptyString(), MEDFileUtilities.CheckMEDCode(), medClient_test.desc, Med_Gen_test.fileName, Med_Gen_test.it, MED_EN.MED_CARTESIAN, med_test3.mode, MEDLoaderBase.safeStrCpy(), MEDLoaderBase.safeStrCpy2(), batchmode_medcorba_test.spaceDim, MEDLoaderBase.splitIntoNameAndUnit(), MEDFileUtilities.TraduceWriteMode(), medMeshing_test.unit, ParaMEDMEM.MEDFileUMeshL2.WriteCoords(), and ParaMEDMEM.MEDFileMeshL2.WriteFamiliesAndGrps().
| int MEDFileUMesh::getMeshDimension | ( | ) | const throw (INTERP_KERNEL::Exception) [virtual] |
Implements ParaMEDMEM.MEDFileMesh.
References ParaMEDMEM.MEDFileUMesh._ms, and Med_Gen_test.it.
| int MEDFileUMesh::getSizeAtLevel | ( | int | meshDimRelToMaxExt | ) | const throw (INTERP_KERNEL::Exception) [virtual] |
Implements ParaMEDMEM.MEDFileMesh.
References ParaMEDMEM.DataArray.getNumberOfTuples().
| const DataArrayInt * MEDFileUMesh::getFamilyFieldAtLevel | ( | int | meshDimRelToMaxExt | ) | const throw (INTERP_KERNEL::Exception) [virtual] |
Implements ParaMEDMEM.MEDFileMesh.
References ParaMEDMEM.MEDFileUMeshSplitL1.getFamilyField().
| const DataArrayInt * MEDFileUMesh::getNumberFieldAtLevel | ( | int | meshDimRelToMaxExt | ) | const throw (INTERP_KERNEL::Exception) [virtual] |
Implements ParaMEDMEM.MEDFileMesh.
References ParaMEDMEM.MEDFileUMeshSplitL1.getNumberField().
| const DataArrayInt * MEDFileUMesh::getRevNumberFieldAtLevel | ( | int | meshDimRelToMaxExt | ) | const throw (INTERP_KERNEL::Exception) [virtual] |
Implements ParaMEDMEM.MEDFileMesh.
References ParaMEDMEM.MEDFileUMeshSplitL1.getRevNumberField().
| std::vector< int > MEDFileUMesh::getNonEmptyLevels | ( | ) | const |
References ParaMEDMEM.MEDFileUMesh._ms, Med_Gen_test.it, and testMEDMEM.ret.
| std::vector< int > MEDFileUMesh::getNonEmptyLevelsExt | ( | ) | const |
| std::vector< int > MEDFileUMesh::getGrpNonEmptyLevels | ( | const char * | grp | ) | const throw (INTERP_KERNEL::Exception) |
This methods returns all relative mesh levels where group 'grp' is defined excluded nodes. To include nodes call MEDFileUMesh.getGrpNonEmptyLevelsExt method.
| std::vector< int > MEDFileUMesh::getGrpNonEmptyLevelsExt | ( | const char * | grp | ) | const throw (INTERP_KERNEL::Exception) |
This method is a generalization of MEDFileUMesh.getGrpNonEmptyLevelsExt. It looks at the node level to state if the group 'grp' has a part lying on node.
| std::vector< int > MEDFileUMesh::getFamNonEmptyLevels | ( | const char * | fam | ) | const throw (INTERP_KERNEL::Exception) |
This methods returns all relative mesh levels where family 'fam' is defined excluded nodes. To include nodes call MEDFileUMesh.getFamNonEmptyLevelsExt method.
| std::vector< int > MEDFileUMesh::getFamNonEmptyLevelsExt | ( | const char * | fam | ) | const throw (INTERP_KERNEL::Exception) |
This method is a generalization of MEDFileUMesh.getFamNonEmptyLevels. It looks at the node level to state if the family 'fam' has a part lying on node.
| std::vector< int > MEDFileUMesh::getGrpsNonEmptyLevels | ( | const std::vector< std::string > & | grps | ) | const throw (INTERP_KERNEL::Exception) |
This methods returns all relative mesh levels where groups 'grps' are defined excluded nodes. To include nodes call MEDFileUMesh.getGrpsNonEmptyLevelsExt method.
| std::vector< int > MEDFileUMesh::getGrpsNonEmptyLevelsExt | ( | const std::vector< std::string > & | grps | ) | const throw (INTERP_KERNEL::Exception) |
This method is a generalization of MEDFileUMesh.getGrpsNonEmptyLevels. It looks at the node level to state if the families 'fams' has a part lying on node.
| std::vector< int > MEDFileUMesh::getFamsNonEmptyLevels | ( | const std::vector< std::string > & | fams | ) | const throw (INTERP_KERNEL::Exception) |
This methods returns all relative mesh levels where families 'fams' are defined excluded nodes. To include nodes call MEDFileUMesh.getFamsNonEmptyLevelsExt method.
References Med_Gen_test.it, and testMEDMEM.ret.
| std::vector< int > MEDFileUMesh::getFamsNonEmptyLevelsExt | ( | const std::vector< std::string > & | fams | ) | const throw (INTERP_KERNEL::Exception) |
This method is a generalization of MEDFileUMesh.getFamsNonEmptyLevels. It looks at the node level to state if the families 'fams' has a part lying on node.
References ParaMEDMEM.DataArrayInt.presenceOfValue(), and testMEDMEM.ret.
| DataArrayDouble * MEDFileUMesh::getCoords | ( | ) | const |
References ParaMEDMEM.MEDFileUMesh._coords, and ParaMEDMEM.RefCountObject.incrRef().
| MEDCouplingUMesh * MEDFileUMesh::getGroup | ( | int | meshDimRelToMaxExt, |
| const char * | grp, | ||
| bool | renum = false |
||
| ) | const throw (INTERP_KERNEL::Exception) |
References testMEDMEM.ret, and ParaMEDMEM.MEDCouplingMesh.setName().
| MEDCouplingUMesh * MEDFileUMesh::getGroups | ( | int | meshDimRelToMaxExt, |
| const std::vector< std::string > & | grps, | ||
| bool | renum = false |
||
| ) | const throw (INTERP_KERNEL::Exception) |
| MEDCouplingUMesh * MEDFileUMesh::getFamily | ( | int | meshDimRelToMaxExt, |
| const char * | fam, | ||
| bool | renum = false |
||
| ) | const throw (INTERP_KERNEL::Exception) |
References testMEDMEM.ret, and ParaMEDMEM.MEDCouplingMesh.setName().
| MEDCouplingUMesh * MEDFileUMesh::getFamilies | ( | int | meshDimRelToMaxExt, |
| const std::vector< std::string > & | fams, | ||
| bool | renum = false |
||
| ) | const throw (INTERP_KERNEL::Exception) |
| DataArrayInt * MEDFileUMesh::getFamiliesArr | ( | int | meshDimRelToMaxExt, |
| const std::vector< std::string > & | fams, | ||
| bool | renum = false |
||
| ) | const throw (INTERP_KERNEL::Exception) [virtual] |
| MEDCouplingUMesh * MEDFileUMesh::getMeshAtLevel | ( | int | meshDimRelToMaxExt, |
| bool | renum = false |
||
| ) | const throw (INTERP_KERNEL::Exception) |
| MEDCouplingMesh * MEDFileUMesh::getGenMeshAtLevel | ( | int | meshDimRelToMax, |
| bool | renum = false |
||
| ) | const throw (INTERP_KERNEL::Exception) [virtual] |
Implements ParaMEDMEM.MEDFileMesh.
| MEDCouplingUMesh * MEDFileUMesh::getLevel0Mesh | ( | bool | renum = false | ) | const throw (INTERP_KERNEL::Exception) |
| MEDCouplingUMesh * MEDFileUMesh::getLevelM1Mesh | ( | bool | renum = false | ) | const throw (INTERP_KERNEL::Exception) |
| MEDCouplingUMesh * MEDFileUMesh::getLevelM2Mesh | ( | bool | renum = false | ) | const throw (INTERP_KERNEL::Exception) |
| MEDCouplingUMesh * MEDFileUMesh::getLevelM3Mesh | ( | bool | renum = false | ) | const throw (INTERP_KERNEL::Exception) |
| void MEDFileUMesh::setFamilyNameAttachedOnId | ( | int | id, |
| const std::string & | newFamName | ||
| ) | throw (INTERP_KERNEL::Exception) |
References testRenumbering.id.
| void MEDFileUMesh::setCoords | ( | DataArrayDouble * | coords | ) | throw (INTERP_KERNEL::Exception) |
References coords, and ParaMEDMEM.DataArrayInt.New().
| void MEDFileUMesh::eraseGroupsAtLevel | ( | int | meshDimRelToMaxExt | ) | throw (INTERP_KERNEL::Exception) |
| void MEDFileUMesh::setFamilyField | ( | DataArrayInt * | arr, |
| const std::vector< std::vector< int > > & | userfids, | ||
| const std::vector< std::string > & | grpNames, | ||
| bool | renum = false |
||
| ) | throw (INTERP_KERNEL::Exception) |
| void MEDFileUMesh::setFamilyFieldArr | ( | int | meshDimRelToMaxExt, |
| DataArrayInt * | famArr | ||
| ) | throw (INTERP_KERNEL::Exception) [virtual] |
Implements ParaMEDMEM.MEDFileMesh.
| void MEDFileUMesh::setRenumFieldArr | ( | int | meshDimRelToMaxExt, |
| DataArrayInt * | renumArr | ||
| ) | throw (INTERP_KERNEL::Exception) [virtual] |
Implements ParaMEDMEM.MEDFileMesh.
| void MEDFileUMesh::addNodeGroup | ( | const std::string & | name, |
| const std::vector< int > & | ids | ||
| ) | throw (INTERP_KERNEL::Exception) |
| void MEDFileUMesh::removeMeshAtLevel | ( | int | meshDimRelToMax | ) | throw (INTERP_KERNEL::Exception) |
References Med_Gen_test.it.
| void MEDFileUMesh::setMeshAtLevel | ( | int | meshDimRelToMax, |
| MEDCouplingUMesh * | m, | ||
| bool | newOrOld = false |
||
| ) | throw (INTERP_KERNEL::Exception) |
References TestMedCorba2.m.
| void MEDFileUMesh::setMeshAtLevelGen | ( | int | meshDimRelToMax, |
| MEDCouplingUMesh * | m, | ||
| bool | newOrOld | ||
| ) | throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM.RefCountObject.incrRef(), and TestMedCorba2.m.
| void MEDFileUMesh::setGroupsFromScratch | ( | int | meshDimRelToMax, |
| const std::vector< const MEDCouplingUMesh * > & | ms | ||
| ) | throw (INTERP_KERNEL::Exception) |
| void MEDFileUMesh::setGroupsOnSetMesh | ( | int | meshDimRelToMax, |
| const std::vector< const MEDCouplingUMesh * > & | ms, | ||
| bool | renum | ||
| ) | throw (INTERP_KERNEL::Exception) |
| void MEDFileUMesh::optimizeFamilies | ( | ) | throw (INTERP_KERNEL::Exception) |
| void MEDFileUMesh::loadUMeshFromFile | ( | med_idt | fid, |
| const char * | mName, | ||
| int | dt, | ||
| int | it | ||
| ) | throw (INTERP_KERNEL::Exception) [private] |
References Med_Gen_test.dt, ParaMEDMEM.MEDFileUMeshL2.emptyLev(), ParaMEDMEM.MEDFileUMeshL2.getCoords(), ParaMEDMEM.MEDFileUMeshL2.getCoordsFamily(), ParaMEDMEM.MEDFileUMeshL2.getCoordsNum(), ParaMEDMEM.MEDFileMeshL2.getDescription(), ParaMEDMEM.MEDFileMeshL2.getIteration(), ParaMEDMEM.MEDFileMeshL2.GetMeshIdFromName(), ParaMEDMEM.MEDFileMeshL2.getName(), ParaMEDMEM.MEDFileUMeshL2.getNumberOfLevels(), ParaMEDMEM.MEDFileMeshL2.getOrder(), ParaMEDMEM.MEDFileMeshL2.getTime(), ParaMEDMEM.MEDFileMeshL2.getTimeUnit(), Med_Gen_test.it, ParaMEDMEM.MEDFileUMeshL2.loadAll(), ParaMEDMEM.MEDFileMeshL2.ReadFamiliesAndGrps(), and ParaMEDMEM.UNSTRUCTURED.
| const MEDFileUMeshSplitL1 * MEDFileUMesh::getMeshAtLevSafe | ( | int | meshDimRelToMaxExt | ) | const throw (INTERP_KERNEL::Exception) [private] |
| MEDFileUMeshSplitL1 * MEDFileUMesh::getMeshAtLevSafe | ( | int | meshDimRelToMaxExt | ) | throw (INTERP_KERNEL::Exception) [private] |
| void MEDFileUMesh::checkMeshDimCoherency | ( | int | meshDim, |
| int | meshDimRelToMax | ||
| ) | const throw (INTERP_KERNEL::Exception) [private] |
References Med_Gen_test.it, and med_field_anal.meshDim.
| DataArrayDouble * MEDFileUMesh::checkMultiMesh | ( | const std::vector< const MEDCouplingUMesh * > & | ms | ) | const throw (INTERP_KERNEL::Exception) [private] |
References testMEDMEM.ret.
| void MEDFileUMesh::computeRevNum | ( | ) | const [private] |
| void MEDFileUMesh::synchronizeTinyInfoOnLeaves | ( | ) | const [private, virtual] |
Implements ParaMEDMEM.MEDFileMesh.
References ParaMEDMEM.MEDFileUMesh._ms, and Med_Gen_test.it.
friend class MEDFileMesh [friend] |
std::vector< MEDCouplingAutoRefCountObjectPtr<MEDFileUMeshSplitL1> > ParaMEDMEM.MEDFileUMesh._ms [private] |
MEDCouplingAutoRefCountObjectPtr<DataArrayInt> ParaMEDMEM.MEDFileUMesh._rev_num_coords [mutable, private] |