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

Public Member Functions

 ExplicitTopology ()
 
 ExplicitTopology (const ExplicitTopology &topo, int nbcomponents)
 
 ExplicitTopology (const ParaMESH &mesh)
 
int getNbComponents () const
 
int getNbElements () const
 
int getNbLocalElements () const
 
const ProcessorGroupgetProcGroup () const
 
int globalToLocal (int) const
 
int localToGlobal (const std::pair< int, int > local) const
 
int localToGlobal (int) const
 
void serialize (int *&serializer, int &size) const
 
void unserialize (const int *serializer, const CommInterface &comm_interface)
 
virtual ~ExplicitTopology ()
 
- Public Member Functions inherited from MEDCoupling::Topology
 Topology ()
 
virtual ~Topology ()
 

Detailed Description

An ExplicitTopology typically represents the split of a mesh among the processors of a common ProcessorGroup. Each processor gets a user-defined part of the cells in the mesh.

See Also
BlockTopology

Constructor & Destructor Documentation

MEDCoupling::ExplicitTopology::ExplicitTopology ( )
MEDCoupling::ExplicitTopology::ExplicitTopology ( const ExplicitTopology topo,
int  nbcomponents 
)
MEDCoupling::ExplicitTopology::~ExplicitTopology ( )
virtual

Member Function Documentation

int MEDCoupling::ExplicitTopology::getNbElements ( ) const
virtual

Retrieves the number of elements for a given topology.

Implements MEDCoupling::Topology.

int MEDCoupling::ExplicitTopology::getNbLocalElements ( ) const
virtual
int MEDCoupling::ExplicitTopology::localToGlobal ( const std::pair< int, int >  local) const
int MEDCoupling::ExplicitTopology::localToGlobal ( int  local) const

converts local number to a global number

int MEDCoupling::ExplicitTopology::globalToLocal ( int  global) const

converts a pair <subdomainid,local> to a global number

Referenced by MEDCoupling::ExplicitCoincidentDEC::broadcastTopology().

void MEDCoupling::ExplicitTopology::serialize ( int *&  serializer,
int &  size 
) const

Serializes the data contained in the Explicit Topology for communication purposes

Referenced by MEDCoupling::ExplicitCoincidentDEC::broadcastTopology().

void MEDCoupling::ExplicitTopology::unserialize ( const int *  serializer,
const CommInterface comm_interface 
)

Unserializes the data contained in the Explicit Topology after communication. Uses the same structure as the one used for serialize()

Referenced by MEDCoupling::ExplicitCoincidentDEC::broadcastTopology().