Version: 5.1.6

multipr.MeshDisPart Class Reference

#include <MULTIPR_MeshDis.hxx>

Public Types

enum  OnNextWrite { MULTIPR_UNDEFINED, MULTIPR_KEEP_AS_IT, MULTIPR_WRITE_MESH, MULTIPR_WRITE_PARTS }
 

Action to be done for this part on next writing on disk.

More...

Public Member Functions

 MeshDisPart ()
 Builds an empty part of a distributed mesh (default constructor).
 ~MeshDisPart ()
 Destructor.
void reset ()
 Resets this object in its state by default (empty).
void create (OnNextWrite pToDoOnNextWrite, const char *pMeshName, int pId, const char *pPartName, const char *pPath, const char *pMEDFileName, Mesh *pMesh)
 Creates a MeshDisPart.
const char * getPartName () const
 Returns the name of this part.
const char * getMeshName () const
 Returns the name of the mesh of this part.
const MeshgetMesh () const
 Returns the mesh of this part.
const char * getMEDFileName () const
 Returns the MED filename which contain this part.
const char * getMEDFileNameSuffix () const
 Returns the suffix of the related MED filename (without .med extension).
OnNextWrite getOnNextWrite () const
 Returns the action to be performed on this part on next write.
void readMED ()
 Reads the sequentiel MED file corresponding to this part.
 MeshDisPart (const MeshDisPart &)
MeshDisPartoperator= (const MeshDisPart &)
bool operator== (const MeshDisPart &)

Data Fields

OnNextWrite mToDoOnNextWrite
 See enum OnNextWrite.
char mMeshName [32+1]
 Name of the mesh.
int mId
 Id of this part in [1..n].
char mPartName [32+1]
 Name of this part.
char mPath [256]
 Path of the MED file.
char mMEDFileName [256]
 Name of the MED file which contain this part.
MeshmMesh
 Mesh associated with this part; can be NULL.
int mSplit
 For MEDSPLITTER: number of parts.
MEDSPLITTER::MESHCollectionmCollection
 New data after splitting.
MEDSPLITTER::MESHCollectionmOldCollection
 Data before splitting (we need them when we want to write new data on disk.

Friends

class MeshDis
std::ostream & operator<< (std::ostream &pOs, MeshDisPart &pM)
 Dumps any MeshDisPart to the given output stream.

Member Enumeration Documentation

Action to be done for this part on next writing on disk.

Enumerator:
MULTIPR_UNDEFINED 
MULTIPR_KEEP_AS_IT 
MULTIPR_WRITE_MESH 
MULTIPR_WRITE_PARTS 

Constructor & Destructor Documentation

multipr.MeshDisPart::MeshDisPart (  ) 

Builds an empty part of a distributed mesh (default constructor).

References multipr.MeshDisPart.mCollection, multipr.MeshDisPart.mMesh, multipr.MeshDisPart.mOldCollection, NULL, and multipr.MeshDisPart.reset().

multipr.MeshDisPart::~MeshDisPart (  ) 

Destructor.

Removes everything.

References multipr.MeshDisPart.reset().

multipr.MeshDisPart.MeshDisPart ( const MeshDisPart  ) 

Member Function Documentation

void multipr.MeshDisPart::reset (  ) 
void multipr.MeshDisPart::create ( OnNextWrite  pToDoOnNextWrite,
const char *  pMeshName,
int  pId,
const char *  pPartName,
const char *  pPath,
const char *  pMEDFileName,
Mesh pMesh 
)
const char* multipr.MeshDisPart.getPartName (  )  const

Returns the name of this part.

Returns:
the name of this part.

References multipr.MeshDisPart.mPartName.

const char* multipr.MeshDisPart.getMeshName (  )  const

Returns the name of the mesh of this part.

Returns:
the name of the mesh of this part.

References multipr.MeshDisPart.mMeshName.

const Mesh* multipr.MeshDisPart.getMesh (  )  const

Returns the mesh of this part.

Returns:
the mesh of this part.

References multipr.MeshDisPart.mMesh.

const char* multipr.MeshDisPart.getMEDFileName (  )  const

Returns the MED filename which contain this part.

Returns:
the MED filename which contain this part.

References multipr.MeshDisPart.mMEDFileName.

const char * multipr.MeshDisPart::getMEDFileNameSuffix (  )  const

Returns the suffix of the related MED filename (without .med extension).

For examples: 1. "agregat100grains_12pas_grain97.med" -> "grain97" 2. "agregat100grains_12pas_grain100_part2.med" -> "grain100_part2" 3. "aagregat100grains_12pas_grain98_gradmoy-low-25.0-0.3.med" -> "grain98_gradmoy-low-25-0.3"

References multipr.MeshDisPart.mMEDFileName, and multipr.removeExtension().

OnNextWrite multipr.MeshDisPart.getOnNextWrite (  )  const

Returns the action to be performed on this part on next write.

Returns:
the action to be performed on this part on next write.

References multipr.MeshDisPart.mToDoOnNextWrite.

void multipr.MeshDisPart::readMED (  ) 
MeshDisPart& multipr.MeshDisPart.operator= ( const MeshDisPart  ) 
bool multipr.MeshDisPart.operator== ( const MeshDisPart  ) 

Friends And Related Function Documentation

friend class MeshDis [friend]
std::ostream& operator<< ( std::ostream &  pOs,
MeshDisPart pM 
) [friend]

Dumps any MeshDisPart to the given output stream.

Parameters:
pOs any output stream.
pM any MeshDisPart.
Returns:
the output stream pOs.

Field Documentation

See enum OnNextWrite.

Name of the mesh.

Id of this part in [1..n].

Name of this part.

Path of the MED file.

Name of the MED file which contain this part.

Mesh associated with this part; can be NULL.

For MEDSPLITTER: number of parts.

Temporary.

New data after splitting.

Data before splitting (we need them when we want to write new data on disk.