Version: 9.14.0
MEDCoupling::ComponentTopology Class Reference

Public Member Functions

 ComponentTopology ()
 
 ComponentTopology (int nb_comp)
 
 ComponentTopology (int nb_comp, int nb_blocks)
 
 ComponentTopology (int nb_comp, ProcessorGroup *group)
 
int firstLocalComponent () const
 
const std::vector< int > * getBlockIndices () const
 
const ProcessorGroupgetProcGroup () const
 
int nbBlocks () const
 
int nbComponents () const
 
int nbLocalComponents () const
 
virtual ~ComponentTopology ()
 

Detailed Description

The ComponentTopology can be used when building a ParaFIELD. It allows the splitting of the components of the field among different processors within a single processor group.

See also
ParaFIELD::ParaFIELD(TypeOfField , TypeOfTimeDiscretization , ParaMESH* , const ComponentTopology& )

Constructor & Destructor Documentation

◆ ComponentTopology() [1/4]

MEDCoupling::ComponentTopology::ComponentTopology ( int  nb_comp,
ProcessorGroup group 
)

◆ ComponentTopology() [2/4]

MEDCoupling::ComponentTopology::ComponentTopology ( int  nb_comp,
int  nb_blocks 
)

◆ ComponentTopology() [3/4]

MEDCoupling::ComponentTopology::ComponentTopology ( int  nb_comp)

Constructor for one block of nb_comp components.

◆ ComponentTopology() [4/4]

MEDCoupling::ComponentTopology::ComponentTopology ( )

Constructor for one component.

◆ ~ComponentTopology()

MEDCoupling::ComponentTopology::~ComponentTopology ( )
virtual

Member Function Documentation

◆ nbComponents()

int MEDCoupling::ComponentTopology::nbComponents ( ) const

returns the number of MED components in the topology

Referenced by MEDCoupling::BlockTopology::BlockTopology(), MEDCoupling::ParaFIELD::nbComponents(), and nbLocalComponents().

◆ nbLocalComponents()

int MEDCoupling::ComponentTopology::nbLocalComponents ( ) const

returns the number of MED components on local processor

References MEDCoupling::ProcessorGroup::myRank(), and nbComponents().

Referenced by MEDCoupling::ParaFIELD::ParaFIELD().

◆ firstLocalComponent()

int MEDCoupling::ComponentTopology::firstLocalComponent ( ) const

returns the number of the first MED component on local processor

References MEDCoupling::ProcessorGroup::myRank().

◆ nbBlocks()

int MEDCoupling::ComponentTopology::nbBlocks ( ) const

returns the number of blocks in the topology

Referenced by MEDCoupling::BlockTopology::BlockTopology(), and MEDCoupling::ParaFIELD::ParaFIELD().

◆ getBlockIndices()

const std::vector<int>* MEDCoupling::ComponentTopology::getBlockIndices ( ) const

returns the block structure

Referenced by MEDCoupling::BlockTopology::BlockTopology().

◆ getProcGroup()

const ProcessorGroup* MEDCoupling::ComponentTopology::getProcGroup ( ) const