Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MEDCoupling::MEDFileAnyTypeFieldMultiTS Class Referenceabstract
Inheritance diagram for MEDCoupling::MEDFileAnyTypeFieldMultiTS:
Collaboration diagram for MEDCoupling::MEDFileAnyTypeFieldMultiTS:

Public Member Functions

virtual
MEDFileAnyTypeFieldMultiTS
buildNewEmpty () 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
MEDFileAnyTypeFieldMultiTS
deepCopy () const
 
void eraseEmptyTS ()
 
void eraseTimeStepIds (const int *startIds, const int *endIds)
 
void eraseTimeStepIds2 (int bg, int end, int step)
 
MEDFileAnyTypeFieldMultiTSextractPart (const std::map< int, MCAuto< DataArrayInt > > &extractDef, MEDFileMesh *mm) const
 
MCAuto
< MEDFileAnyTypeFieldMultiTSWithoutSDA
getContent ()
 
std::vector< const
BigMemoryObject * > 
getDirectChildrenWithNull () const
 
std::string getDtUnit () const
 
std::vector< std::vector
< std::pair< int, int > > > 
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
MEDFileAnyTypeFieldMultiTS
shallowCpy () 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::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 (DataArrayInt *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
 
const MEDFileFieldLocgetLocalization (const std::string &locName) const
 
MEDFileFieldLocgetLocalization (const std::string &locName)
 
const MEDFileFieldLocgetLocalizationFromId (int locId) const
 
MEDFileFieldLocgetLocalizationFromId (int locId)
 
int getLocalizationId (const std::string &loc) const
 
std::vector< std::string > getLocs () const
 
int getNbOfGaussPtPerCell (int locId) const
 
std::vector< std::string > getPfls () const
 
const DataArrayIntgetProfile (const std::string &pflName) const
 
DataArrayIntgetProfile (const std::string &pflName)
 
const DataArrayIntgetProfileFromId (int pflId) const
 
DataArrayIntgetProfileFromId (int pflId)
 
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, const std::string &pflName)
 
void loadProfileInFile (med_idt fid, int id)
 
 MEDFileFieldGlobsReal (med_idt fid)
 
 MEDFileFieldGlobsReal ()
 
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
< MEDFileAnyTypeFieldMultiTS
Aggregate (const std::vector< const MEDFileAnyTypeFieldMultiTS * > &fmtss, const std::vector< std::vector< std::pair< int, int > > > &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 (med_idt fid, bool loadAll=true)
 
static MEDFileAnyTypeFieldMultiTSNew (const std::string &fileName, const std::string &fieldName, 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)
 

Protected Member Functions

MEDFileAnyTypeFieldMultiTSWithoutSDAcontentNotNullBase ()
 
const
MEDFileAnyTypeFieldMultiTSWithoutSDA
contentNotNullBase () const
 
 MEDFileAnyTypeFieldMultiTS ()
 
 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)
 
 MEDFileAnyTypeFieldMultiTS (const MEDFileAnyTypeFieldMultiTSWithoutSDA &other, bool shallowCopyOfContent)
 
- 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
 

Static Protected Member Functions

static
MEDFileAnyTypeFieldMultiTSWithoutSDA
BuildContentFrom (med_idt fid, bool loadAll, const MEDFileMeshes *ms)
 
static
MEDFileAnyTypeFieldMultiTSWithoutSDA
BuildContentFrom (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::MEDFileAnyTypeFieldMultiTS ( )
protected
MEDFileAnyTypeFieldMultiTS::MEDFileAnyTypeFieldMultiTS ( med_idt  fid,
bool  loadAll,
const MEDFileMeshes ms 
)
protected
MEDFileAnyTypeFieldMultiTS::MEDFileAnyTypeFieldMultiTS ( med_idt  fid,
const std::string &  fieldName,
bool  loadAll,
const MEDFileMeshes ms,
const MEDFileEntities *  entities = 0 
)
protected
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

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

Returns a new instance of MEDFileFieldMultiTS or MEDFileIntFieldMultiTS 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 MEDFileIntFieldMultiTS. 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().

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

Returns a new instance of MEDFileFieldMultiTS or MEDFileIntFieldMultiTS 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 MEDFileIntFieldMultiTS. 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().

MEDFileAnyTypeFieldMultiTS * MEDFileAnyTypeFieldMultiTS::New ( med_idt  fid,
const std::string &  fieldName,
bool  loadAll = true 
)
static
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().

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

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

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

std::size_t MEDFileAnyTypeFieldMultiTS::getHeapMemorySizeWithoutChildren ( ) const
virtual
std::vector< const BigMemoryObject * > MEDFileAnyTypeFieldMultiTS::getDirectChildrenWithNull ( ) const
virtual
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 share with those contained in this. ** WARNING ** do no forget to rename the ouput instances to avoid to write n-times in the same MED file field !

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

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 share with those contained in this.

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

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 share with those contained in this.

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

virtual MEDFileAnyTypeFieldMultiTS* MEDCoupling::MEDFileAnyTypeFieldMultiTS::shallowCpy ( ) const
pure virtual
virtual void MEDCoupling::MEDFileAnyTypeFieldMultiTS::checkCoherencyOfType ( const MEDFileAnyTypeField1TS f1ts) const
pure virtual
MEDFileAnyTypeField1TS * MEDFileAnyTypeFieldMultiTS::getTimeStep ( int  iteration,
int  order 
) const

Returns a new MEDFileField1TS or MEDFileIntField1TS 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 MEDFileIntField1TS *- a new instance of MEDFileField1TS or MEDFileIntField1TS. 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().

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

Returns a new MEDFileField1TS or MEDFileIntField1TS 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().

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.
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. 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.

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. 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(), MEDCoupling::MEDFileAnyTypeField1TS::getIteration(), MEDCoupling::MEDFileAnyTypeField1TS::getMeshIteration(), getMeshName(), MEDCoupling::MEDFileAnyTypeField1TS::getMeshOrder(), MEDCoupling::MEDFileMesh::getName(), getNumberOfTS(), MEDCoupling::MEDFileMesh::getOrder(), MEDCoupling::MEDFileAnyTypeField1TS::getOrder(), getTimeStepAtPos(), and MEDCoupling::MEDFileAnyTypeField1TS::getTypesOfFieldAvailable().

Referenced by SplitPerCommonSupport().

std::string MEDFileAnyTypeFieldMultiTS::getName ( ) const
void MEDFileAnyTypeFieldMultiTS::setName ( const std::string &  name)
std::string MEDFileAnyTypeFieldMultiTS::getDtUnit ( ) const
void MEDFileAnyTypeFieldMultiTS::setDtUnit ( const std::string &  dtUnit)
std::string MEDFileAnyTypeFieldMultiTS::getMeshName ( ) const
void MEDFileAnyTypeFieldMultiTS::setMeshName ( const std::string &  newMeshName)
void MEDFileAnyTypeFieldMultiTS::simpleRepr ( int  bkOffset,
std::ostream &  oss,
int  fmtsId 
) const
void MEDFileAnyTypeFieldMultiTS::eraseEmptyTS ( )
void MEDFileAnyTypeFieldMultiTS::eraseTimeStepIds ( const int *  startIds,
const int *  endIds 
)
void MEDFileAnyTypeFieldMultiTS::eraseTimeStepIds2 ( int  bg,
int  end,
int  step 
)
MEDFileAnyTypeFieldMultiTS * MEDFileAnyTypeFieldMultiTS::buildSubPart ( const int *  startIds,
const int *  endIds 
) const
MEDFileAnyTypeFieldMultiTS * MEDFileAnyTypeFieldMultiTS::buildSubPartSlice ( int  bg,
int  end,
int  step 
) const
std::vector< std::pair< int, int > > MEDFileAnyTypeFieldMultiTS::getTimeSteps ( std::vector< double > &  ret1) const
std::vector< std::pair< int, int > > MEDFileAnyTypeFieldMultiTS::getIterations ( ) const
void MEDFileAnyTypeFieldMultiTS::pushBackTimeSteps ( const std::vector< MEDFileAnyTypeField1TS * > &  f1ts)

References pushBackTimeStep().

void MEDFileAnyTypeFieldMultiTS::pushBackTimeSteps ( MEDFileAnyTypeFieldMultiTS fmts)
void MEDFileAnyTypeFieldMultiTS::synchronizeNameScope ( )
int MEDFileAnyTypeFieldMultiTS::getPosOfTimeStep ( int  iteration,
int  order 
) const
int MEDFileAnyTypeFieldMultiTS::getPosGivenTime ( double  time,
double  eps = 1e-8 
) const
MEDFileAnyTypeFieldMultiTSIterator * MEDFileAnyTypeFieldMultiTS::iterator ( )
bool MEDFileAnyTypeFieldMultiTS::changeMeshNames ( const std::vector< std::pair< std::string, std::string > > &  modifTab)
const std::vector< std::string > & MEDFileAnyTypeFieldMultiTS::getInfo ( ) const
bool MEDFileAnyTypeFieldMultiTS::presenceOfMultiDiscPerGeoType ( ) const
void MEDFileAnyTypeFieldMultiTS::setInfo ( const std::vector< std::string > &  info)
int MEDFileAnyTypeFieldMultiTS::getNumberOfComponents ( ) const

References getInfo().

int MEDFileAnyTypeFieldMultiTS::getNonEmptyLevels ( int  iteration,
int  order,
const std::string &  mname,
std::vector< int > &  levs 
) const
std::vector< std::vector< TypeOfField > > MEDFileAnyTypeFieldMultiTS::getTypesOfFieldAvailable ( ) const
std::vector< std::vector< std::pair< int, int > > > 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
virtual MEDFileAnyTypeFieldMultiTS* MEDCoupling::MEDFileAnyTypeFieldMultiTS::buildNewEmpty ( ) const
pure virtual
MEDFileAnyTypeFieldMultiTS * MEDFileAnyTypeFieldMultiTS::extractPart ( const std::map< int, MCAuto< DataArrayInt > > &  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.

Returns
A new object that the caller is responsible to deallocate.

References buildNewEmpty(), MEDCoupling::MEDFileAnyTypeField1TS::extractPart(), getNumberOfTS(), getTimeStepAtPos(), pushBackTimeStep(), and MEDCoupling::MCAuto< T >::retn().

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

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

dts and ftmss are expected to have same size.

Referenced by MEDCoupling::MEDFileData::Aggregate().

std::vector< std::string > MEDFileAnyTypeFieldMultiTS::getPflsReallyUsed ( ) const
virtual
std::vector< std::string > MEDFileAnyTypeFieldMultiTS::getLocsReallyUsed ( ) const
virtual
std::vector< std::string > MEDFileAnyTypeFieldMultiTS::getPflsReallyUsedMulti ( ) const
virtual
std::vector< std::string > MEDFileAnyTypeFieldMultiTS::getLocsReallyUsedMulti ( ) const
virtual
void MEDFileAnyTypeFieldMultiTS::changePflsRefsNamesGen ( const std::vector< std::pair< std::vector< std::string >, std::string > > &  mapOfModif)
virtual
void MEDFileAnyTypeFieldMultiTS::changeLocsRefsNamesGen ( const std::vector< std::pair< std::vector< std::string >, std::string > > &  mapOfModif)
virtual
MEDFileAnyTypeFieldMultiTSWithoutSDA * MEDFileAnyTypeFieldMultiTS::contentNotNullBase ( )
protected

References _content.

Referenced by buildSubPart(), buildSubPartSlice(), changeLocsRefsNamesGen(), changeMeshNames(), changePflsRefsNamesGen(), eraseEmptyTS(), eraseTimeStepIds(), eraseTimeStepIds2(), MEDCoupling::MEDFileFieldMultiTS::field(), MEDCoupling::MEDFileIntFieldMultiTS::field(), getDtUnit(), MEDCoupling::MEDFileFieldMultiTS::getFieldAtLevel(), MEDCoupling::MEDFileIntFieldMultiTS::getFieldAtLevel(), MEDCoupling::MEDFileFieldMultiTS::getFieldAtLevelOld(), MEDCoupling::MEDFileIntFieldMultiTS::getFieldAtLevelOld(), MEDCoupling::MEDFileFieldMultiTS::getFieldAtTopLevel(), MEDCoupling::MEDFileIntFieldMultiTS::getFieldAtTopLevel(), MEDCoupling::MEDFileFieldMultiTS::getFieldOnMeshAtLevel(), MEDCoupling::MEDFileIntFieldMultiTS::getFieldOnMeshAtLevel(), getFieldSplitedByType(), MEDCoupling::MEDFileFieldMultiTS::getFieldWithProfile(), MEDCoupling::MEDFileIntFieldMultiTS::getFieldWithProfile(), getInfo(), getIterations(), getLocsReallyUsed(), getLocsReallyUsedMulti(), getMeshName(), getName(), getNonEmptyLevels(), getNumberOfTS(), getPflsReallyUsed(), getPflsReallyUsedMulti(), getPosGivenTime(), getPosOfTimeStep(), MEDCoupling::MEDFileFieldMultiTS::getTimeStepAtPos(), MEDCoupling::MEDFileIntFieldMultiTS::getTimeStepAtPos(), getTimeSteps(), getTypesOfFieldAvailable(), loadArrays(), loadArraysIfNecessary(), presenceOfMultiDiscPerGeoType(), setDtUnit(), setInfo(), setMeshName(), setName(), simpleRepr(), synchronizeNameScope(), unloadArrays(), unloadArraysWithoutDataLoss(), and writeLL().

const MEDFileAnyTypeFieldMultiTSWithoutSDA * MEDFileAnyTypeFieldMultiTS::contentNotNullBase ( ) const
protected

References _content.

Member Data Documentation