Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MEDCoupling::ComponentTopology Class Reference

Public Member Functions

 ComponentTopology (int nb_comp, ProcessorGroup *group)
 
 ComponentTopology (int nb_comp, int nb_blocks)
 
 ComponentTopology (int nb_comp)
 
 ComponentTopology ()
 
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

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

Constructor for one block of nb_comp components.

MEDCoupling::ComponentTopology::ComponentTopology ( )

Constructor for one component.

MEDCoupling::ComponentTopology::~ComponentTopology ( )
virtual

Member Function Documentation

int MEDCoupling::ComponentTopology::nbComponents ( ) const

returns the number of MED components in the topology

Referenced by MEDCoupling::BlockTopology::BlockTopology(), MEDCoupling::ParaFIELD::nbComponents(), and 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().

int MEDCoupling::ComponentTopology::firstLocalComponent ( ) const

returns the number of the first MED component on local processor

References MEDCoupling::ProcessorGroup::myRank().

int MEDCoupling::ComponentTopology::nbBlocks ( ) const

returns the number of blocks in the topology

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

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

returns the block structure

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

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