

Public Member Functions | |
| void | copyTimeInfoFrom (const typename Traits< T >::FieldType *mcf) |
| MEDFileAnyTypeField1TS * | extractPart (const std::map< int, MCAuto< DataArrayIdType > > &extractDef, MEDFileMesh *mm) const |
| MLFieldTraits< T >::F1TSType * | extractPartImpl (const std::map< int, MCAuto< DataArrayIdType > > &extractDef, MEDFileMesh *mm) const |
| Traits< T >::FieldType * | field (const MEDFileMesh *mesh) const |
| Traits< T >::FieldType * | getFieldAtLevel (TypeOfField type, int meshDimRelToMax, int renumPol=0) const |
| Traits< T >::FieldType * | getFieldAtLevelOld (TypeOfField type, const std::string &mname, int meshDimRelToMax, int renumPol=0) const |
| Traits< T >::FieldType * | getFieldAtTopLevel (TypeOfField type, int renumPol=0) const |
| Traits< T >::FieldType * | getFieldOnMeshAtLevel (TypeOfField type, const MEDCouplingMesh *mesh, int renumPol=0) const |
| Traits< T >::FieldType * | getFieldOnMeshAtLevel (TypeOfField type, int meshDimRelToMax, const MEDFileMesh *mesh, int renumPol=0) const |
| Traits< T >::ArrayType * | getFieldWithProfile (TypeOfField type, int meshDimRelToMax, const MEDFileMesh *mesh, DataArrayIdType *&pfl) const |
| Traits< T >::ArrayType * | getUndergroundDataArray () const |
| Traits< T >::ArrayType * | getUndergroundDataArrayExt (std::vector< std::pair< std::pair< INTERP_KERNEL::NormalizedCellType, int >, std::pair< mcIdType, mcIdType > > > &entries) const |
| void | setArray (DataArray *arr) |
| void | setFieldNoProfileSBT (const typename Traits< T >::FieldType *field) |
| void | setFieldProfile (const typename Traits< T >::FieldType *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayIdType *profile) |
| void | setFieldProfileFlatly (const typename Traits< T >::FieldType *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayIdType *profile) |
Public Member Functions inherited from MEDCoupling::MEDFileAnyTypeField1TS | |
| virtual MCAuto< MEDFileAnyTypeField1TS > | buildNewEmpty () const =0 |
| void | changeLocsRefsNamesGen (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif) |
| bool | changeMeshNames (const std::vector< std::pair< std::string, std::string > > &modifTab) |
| void | changePflsRefsNamesGen (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif) |
| MEDFileAnyTypeField1TSWithoutSDA * | contentNotNullBase () |
| const MEDFileAnyTypeField1TSWithoutSDA * | contentNotNullBase () const |
| void | convertMedBallIntoClassic () |
| mcIdType | copyTinyInfoFrom (const MEDCouplingFieldDouble *field, const DataArray *arr) |
| mcIdType | copyTinyInfoFrom (const TimeHolder *th, const MEDCouplingFieldTemplate *field, const DataArray *arr) |
| MEDFileAnyTypeField1TS * | deepCopy () const |
| void | fillIteration (std::pair< int, int > &p) const |
| void | fillTypesOfFieldAvailable (std::vector< TypeOfField > &types) const |
| std::string | getDescription () const |
| int | getDimension () const |
| std::vector< const BigMemoryObject * > | getDirectChildrenWithNull () const |
| std::pair< int, int > | getDtIt () const |
| std::string | getDtUnit () const |
| std::vector< std::vector< std::pair< mcIdType, mcIdType > > > | getFieldSplitedByType (const std::string &mname, std::vector< INTERP_KERNEL::NormalizedCellType > &types, std::vector< std::vector< TypeOfField > > &typesF, std::vector< std::vector< std::string > > &pfls, std::vector< std::vector< std::string > > &locs) const |
| std::size_t | getHeapMemorySizeWithoutChildren () const |
| std::vector< std::string > & | getInfo () |
| const std::vector< std::string > & | getInfo () const |
| int | getIteration () const |
| MEDFileFieldPerMeshPerTypePerDisc * | getLeafGivenMeshAndTypeAndLocId (const std::string &mName, INTERP_KERNEL::NormalizedCellType typ, int locId) |
| const MEDFileFieldPerMeshPerTypePerDisc * | getLeafGivenMeshAndTypeAndLocId (const std::string &mName, INTERP_KERNEL::NormalizedCellType typ, int locId) const |
| std::vector< std::string > | getLocsReallyUsed () const |
| std::vector< std::string > | getLocsReallyUsedMulti () const |
| virtual med_field_type | getMEDFileFieldType () const =0 |
| int | getMeshIteration () const |
| std::string | getMeshName () const |
| int | getMeshOrder () const |
| std::string | getName () const |
| int | getNonEmptyLevels (const std::string &mname, std::vector< int > &levs) const |
| std::size_t | getNumberOfComponents () const |
| int | getOrder () const |
| std::vector< std::string > | getPflsReallyUsed () const |
| std::vector< std::string > | getPflsReallyUsedMulti () const |
| double | getTime (int &iteration, int &order) const |
| std::vector< TypeOfField > | getTypesOfFieldAvailable () const |
| bool | isDealingTS (int iteration, int order) const |
| void | loadArrays () |
| void | loadArraysIfNecessary () |
| void | makeReduction (INTERP_KERNEL::NormalizedCellType ct, TypeOfField tof, const DataArrayIdType *pfl) |
| bool | presenceOfMultiDiscPerGeoType () const |
| void | setDescription (const std::string &description) |
| void | setDtUnit (const std::string &dtUnit) |
| void | setInfo (const std::vector< std::string > &infos) |
| void | setLocNameOnLeaf (const std::string &mName, INTERP_KERNEL::NormalizedCellType typ, int locId, const std::string &newLocName, bool forceRenameOnGlob=false) |
| void | setMeshName (const std::string &newMeshName) |
| void | setName (const std::string &name) |
| void | setProfileNameOnLeaf (const std::string &mName, INTERP_KERNEL::NormalizedCellType typ, int locId, const std::string &newPflName, bool forceRenameOnGlob=false) |
| void | setTime (int iteration, int order, double val) |
| virtual MEDFileAnyTypeField1TS * | shallowCpy () const =0 |
| std::string | simpleRepr () const |
| void | simpleRepr (int bkOffset, std::ostream &oss, int f1tsId) const |
| std::vector< MCAuto< MEDFileAnyTypeField1TS > > | splitComponents () const |
| std::vector< MCAuto< MEDFileAnyTypeField1TS > > | splitDiscretizations () const |
| std::vector< MCAuto< MEDFileAnyTypeField1TS > > | splitMultiDiscrPerGeoTypes () const |
| void | unloadArrays () |
| void | unloadArraysWithoutDataLoss () |
Public Member Functions inherited from MEDCoupling::RefCountObjectOnly | |
| bool | decrRef () const |
| int | getRCValue () const |
| void | incrRef () const |
| RefCountObjectOnly & | operator= (const RefCountObjectOnly &other) |
Public Member Functions inherited from MEDCoupling::BigMemoryObject | |
| std::string | debugHeapMemorySize () const |
| std::vector< const BigMemoryObject * > | getAllTheProgeny () const |
| std::vector< const BigMemoryObject * > | getDirectChildren () const |
| std::size_t | getHeapMemorySize () const |
| std::string | getHeapMemorySizeStr () const |
| bool | isObjectInTheProgeny (const BigMemoryObject *obj) const |
| virtual | ~BigMemoryObject () |
Public Member Functions inherited from MEDCoupling::MEDFileFieldGlobsReal | |
| void | appendGlobs (const MEDFileFieldGlobsReal &other, double eps) |
| void | appendLoc (const std::string &locName, INTERP_KERNEL::NormalizedCellType geoType, const std::vector< double > &refCoo, const std::vector< double > &gsCoo, const std::vector< double > &w) |
| void | appendProfile (DataArrayIdType *pfl) |
| void | changeLocName (const std::string &oldName, const std::string &newName) |
| void | changeLocsNames (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif) |
| void | changeLocsNamesInStruct (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif) |
| void | changePflName (const std::string &oldName, const std::string &newName) |
| void | changePflsNames (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif) |
| void | changePflsNamesInStruct (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif) |
| void | checkGlobsCoherency () const |
| void | checkGlobsLocsPartCoherency () const |
| void | checkGlobsPflsPartCoherency () const |
| std::string | createNewNameOfLoc () const |
| std::string | createNewNameOfPfl () const |
| void | deepCpyGlobs (const MEDFileFieldGlobsReal &other) |
| void | deepCpyOnlyUsedGlobs (const MEDFileFieldGlobsReal &other) |
| bool | existsLoc (const std::string &locName) const |
| bool | existsPfl (const std::string &pflName) const |
| std::vector< const BigMemoryObject * > | getDirectChildrenWithNull () const |
| std::string | getFileName () const |
| std::size_t | getHeapMemorySizeWithoutChildren () const |
| MEDFileFieldLoc & | getLocalization (const std::string &locName) |
| const MEDFileFieldLoc & | getLocalization (const std::string &locName) const |
| MEDFileFieldLoc & | getLocalizationFromId (int locId) |
| const MEDFileFieldLoc & | getLocalizationFromId (int locId) const |
| int | getLocalizationId (const std::string &loc) const |
| std::vector< std::string > | getLocs () const |
| int | getNbOfGaussPtPerCell (int locId) const |
| std::vector< std::string > | getPfls () const |
| DataArrayIdType * | getProfile (const std::string &pflName) |
| const DataArrayIdType * | getProfile (const std::string &pflName) const |
| DataArrayIdType * | getProfileFromId (int pflId) |
| const DataArrayIdType * | getProfileFromId (int pflId) const |
| int | getProfileId (const std::string &pfl) const |
| void | killLocalizationIds (const std::vector< int > &locIds) |
| void | killProfileIds (const std::vector< int > &pflIds) |
| void | killStructureElementsInGlobs () |
| void | loadAllGlobals (med_idt fid, const MEDFileEntities *entities=0) |
| void | loadGlobals (med_idt fid) |
| void | loadProfileInFile (med_idt fid, int id) |
| void | loadProfileInFile (med_idt fid, int id, const std::string &pflName) |
| MEDFileFieldGlobsReal () | |
| MEDFileFieldGlobsReal (med_idt fid) | |
| void | resetContent () |
| void | setFileName (const std::string &fileName) |
| void | shallowCpyGlobs (const MEDFileFieldGlobsReal &other) |
| void | shallowCpyOnlyUsedGlobs (const MEDFileFieldGlobsReal &other) |
| void | simpleReprGlobs (std::ostream &oss) const |
| std::vector< std::vector< int > > | whichAreEqualLocs (double eps) const |
| std::vector< std::vector< int > > | whichAreEqualProfiles () const |
| void | writeGlobals (med_idt fid, const MEDFileWritable &opt) const |
| std::vector< std::pair< std::vector< std::string >, std::string > > | zipLocsNames (double eps) |
| std::vector< std::pair< std::vector< std::string >, std::string > > | zipPflsNames () |
| virtual | ~MEDFileFieldGlobsReal () |
Static Public Member Functions | |
| static MLFieldTraits< T >::F1TSType * | New () |
| static MLFieldTraits< T >::F1TSType * | New (const std::string &fileName, bool loadAll=true) |
| static MLFieldTraits< T >::F1TSType * | New (const std::string &fileName, const std::string &fieldName, bool loadAll=true) |
| static MLFieldTraits< T >::F1TSType * | New (const std::string &fileName, const std::string &fieldName, int iteration, int order, bool loadAll=true) |
| static MLFieldTraits< T >::F1TSType * | New (const typename MLFieldTraits< T >::F1TSWSDAType &other, bool shallowCopyOfContent) |
| static MLFieldTraits< T >::F1TSType * | New (DataArrayByte *db) |
| static MLFieldTraits< T >::F1TSType * | New (med_idt fid, bool loadAll=true) |
| static MLFieldTraits< T >::F1TSType * | New (med_idt fid, const std::string &fieldName, bool loadAll=true) |
| static MLFieldTraits< T >::F1TSType * | New (med_idt fid, const std::string &fieldName, int iteration, int order, bool loadAll=true) |
| static Traits< T >::ArrayType * | ReturnSafelyTypedDataArray (MCAuto< DataArray > &arr) |
| static MCAuto< typename Traits< T >::FieldType > | SetDataArrayInField (MEDCouplingFieldDouble *f, MCAuto< DataArray > &arr) |
| static MCAuto< MEDCouplingFieldDouble > | ToFieldTemplateWithTime (const typename Traits< T >::FieldType *f) |
Static Public Member Functions inherited from MEDCoupling::MEDFileAnyTypeField1TS | |
| static int | LocateField (med_idt fid, const std::string &fieldName, int &posCFormat, med_field_type &typcha, std::vector< std::string > &infos, std::string &dtunitOut, std::string &meshName) |
| static int | LocateField2 (med_idt fid, int fieldIdCFormat, bool checkFieldId, std::string &fieldName, med_field_type &typcha, std::vector< std::string > &infos, std::string &dtunitOut, std::string &meshName) |
| static MEDFileAnyTypeField1TS * | New (const std::string &fileName, bool loadAll=true) |
| static MEDFileAnyTypeField1TS * | New (const std::string &fileName, const std::string &fieldName, bool loadAll=true) |
| static MEDFileAnyTypeField1TS * | New (const std::string &fileName, const std::string &fieldName, int iteration, int order, bool loadAll=true) |
| static MEDFileAnyTypeField1TS * | New (med_idt fid, bool loadAll=true) |
| static MEDFileAnyTypeField1TS * | New (med_idt fid, const std::string &fieldName, bool loadAll=true) |
| static MEDFileAnyTypeField1TS * | New (med_idt fid, const std::string &fieldName, int iteration, int order, bool loadAll=true) |
| static MEDFileAnyTypeField1TS * | NewAdv (const std::string &fileName, const std::string &fieldName, int iteration, int order, bool loadAll, const MEDFileEntities *entities) |
| static MEDFileAnyTypeField1TS * | NewAdv (med_idt fid, const std::string &fieldName, int iteration, int order, bool loadAll, const MEDFileEntities *entities) |
| static MEDFileAnyTypeField1TS * | NewAdv (med_idt fid, const std::string &fieldName, int iteration, int order, const MEDFileEntities *entities, const std::vector< mcIdType > &distrib) |
Static Public Member Functions inherited from MEDCoupling::BigMemoryObject | |
| static std::size_t | GetHeapMemorySizeOfObjs (const std::vector< const BigMemoryObject * > &objs) |
Protected Member Functions | |
| MLFieldTraits< T >::F1TSWSDAType * | contentNotNull () |
| const MLFieldTraits< T >::F1TSWSDAType * | contentNotNull () const |
| MEDFileTemplateField1TS () | |
| MEDFileTemplateField1TS (const typename MLFieldTraits< T >::F1TSWSDAType &other, bool shallowCopyOfContent) | |
| MEDFileTemplateField1TS (med_idt fid, bool loadAll, const MEDFileMeshes *ms) | |
| MEDFileTemplateField1TS (med_idt fid, const std::string &fieldName, bool loadAll, const MEDFileMeshes *ms) | |
| MEDFileTemplateField1TS (med_idt fid, const std::string &fieldName, int iteration, int order, bool loadAll, const MEDFileMeshes *ms) | |
| void | setFieldProfileGeneral (const typename Traits< T >::FieldType *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayIdType *profile, bool smartPflKiller) |
| ~MEDFileTemplateField1TS () | |
Protected Member Functions inherited from MEDCoupling::MEDFileAnyTypeField1TS | |
| std::string | getClassName () const override |
| MEDFileAnyTypeField1TS () | |
| MEDFileAnyTypeField1TS (const MEDFileAnyTypeField1TSWithoutSDA &other, bool shallowCopyOfContent) | |
| MEDFileAnyTypeField1TS (med_idt fid, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities=0) | |
| MEDFileAnyTypeField1TS (med_idt fid, const std::string &fieldName, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities=0) | |
| MEDFileAnyTypeField1TS (med_idt fid, const std::string &fieldName, int iteration, int order, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities=0) | |
| void | writeLL (med_idt fid) const |
Protected Member Functions inherited from MEDCoupling::RefCountObject | |
| RefCountObject () | |
| RefCountObject (const RefCountObject &other) | |
| virtual | ~RefCountObject () |
Protected Member Functions inherited from MEDCoupling::RefCountObjectOnly | |
| RefCountObjectOnly () | |
| RefCountObjectOnly (const RefCountObjectOnly &other) | |
| virtual | ~RefCountObjectOnly () |
Protected Member Functions inherited from MEDCoupling::MEDFileFieldGlobsReal | |
| MEDFileFieldGlobs * | contentNotNull () |
| const MEDFileFieldGlobs * | contentNotNull () const |
Additional Inherited Members | |
Static Protected Member Functions inherited from MEDCoupling::MEDFileAnyTypeField1TS | |
| static MEDFileAnyTypeField1TSWithoutSDA * | AllocateContentFrom (med_idt fid, const std::string &fieldName, int iteration=-1, int order=-1) |
| static MEDFileAnyTypeField1TSWithoutSDA * | BuildContentFrom (med_idt fid, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities) |
| static MEDFileAnyTypeField1TSWithoutSDA * | BuildContentFrom (med_idt fid, const std::string &fieldName, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities) |
| static MEDFileAnyTypeField1TSWithoutSDA * | BuildContentFrom (med_idt fid, const std::string &fieldName, int iteration, int order, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities) |
| static MEDFileAnyTypeField1TSWithoutSDA * | BuildContentFrom (med_idt fid, const std::string &fieldName, int iteration, int order, const PartDefinition *pd, const MEDFileEntities *entities) |
| static MEDFileAnyTypeField1TS * | BuildNewInstanceFromContent (MEDFileAnyTypeField1TSWithoutSDA *c) |
| static MEDFileAnyTypeField1TS * | BuildNewInstanceFromContent (MEDFileAnyTypeField1TSWithoutSDA *c, med_idt fid) |
Protected Attributes inherited from MEDCoupling::MEDFileAnyTypeField1TS | |
| MCAuto< MEDFileAnyTypeField1TSWithoutSDA > | _content |
Protected Attributes inherited from MEDCoupling::MEDFileFieldGlobsReal | |
| MCAuto< MEDFileFieldGlobs > | _globals |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
Returns a new empty instance of MEDFileField1TS.
Referenced by MEDCoupling::MEDFileInt32Field1TS::buildNewEmpty(), MEDCoupling::MEDFileInt64Field1TS::buildNewEmpty(), MEDCoupling::MEDFileAnyTypeField1TS::BuildNewInstanceFromContent(), MEDCoupling::MEDFileField1TS::convertToInt(), and MEDCoupling::MEDFileField1TS::convertToInt64().
|
static |
Returns a new instance of MEDFileField1TS holding data of the first time step of the first field that has been read from a specified MED file.
| [in] | fileName | - the name of the MED file to read. |
| If | reading the file fails. |
|
static |
|
static |
|
static |
Returns a new instance of MEDFileField1TS holding data of the first time step of a given field that has been read from a specified MED file.
| [in] | fileName | - the name of the MED file to read. |
| [in] | fieldName | - the name of the field to read. |
| If | reading the file fails. |
| If | there is no field named fieldName in the file. |
|
static |
|
static |
Returns a new instance of MEDFileField1TS holding data of a given time step of a given field that has been read from a specified MED file.
| [in] | fileName | - the name of the MED file to read. |
| [in] | fieldName | - the name of the field to read. |
| [in] | iteration | - the iteration number of a required time step. |
| [in] | order | - the iteration order number of required time step. |
| If | reading the file fails. |
| If | there is no field named fieldName in the file. |
| If | the required time step is missing from the file. |
|
static |
|
static |
Returns a new instance of MEDFileField1TS. If shallowCopyOfContent is true the content of other is shallow copied. If shallowCopyOfContent is false, other is taken to be the content of this.
Returns a new instance of MEDFileField1TS holding either a shallow copy of a given MEDFileField1TSWithoutSDA ( other ) or other itself.
| [in] | other | - a MEDFileField1TSWithoutSDA to copy. |
| [in] | shallowCopyOfContent | - if true, a shallow copy of other is created. |
|
static |
| Traits< T >::ArrayType * MEDCoupling::MEDFileTemplateField1TS< T >::getFieldWithProfile | ( | TypeOfField | type, |
| int | meshDimRelToMax, | ||
| const MEDFileMesh * | mesh, | ||
| DataArrayIdType *& | pfl | ||
| ) | const |
Returns values and a profile of the field of a given type lying on a given support. For more info, see Dealing with Fields with advanced API.
| [in] | type | - a spatial discretization of the field. |
| [in] | meshDimRelToMax | - a relative dimension of the supporting mesh entities. |
| [in] | mesh | - the supporting mesh. |
| [out] | pfl | - a new instance of DataArrayInt holding ids of mesh entities the field of interest lies on. If the field lies on all entities of the given dimension, all ids in pfl are zero. The caller is to delete this array using decrRef() as it is no more needed. |
| If | there are no mesh entities of meshDimRelToMax dimension in mesh. |
| If | no field of this is lying on mesh. |
| If | no field values of the given type or given meshDimRelToMax are available. |
| void MEDCoupling::MEDFileTemplateField1TS< T >::setArray | ( | DataArray * | arr | ) |
| Traits< T >::ArrayType * MEDCoupling::MEDFileTemplateField1TS< T >::getUndergroundDataArray |
| Traits< T >::ArrayType * MEDCoupling::MEDFileTemplateField1TS< T >::getUndergroundDataArrayExt | ( | std::vector< std::pair< std::pair< INTERP_KERNEL::NormalizedCellType, int >, std::pair< mcIdType, mcIdType > > > & | entries | ) | const |
|
static |
|
static |
| void MEDCoupling::MEDFileTemplateField1TS< T >::copyTimeInfoFrom | ( | const typename Traits< T >::FieldType * | mcf | ) |
| Traits< T >::FieldType * MEDCoupling::MEDFileTemplateField1TS< T >::field | ( | const MEDFileMesh * | mesh | ) | const |
This is the simplest version to fetch a field for MED structure. One drawback : if this is a complex field (multi spatial discretization inside a same field) this method will throw exception and more advance method should be called (getFieldOnMeshAtLevel for example). But for normal usage of field in MED file world this method is the most efficient to fetch data.
| [in] | mesh | - the mesh the field is lying on |
| Traits< T >::FieldType * MEDCoupling::MEDFileTemplateField1TS< T >::getFieldAtLevel | ( | TypeOfField | type, |
| int | meshDimRelToMax, | ||
| int | renumPol = 0 |
||
| ) | const |
Returns a new typename Traits<T>::FieldType of a given type lying on mesh entities of a given dimension of the first mesh in MED file. If this field has not been constructed via file reading, an exception is thrown. For more info, see Dealing with Fields with advanced API.
| [in] | type | - a spatial discretization of interest. |
| [in] | meshDimRelToMax | - a relative dimension of the supporting mesh entities. |
| [in] | renumPol | - specifies how to permute values of the result field according to the optional numbers of cells and nodes, if any. The valid values are
|
| If | this field has not been constructed via file reading. |
| If | the MED file is not readable. |
| If | there is no mesh in the MED file. |
| If | there are no mesh entities of meshDimRelToMax dimension in the mesh. |
| If | no field values of the given type or given meshDimRelToMax are available. |
| Traits< T >::FieldType * MEDCoupling::MEDFileTemplateField1TS< T >::getFieldAtTopLevel | ( | TypeOfField | type, |
| int | renumPol = 0 |
||
| ) | const |
Returns a new typename Traits<T>::FieldType of a given type lying on the top level cells of the first mesh in MED file. If this field has not been constructed via file reading, an exception is thrown. For more info, see Dealing with Fields with advanced API.
| [in] | type | - a spatial discretization of interest. |
| [in] | renumPol | - specifies how to permute values of the result field according to the optional numbers of cells and nodes, if any. The valid values are
|
| If | this field has not been constructed via file reading. |
| If | the MED file is not readable. |
| If | there is no mesh in the MED file. |
| If | no field values of the given type. |
| If | no field values lying on the top level support. |
| Traits< T >::FieldType * MEDCoupling::MEDFileTemplateField1TS< T >::getFieldOnMeshAtLevel | ( | TypeOfField | type, |
| int | meshDimRelToMax, | ||
| const MEDFileMesh * | mesh, | ||
| int | renumPol = 0 |
||
| ) | const |
Returns a new typename Traits<T>::FieldType of a given type lying on a given support. For more info, see Dealing with Fields with advanced API.
| [in] | type | - a spatial discretization of interest. |
| [in] | meshDimRelToMax | - a relative dimension of the supporting mesh entities. |
| [in] | mesh | - the supporting mesh. |
| [in] | renumPol | - specifies how to permute values of the result field according to the optional numbers of cells and nodes, if any. The valid values are
|
| If | there are no mesh entities of meshDimRelToMax dimension in the mesh. |
| If | no field of this is lying on mesh. |
| If | no field values of the given type or given meshDimRelToMax are available. |
| Traits< T >::FieldType * MEDCoupling::MEDFileTemplateField1TS< T >::getFieldOnMeshAtLevel | ( | TypeOfField | type, |
| const MEDCouplingMesh * | mesh, | ||
| int | renumPol = 0 |
||
| ) | const |
Returns a new typename Traits<T>::FieldType of given type lying on a given mesh. For more info, see Dealing with Fields with advanced API.
| [in] | type | - a spatial discretization of the new field. |
| [in] | mesh | - the supporting mesh. |
| [in] | renumPol | - specifies how to permute values of the result field according to the optional numbers of cells and nodes, if any. The valid values are
|
| If | no field of this is lying on mesh. |
| If | the mesh is empty. |
| If | no field values of the given type are available. |
| Traits< T >::FieldType * MEDCoupling::MEDFileTemplateField1TS< T >::getFieldAtLevelOld | ( | TypeOfField | type, |
| const std::string & | mname, | ||
| int | meshDimRelToMax, | ||
| int | renumPol = 0 |
||
| ) | const |
Returns a new typename Traits<T>::FieldType of a given type lying on a given support. This method is called "Old" because in MED3 norm a field has only one meshName attached, so this method is for readers of MED2 files. If this field has not been constructed via file reading, an exception is thrown. For more info, see Dealing with Fields with advanced API.
| [in] | type | - a spatial discretization of interest. |
| [in] | mname | - a name of the supporting mesh. |
| [in] | meshDimRelToMax | - a relative dimension of the supporting mesh entities. |
| [in] | renumPol | - specifies how to permute values of the result field according to the optional numbers of cells and nodes, if any. The valid values are
|
| If | the MED file is not readable. |
| If | there is no mesh named mName in the MED file. |
| If | there are no mesh entities of meshDimRelToMax dimension in the mesh. |
| If | this field has not been constructed via file reading. |
| If | no field of this is lying on the mesh named mName. |
| If | no field values of the given type or given meshDimRelToMax are available. |
| void MEDCoupling::MEDFileTemplateField1TS< T >::setFieldNoProfileSBT | ( | const typename Traits< T >::FieldType * | field | ) |
Adds a MEDCouplingFieldDouble to this. The underlying mesh of the given field is checked if its elements are sorted suitable for writing to MED file ("STB" stands for "Sort By Type"), if not, an exception is thrown. For more info, see Dealing with Fields with advanced API.
| [in] | field | - the field to add to this. |
| If | the name of field is empty. |
| If | the data array of field is not set. |
| If | the data array is already allocated but has different number of components than field. |
| If | the underlying mesh of field has no name. |
| If | elements in the mesh are not in the order suitable for writing to the MED file. |
| void MEDCoupling::MEDFileTemplateField1TS< T >::setFieldProfile | ( | const typename Traits< T >::FieldType * | field, |
| const MEDFileMesh * | mesh, | ||
| int | meshDimRelToMax, | ||
| const DataArrayIdType * | profile | ||
| ) |
Adds a MEDCouplingFieldDouble to this. As described in Main concepts of MED files a field in MED file sense can be an aggregation of several MEDCouplingFieldDouble instances. The mesh support of input parameter field is ignored here, it can be NULL. The support of field field is expected to be those computed with the input parameter mesh, meshDimRelToMax, and profile.
This method will check that the field based on the computed support is coherent. If not an exception will be thrown. A new profile is added only if no equal profile is missing. For more info, see Dealing with Fields with advanced API.
| [in] | field | - the field to add to this. The mesh support of field is ignored. |
| [in] | mesh | - the supporting mesh of field. |
| [in] | meshDimRelToMax | - a relative dimension of mesh entities field lies on (useless if field spatial discretization is ON_NODES). |
| [in] | profile | - ids of mesh entities on which corresponding field values lie. |
| If | either field or mesh or profile has an empty name. |
| If | there are no mesh entities of meshDimRelToMax dimension in mesh. |
| If | the data array of field is not set. |
| If | the data array of this is already allocated but has different number of components than field. |
| If | elements in mesh are not in the order suitable for writing to the MED file. |
| void MEDCoupling::MEDFileTemplateField1TS< T >::setFieldProfileFlatly | ( | const typename Traits< T >::FieldType * | field, |
| const MEDFileMesh * | mesh, | ||
| int | meshDimRelToMax, | ||
| const DataArrayIdType * | profile | ||
| ) |
Same as setFieldProfile except that here profile will be created unconditionally
| MLFieldTraits< T >::F1TSType * MEDCoupling::MEDFileTemplateField1TS< T >::extractPartImpl | ( | const std::map< int, MCAuto< DataArrayIdType > > & | extractDef, |
| MEDFileMesh * | mm | ||
| ) | const |
Return an extraction of this using extractDef map to specify the extraction. The keys of extractDef is level relative to max ext of mm mesh.
References MEDCoupling::MEDFileMesh::getName(), MEDCoupling::ON_CELLS, and MEDCoupling::ON_NODES.
Referenced by MEDCoupling::MEDFileTemplateField1TS< T >::extractPart().
|
virtual |
Implements MEDCoupling::MEDFileAnyTypeField1TS.
References MEDCoupling::MEDFileTemplateField1TS< T >::extractPartImpl().
|
protected |
|
protected |
|
protected |