Version: 9.14.0
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
 
mcIdType getNbElements () const
 
mcIdType getNbLocalElements () const
 
const ProcessorGroupgetProcGroup () const
 
mcIdType globalToLocal (mcIdType) const
 
mcIdType localToGlobal (const std::pair< int, mcIdType > local) const
 
mcIdType localToGlobal (mcIdType) const
 
void serialize (mcIdType *&serializer, mcIdType &size) const
 
void unserialize (const mcIdType *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

◆ ExplicitTopology() [1/3]

MEDCoupling::ExplicitTopology::ExplicitTopology ( )

◆ ExplicitTopology() [2/3]

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

◆ ExplicitTopology() [3/3]

◆ ~ExplicitTopology()

MEDCoupling::ExplicitTopology::~ExplicitTopology ( )
virtual

Member Function Documentation

◆ getNbElements()

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

Retrieves the number of elements for a given topology.

Implements MEDCoupling::Topology.

◆ getNbLocalElements()

◆ getProcGroup()

◆ localToGlobal() [1/2]

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

◆ localToGlobal() [2/2]

mcIdType MEDCoupling::ExplicitTopology::localToGlobal ( mcIdType  local) const

converts local number to a global number

◆ globalToLocal()

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

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

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

◆ serialize()

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

Serializes the data contained in the Explicit Topology for communication purposes

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

◆ unserialize()

void MEDCoupling::ExplicitTopology::unserialize ( const mcIdType *  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().

◆ getNbComponents()