Version: 9.14.0
MEDCoupling::MEDFileAnyTypeFieldMultiTS Class Referenceabstract
Inheritance diagram for MEDCoupling::MEDFileAnyTypeFieldMultiTS:
Collaboration diagram for MEDCoupling::MEDFileAnyTypeFieldMultiTS:

Public Member Functions

virtual MEDFileAnyTypeFieldMultiTSbuildNewEmpty () const =0
 
MEDFileAnyTypeFieldMultiTSbuildSubPart (const int *startIds, const int *endIds) const
 
MEDFileAnyTypeFieldMultiTSbuildSubPartSlice (int bg, int end, int step) const
 
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)
 
virtual void checkCoherencyOfType (const MEDFileAnyTypeField1TS *f1ts) const =0
 
virtual MEDFileAnyTypeFieldMultiTSdeepCopy () const
 
void eraseEmptyTS ()
 
void eraseTimeStepIds (const int *startIds, const int *endIds)
 
void eraseTimeStepIds2 (int bg, int end, int step)
 
virtual MEDFileAnyTypeFieldMultiTSextractPart (const std::map< int, MCAuto< DataArrayIdType > > &extractDef, MEDFileMesh *mm) const =0
 
MCAuto< MEDFileAnyTypeFieldMultiTSWithoutSDAgetContent ()
 
std::vector< const BigMemoryObject * > getDirectChildrenWithNull () const
 
std::string getDtUnit () const
 
std::vector< std::vector< std::pair< mcIdType, mcIdType > > > getFieldSplitedByType (int iteration, int order, 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
 
const std::vector< std::string > & getInfo () const
 
std::vector< std::pair< int, int > > getIterations () const
 
std::vector< std::string > getLocsReallyUsed () const
 
std::vector< std::string > getLocsReallyUsedMulti () const
 
std::string getMeshName () const
 
std::string getName () const
 
int getNonEmptyLevels (int iteration, int order, const std::string &mname, std::vector< int > &levs) const
 
int getNumberOfComponents () const
 
int getNumberOfTS () const
 
std::vector< std::string > getPflsReallyUsed () const
 
std::vector< std::string > getPflsReallyUsedMulti () const
 
int getPosGivenTime (double time, double eps=1e-8) const
 
int getPosOfTimeStep (int iteration, int order) const
 
MEDFileAnyTypeField1TSgetTimeStep (int iteration, int order) const
 
virtual MEDFileAnyTypeField1TSgetTimeStepAtPos (int pos) const =0
 
MEDFileAnyTypeField1TSgetTimeStepGivenTime (double time, double eps=1e-8) const
 
std::vector< std::pair< int, int > > getTimeSteps (std::vector< double > &ret1) const
 
std::vector< std::vector< TypeOfField > > getTypesOfFieldAvailable () const
 
MEDFileAnyTypeFieldMultiTSIteratoriterator ()
 
void loadArrays ()
 
void loadArraysIfNecessary ()
 
bool presenceOfMultiDiscPerGeoType () const
 
void pushBackTimeStep (MEDFileAnyTypeField1TS *f1ts)
 
void pushBackTimeSteps (const std::vector< MEDFileAnyTypeField1TS * > &f1ts)
 
void pushBackTimeSteps (MEDFileAnyTypeFieldMultiTS *fmts)
 
void setDtUnit (const std::string &dtUnit)
 
void setInfo (const std::vector< std::string > &info)
 
void setMeshName (const std::string &newMeshName)
 
void setName (const std::string &name)
 
virtual MEDFileAnyTypeFieldMultiTSshallowCpy () const =0
 
std::string simpleRepr () const
 
void simpleRepr (int bkOffset, std::ostream &oss, int fmtsId) const
 
std::vector< MCAuto< MEDFileAnyTypeFieldMultiTS > > splitComponents () const
 
std::vector< MCAuto< MEDFileAnyTypeFieldMultiTS > > splitDiscretizations () const
 
std::vector< MCAuto< MEDFileAnyTypeFieldMultiTS > > splitMultiDiscrPerGeoTypes () const
 
void synchronizeNameScope ()
 
void unloadArrays ()
 
void unloadArraysWithoutDataLoss ()
 
void writeLL (med_idt fid) const
 
- Public Member Functions inherited from MEDCoupling::RefCountObjectOnly
bool decrRef () const
 
int getRCValue () const
 
void incrRef () const
 
RefCountObjectOnlyoperator= (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 MCAuto< MEDFileAnyTypeFieldMultiTSAggregate (const std::vector< const MEDFileAnyTypeFieldMultiTS * > &fmtss, const std::vector< std::vector< std::pair< int, mcIdType > > > &dts)
 
static MEDFileAnyTypeFieldMultiTSBuildNewInstanceFromContent (MEDFileAnyTypeFieldMultiTSWithoutSDA *c)
 
static int CheckSupportAcrossTime (MEDFileAnyTypeFieldMultiTS *f0, MEDFileAnyTypeFieldMultiTS *f1, const MEDFileMesh *mesh, TypeOfField &tof0, TypeOfField &tof1)
 
static MEDFileAnyTypeFieldMultiTSNew (const std::string &fileName, bool loadAll=true)
 
static MEDFileAnyTypeFieldMultiTSNew (const std::string &fileName, const std::string &fieldName, bool loadAll=true)
 
static MEDFileAnyTypeFieldMultiTSNew (med_idt fid, bool loadAll=true)
 
static MEDFileAnyTypeFieldMultiTSNew (med_idt fid, const std::string &fieldName, bool loadAll=true)
 
static std::vector< std::vector< MEDFileAnyTypeFieldMultiTS * > > SplitIntoCommonTimeSeries (const std::vector< MEDFileAnyTypeFieldMultiTS * > &vectFMTS)
 
static std::vector< std::vector< MEDFileAnyTypeFieldMultiTS * > > SplitPerCommonSupport (const std::vector< MEDFileAnyTypeFieldMultiTS * > &vectFMTS, const MEDFileMesh *mesh, std::vector< MCAuto< MEDFileFastCellSupportComparator > > &fsc)
 
- Static Public Member Functions inherited from MEDCoupling::BigMemoryObject
static std::size_t GetHeapMemorySizeOfObjs (const std::vector< const BigMemoryObject * > &objs)
 

Protected Member Functions

MEDFileAnyTypeFieldMultiTSWithoutSDAcontentNotNullBase ()
 
const MEDFileAnyTypeFieldMultiTSWithoutSDAcontentNotNullBase () const
 
std::string getClassName () const override
 
 MEDFileAnyTypeFieldMultiTS ()
 
 MEDFileAnyTypeFieldMultiTS (const MEDFileAnyTypeFieldMultiTSWithoutSDA &other, bool shallowCopyOfContent)
 
 MEDFileAnyTypeFieldMultiTS (med_idt fid, bool loadAll, const MEDFileMeshes *ms)
 
 MEDFileAnyTypeFieldMultiTS (med_idt fid, const std::string &fieldName, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities=0)
 
- 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
MEDFileFieldGlobscontentNotNull ()
 
const MEDFileFieldGlobscontentNotNull () const
 

Static Protected Member Functions

static MEDFileAnyTypeFieldMultiTSWithoutSDABuildContentFrom (med_idt fid, bool loadAll, const MEDFileMeshes *ms)
 
static MEDFileAnyTypeFieldMultiTSWithoutSDABuildContentFrom (med_idt fid, const std::string &fieldName, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities)
 
static MEDFileAnyTypeFieldMultiTSBuildNewInstanceFromContent (MEDFileAnyTypeFieldMultiTSWithoutSDA *c, med_idt fid)
 

Protected Attributes

MCAuto< MEDFileAnyTypeFieldMultiTSWithoutSDA_content
 
- Protected Attributes inherited from MEDCoupling::MEDFileFieldGlobsReal
MCAuto< MEDFileFieldGlobs_globals
 

Detailed Description

User class.

Constructor & Destructor Documentation

◆ MEDFileAnyTypeFieldMultiTS() [1/4]

MEDFileAnyTypeFieldMultiTS::MEDFileAnyTypeFieldMultiTS ( )
protected

◆ MEDFileAnyTypeFieldMultiTS() [2/4]

MEDFileAnyTypeFieldMultiTS::MEDFileAnyTypeFieldMultiTS ( med_idt  fid,
bool  loadAll,
const MEDFileMeshes ms 
)
protected

◆ MEDFileAnyTypeFieldMultiTS() [3/4]

MEDFileAnyTypeFieldMultiTS::MEDFileAnyTypeFieldMultiTS ( med_idt  fid,
const std::string &  fieldName,
bool  loadAll,
const MEDFileMeshes ms,
const MEDFileEntities *  entities = 0 
)
protected

◆ MEDFileAnyTypeFieldMultiTS() [4/4]

MEDFileAnyTypeFieldMultiTS::MEDFileAnyTypeFieldMultiTS ( const MEDFileAnyTypeFieldMultiTSWithoutSDA other,
bool  shallowCopyOfContent 
)
protected

This constructor is a shallow copy constructor. If shallowCopyOfContent is true the content of other is shallow copied. If shallowCopyOfContent is false, other is taken to be the content of this.

Warning
this is a shallow copy constructor

References _content, MEDCoupling::RefCountObjectOnly::incrRef(), and MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::shallowCpy().

Member Function Documentation

◆ BuildNewInstanceFromContent() [1/2]

◆ BuildContentFrom() [1/2]

MEDFileAnyTypeFieldMultiTSWithoutSDA * MEDFileAnyTypeFieldMultiTS::BuildContentFrom ( med_idt  fid,
bool  loadAll,
const MEDFileMeshes ms 
)
staticprotected

◆ BuildContentFrom() [2/2]

MEDFileAnyTypeFieldMultiTSWithoutSDA * MEDFileAnyTypeFieldMultiTS::BuildContentFrom ( med_idt  fid,
const std::string &  fieldName,
bool  loadAll,
const MEDFileMeshes ms,
const MEDFileEntities *  entities 
)
staticprotected

◆ getClassName()

std::string MEDCoupling::MEDFileAnyTypeFieldMultiTS::getClassName ( ) const
overrideprotectedvirtual

◆ New() [1/4]

MEDFileAnyTypeFieldMultiTS * MEDFileAnyTypeFieldMultiTS::New ( const std::string &  fileName,
bool  loadAll = true 
)
static

Returns a new instance of MEDFileFieldMultiTS or MEDFileInt32FieldMultiTS holding data of the first field that has been read from a specified MED file.

Parameters
[in]fileName- the name of the MED file to read.
Returns
MEDFileFieldMultiTS * - a new instance of MEDFileFieldMultiTS or MEDFileInt32FieldMultiTS. The caller is to delete this field using decrRef() as it is no more needed.
Exceptions
Ifreading the file fails.

Referenced by MEDCoupling::GetTypesOfField(), and New().

◆ New() [2/4]

MEDFileAnyTypeFieldMultiTS * MEDFileAnyTypeFieldMultiTS::New ( med_idt  fid,
bool  loadAll = true 
)
static

◆ New() [3/4]

MEDFileAnyTypeFieldMultiTS * MEDFileAnyTypeFieldMultiTS::New ( const std::string &  fileName,
const std::string &  fieldName,
bool  loadAll = true 
)
static

Returns a new instance of MEDFileFieldMultiTS or MEDFileInt32FieldMultiTS holding data of a given field that has been read from a specified MED file.

Parameters
[in]fileName- the name of the MED file to read.
[in]fieldName- the name of the field to read.
Returns
MEDFileFieldMultiTS * - a new instance of MEDFileFieldMultiTS or MEDFileInt32FieldMultiTS. The caller is to delete this field using decrRef() as it is no more needed.
Exceptions
Ifreading the file fails.
Ifthere is no field named fieldName in the file.

References New().

◆ New() [4/4]

MEDFileAnyTypeFieldMultiTS * MEDFileAnyTypeFieldMultiTS::New ( med_idt  fid,
const std::string &  fieldName,
bool  loadAll = true 
)
static

◆ BuildNewInstanceFromContent() [2/2]

◆ loadArrays()

void MEDFileAnyTypeFieldMultiTS::loadArrays ( )

This method alloc the arrays and load potentially huge arrays contained in this field. This method should be called when a MEDFileAnyTypeFieldMultiTS::New constructor has been with false as the last parameter. This method can be also called to refresh or reinit values from a file.

Exceptions
Ifthe fileName is not set or points to a non readable MED file.

References contentNotNullBase(), MEDCoupling::MEDFileFieldGlobsReal::getFileName(), and MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::loadBigArraysRecursively().

◆ loadArraysIfNecessary()

void MEDFileAnyTypeFieldMultiTS::loadArraysIfNecessary ( )

This method behaves as MEDFileAnyTypeFieldMultiTS::loadArrays does, the first call, if this was built using a file without loading big arrays. But once data loaded once, this method does nothing.

Exceptions
Ifthe fileName is not set or points to a non readable MED file.
See also
MEDFileAnyTypeFieldMultiTS::loadArrays, MEDFileAnyTypeFieldMultiTS::unloadArrays

References contentNotNullBase(), MEDCoupling::MEDFileFieldGlobsReal::getFileName(), and MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::loadBigArraysRecursivelyIfNecessary().

◆ unloadArrays()

void MEDFileAnyTypeFieldMultiTS::unloadArrays ( )

This method releases potentially big data arrays and so returns to the same heap memory than status loaded with 'loadAll' parameter set to false. WARNING, this method does release arrays even if this does not come from a load of a MED file. So this method can lead to a loss of data. If you want to unload arrays safely call MEDFileAnyTypeFieldMultiTS::unloadArraysWithoutDataLoss instead.

See also
MEDFileAnyTypeFieldMultiTS::loadArrays, MEDFileAnyTypeFieldMultiTS::loadArraysIfNecessary, MEDFileAnyTypeFieldMultiTS::unloadArraysWithoutDataLoss

References contentNotNullBase(), and MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::unloadArrays().

◆ unloadArraysWithoutDataLoss()

void MEDFileAnyTypeFieldMultiTS::unloadArraysWithoutDataLoss ( )

This method potentially releases big data arrays if this is coming from a file. If this has been built from scratch this method will have no effect. This method is the symmetrical method of MEDFileAnyTypeFieldMultiTS::loadArraysIfNecessary. This method is useful to reduce safely amount of heap memory necessary for this by using MED file as database.

See also
MEDFileAnyTypeFieldMultiTS::loadArraysIfNecessary

References contentNotNullBase(), MEDCoupling::MEDFileFieldGlobsReal::getFileName(), and MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::unloadArrays().

◆ writeLL()

◆ getHeapMemorySizeWithoutChildren()

std::size_t MEDFileAnyTypeFieldMultiTS::getHeapMemorySizeWithoutChildren ( ) const
virtual

◆ getDirectChildrenWithNull()

std::vector< const BigMemoryObject * > MEDFileAnyTypeFieldMultiTS::getDirectChildrenWithNull ( ) const
virtual

◆ deepCopy()

MEDFileAnyTypeFieldMultiTS * MEDFileAnyTypeFieldMultiTS::deepCopy ( ) const
virtual

References _content, and shallowCpy().

◆ splitComponents()

std::vector< MCAuto< MEDFileAnyTypeFieldMultiTS > > MEDFileAnyTypeFieldMultiTS::splitComponents ( ) const

This method returns as MEDFileAnyTypeFieldMultiTS new instances as number of components in this. The returned instances are deep copy of this except that for globals that are shared with those contained in this. ** WARNING ** do no forget to rename the output instances to avoid to write n-times in the same MED file field !

References _content, shallowCpy(), and MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::splitComponents().

◆ splitDiscretizations()

std::vector< MCAuto< MEDFileAnyTypeFieldMultiTS > > MEDFileAnyTypeFieldMultiTS::splitDiscretizations ( ) const

This method returns as MEDFileAnyTypeFieldMultiTS new instances as number of discretizations over time steps in this. The returned instances are shallow copied of this included globals that are shared with those contained in this.

References _content, shallowCpy(), and MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::splitDiscretizations().

◆ splitMultiDiscrPerGeoTypes()

std::vector< MCAuto< MEDFileAnyTypeFieldMultiTS > > MEDFileAnyTypeFieldMultiTS::splitMultiDiscrPerGeoTypes ( ) const

This method returns as MEDFileAnyTypeFieldMultiTS new instances as number of sub-discretizations over time steps in this. The returned instances are shallow copied of this included globals that are shared with those contained in this.

References _content, shallowCpy(), and MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::splitMultiDiscrPerGeoTypes().

◆ shallowCpy()

◆ checkCoherencyOfType()

virtual void MEDCoupling::MEDFileAnyTypeFieldMultiTS::checkCoherencyOfType ( const MEDFileAnyTypeField1TS f1ts) const
pure virtual

◆ getTimeStepAtPos()

◆ getTimeStep()

MEDFileAnyTypeField1TS * MEDFileAnyTypeFieldMultiTS::getTimeStep ( int  iteration,
int  order 
) const

Returns a new MEDFileField1TS or MEDFileInt32Field1TS holding data of a given time step of this field.

Parameters
[in]iteration- the iteration number of a required time step.
[in]order- the iteration order number of required time step.
Returns
MEDFileField1TS * or MEDFileInt32Field1TS *- a new instance of MEDFileField1TS or MEDFileInt32Field1TS. The caller is to delete this field using decrRef() as it is no more needed.
Exceptions
Ifthere is no required time step in this field.

References getPosOfTimeStep(), and getTimeStepAtPos().

◆ getTimeStepGivenTime()

MEDFileAnyTypeField1TS * MEDFileAnyTypeFieldMultiTS::getTimeStepGivenTime ( double  time,
double  eps = 1e-8 
) const

Returns a new MEDFileField1TS or MEDFileInt32Field1TS holding data of a given time step of this field.

Parameters
[in]time- the time of the time step of interest.
[in]eps- a precision used to compare time values.
Returns
MEDFileField1TS * - a new instance of MEDFileField1TS. The caller is to delete this field using decrRef() as it is no more needed.
Exceptions
Ifthere is no required time step in this field.

References getPosGivenTime(), and getTimeStepAtPos().

◆ SplitIntoCommonTimeSeries()

std::vector< std::vector< MEDFileAnyTypeFieldMultiTS * > > MEDFileAnyTypeFieldMultiTS::SplitIntoCommonTimeSeries ( const std::vector< MEDFileAnyTypeFieldMultiTS * > &  vectFMTS)
static

This method groups not null items in vectFMTS per time step series. Two time series are considered equal if the list of their pair of integers iteration,order are equal. The float64 value of time attached to the pair of integers are not considered here. WARNING the returned pointers are not incremented. The caller is not responsible to deallocate them ! This method only reorganizes entries in vectFMTS.

Parameters
[in]vectFMTS- vector of not null fields defined on a same global data pointer.
Exceptions
Ifthere is a null pointer in vectFMTS.

References getIterations().

◆ SplitPerCommonSupport()

std::vector< std::vector< MEDFileAnyTypeFieldMultiTS * > > MEDFileAnyTypeFieldMultiTS::SplitPerCommonSupport ( const std::vector< MEDFileAnyTypeFieldMultiTS * > &  vectFMTS,
const MEDFileMesh mesh,
std::vector< MCAuto< MEDFileFastCellSupportComparator > > &  fsc 
)
static

This method splits the input list vectFMTS considering the aspect of the geometrical support over time. All returned instances in a subvector can be safely loaded, rendered along time All items must be defined on the same time step ids ( see MEDFileAnyTypeFieldMultiTS::SplitIntoCommonTimeSeries method ). Each item in vectFMTS is expected to have one and exactly one spatial discretization along time. All items in vectFMTS must lie on the mesh (located by meshname and time step) and compatible with the input mesh mesh (having the same name than those in items). All items in vectFMTS whose spatial discretization is not ON_NODES will appear once. For items in vectFMTS that are ON_NODES it is possible to appear several times (more than once or once) in the returned vector.

Parameters
[in]vectFMTS- list of multi times step part all defined each on a same spatial discretization along time and pointing to a mesh whose name is equal to mesh->getName().
[in]mesh- the mesh shared by all items in vectFMTS across time.
[out]fsc- A vector having same size than returned vector. It specifies the support comporator of the corresponding vector of MEDFileAnyTypeFieldMultiTS in returned vector of vector.
Returns
- A vector of vector of objects that contains the same pointers (objects) than thoose in vectFMTS except that there are organized differently. So pointers included in returned vector of vector should not been dealt by the caller.
Exceptions
Ifan element in vectFMTS has not only one spatial discretization set.
Ifan element in vectFMTS change of spatial discretization along time.
Ifan element in vectFMTS lies on a mesh with meshname different from those in mesh. \thorw If some elements in vectFMTS do not have the same times steps.
Ifmesh is null.
Ifan element in vectFMTS is null.
See also
MEDFileAnyTypeFieldMultiTS::AreOnSameSupportAcrossTime

References CheckSupportAcrossTime(), and MEDCoupling::ON_NODES.

◆ CheckSupportAcrossTime()

int MEDFileAnyTypeFieldMultiTS::CheckSupportAcrossTime ( MEDFileAnyTypeFieldMultiTS f0,
MEDFileAnyTypeFieldMultiTS f1,
const MEDFileMesh mesh,
TypeOfField tof0,
TypeOfField tof1 
)
static

This method scan the two main structs along time of f0 and f1 to see if there are all lying on the same mesh along time than those in mesh. f0 and f1 must be defined each only on a same spatial discretization even if this can be different each other.

Exceptions
Iff0 or f1 has not only one spatial discretization set.
Iff0 or f1 change of spatial discretization along time.
Iff0 or f1 on a mesh with meshname different from those in mesh. \thorw If f0 and f1 do not have the same times steps.
Ifmesh is null.
Iff0 or f1 is null.
See also
MEDFileAnyTypeFieldMultiTS::SplitPerCommonSupport

References MEDCoupling::MEDFileMesh::getIteration(), getMeshName(), MEDCoupling::MEDFileMesh::getName(), getNumberOfTS(), MEDCoupling::MEDFileMesh::getOrder(), and getTimeStepAtPos().

Referenced by SplitPerCommonSupport().

◆ getName()

std::string MEDFileAnyTypeFieldMultiTS::getName ( ) const

◆ setName()

void MEDFileAnyTypeFieldMultiTS::setName ( const std::string &  name)

◆ getDtUnit()

std::string MEDFileAnyTypeFieldMultiTS::getDtUnit ( ) const

◆ setDtUnit()

void MEDFileAnyTypeFieldMultiTS::setDtUnit ( const std::string &  dtUnit)

◆ getMeshName()

std::string MEDFileAnyTypeFieldMultiTS::getMeshName ( ) const

◆ setMeshName()

void MEDFileAnyTypeFieldMultiTS::setMeshName ( const std::string &  newMeshName)

◆ simpleRepr() [1/2]

◆ simpleRepr() [2/2]

void MEDFileAnyTypeFieldMultiTS::simpleRepr ( int  bkOffset,
std::ostream &  oss,
int  fmtsId 
) const

◆ getNumberOfTS()

◆ eraseEmptyTS()

void MEDFileAnyTypeFieldMultiTS::eraseEmptyTS ( )

◆ eraseTimeStepIds()

void MEDFileAnyTypeFieldMultiTS::eraseTimeStepIds ( const int *  startIds,
const int *  endIds 
)

◆ eraseTimeStepIds2()

void MEDFileAnyTypeFieldMultiTS::eraseTimeStepIds2 ( int  bg,
int  end,
int  step 
)

◆ buildSubPart()

MEDFileAnyTypeFieldMultiTS * MEDFileAnyTypeFieldMultiTS::buildSubPart ( const int *  startIds,
const int *  endIds 
) const

◆ buildSubPartSlice()

MEDFileAnyTypeFieldMultiTS * MEDFileAnyTypeFieldMultiTS::buildSubPartSlice ( int  bg,
int  end,
int  step 
) const

◆ getTimeSteps()

std::vector< std::pair< int, int > > MEDFileAnyTypeFieldMultiTS::getTimeSteps ( std::vector< double > &  ret1) const

◆ getIterations()

std::vector< std::pair< int, int > > MEDFileAnyTypeFieldMultiTS::getIterations ( ) const

◆ pushBackTimeSteps() [1/2]

void MEDFileAnyTypeFieldMultiTS::pushBackTimeSteps ( const std::vector< MEDFileAnyTypeField1TS * > &  f1ts)

References pushBackTimeStep().

◆ pushBackTimeSteps() [2/2]

void MEDFileAnyTypeFieldMultiTS::pushBackTimeSteps ( MEDFileAnyTypeFieldMultiTS fmts)

◆ pushBackTimeStep()

◆ synchronizeNameScope()

void MEDFileAnyTypeFieldMultiTS::synchronizeNameScope ( )

◆ getPosOfTimeStep()

int MEDFileAnyTypeFieldMultiTS::getPosOfTimeStep ( int  iteration,
int  order 
) const

◆ getPosGivenTime()

int MEDFileAnyTypeFieldMultiTS::getPosGivenTime ( double  time,
double  eps = 1e-8 
) const

◆ iterator()

MEDFileAnyTypeFieldMultiTSIterator * MEDFileAnyTypeFieldMultiTS::iterator ( )

◆ changeMeshNames()

bool MEDFileAnyTypeFieldMultiTS::changeMeshNames ( const std::vector< std::pair< std::string, std::string > > &  modifTab)

◆ getInfo()

const std::vector< std::string > & MEDFileAnyTypeFieldMultiTS::getInfo ( ) const

◆ presenceOfMultiDiscPerGeoType()

bool MEDFileAnyTypeFieldMultiTS::presenceOfMultiDiscPerGeoType ( ) const

◆ setInfo()

void MEDFileAnyTypeFieldMultiTS::setInfo ( const std::vector< std::string > &  info)

◆ getNumberOfComponents()

int MEDFileAnyTypeFieldMultiTS::getNumberOfComponents ( ) const

References getInfo().

◆ getNonEmptyLevels()

int MEDFileAnyTypeFieldMultiTS::getNonEmptyLevels ( int  iteration,
int  order,
const std::string &  mname,
std::vector< int > &  levs 
) const

◆ getTypesOfFieldAvailable()

std::vector< std::vector< TypeOfField > > MEDFileAnyTypeFieldMultiTS::getTypesOfFieldAvailable ( ) const

◆ getFieldSplitedByType()

std::vector< std::vector< std::pair< mcIdType, mcIdType > > > MEDFileAnyTypeFieldMultiTS::getFieldSplitedByType ( int  iteration,
int  order,
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

◆ getContent()

MCAuto< MEDFileAnyTypeFieldMultiTSWithoutSDA > MEDFileAnyTypeFieldMultiTS::getContent ( )

◆ buildNewEmpty()

virtual MEDFileAnyTypeFieldMultiTS* MEDCoupling::MEDFileAnyTypeFieldMultiTS::buildNewEmpty ( ) const
pure virtual

◆ extractPart()

virtual MEDFileAnyTypeFieldMultiTS* MEDCoupling::MEDFileAnyTypeFieldMultiTS::extractPart ( const std::map< int, MCAuto< DataArrayIdType > > &  extractDef,
MEDFileMesh mm 
) const
pure virtual

◆ Aggregate()

MCAuto< MEDFileAnyTypeFieldMultiTS > MEDFileAnyTypeFieldMultiTS::Aggregate ( const std::vector< const MEDFileAnyTypeFieldMultiTS * > &  fmtss,
const std::vector< std::vector< std::pair< int, mcIdType > > > &  dts 
)
static

dts and ftmss are expected to have same size. see MEDFileFieldPerMeshPerTypePerDisc::Aggregate for description of dts.

Referenced by MEDCoupling::MEDFileFields::aggregateFieldsOnSameMeshes().

◆ getPflsReallyUsed()

std::vector< std::string > MEDFileAnyTypeFieldMultiTS::getPflsReallyUsed ( ) const
virtual

◆ getLocsReallyUsed()

std::vector< std::string > MEDFileAnyTypeFieldMultiTS::getLocsReallyUsed ( ) const
virtual

◆ getPflsReallyUsedMulti()

std::vector< std::string > MEDFileAnyTypeFieldMultiTS::getPflsReallyUsedMulti ( ) const
virtual

◆ getLocsReallyUsedMulti()

std::vector< std::string > MEDFileAnyTypeFieldMultiTS::getLocsReallyUsedMulti ( ) const
virtual

◆ changePflsRefsNamesGen()

void MEDFileAnyTypeFieldMultiTS::changePflsRefsNamesGen ( const std::vector< std::pair< std::vector< std::string >, std::string > > &  mapOfModif)
virtual

◆ changeLocsRefsNamesGen()

void MEDFileAnyTypeFieldMultiTS::changeLocsRefsNamesGen ( const std::vector< std::pair< std::vector< std::string >, std::string > > &  mapOfModif)
virtual

◆ contentNotNullBase() [1/2]

◆ contentNotNullBase() [2/2]

const MEDFileAnyTypeFieldMultiTSWithoutSDA * MEDFileAnyTypeFieldMultiTS::contentNotNullBase ( ) const
protected

References _content.

Member Data Documentation

◆ _content