Version: 5.1.6

ParaMEDMEM.ComponentTopology Class Reference

#include <ComponentTopology.hxx>

Public Member Functions

 ComponentTopology (int nb_comp, ProcessorGroup *group)
 ComponentTopology (int nb_comp, int nb_blocks)
 ComponentTopology (int nb_comp)
 Constructor for one block of nb_comp components.
 ComponentTopology ()
 Constructor for one component.
virtual ~ComponentTopology ()
int nbComponents () const
 returns the number of MED components in the topology
int nbLocalComponents () const
 returns the number of MED components on local processor
int firstLocalComponent () const
 returns the number of the first MED component on local processor
int nbBlocks () const
 returns the number of blocks in the topology
const std::vector< int > * getBlockIndices () const
 returns the block structure
const ProcessorGroupgetProcGroup () const

Data Fields

std::vector< int_component_array
ProcessorGroup_proc_group

Constructor & Destructor Documentation

ParaMEDMEM.ComponentTopology::ComponentTopology ( int  nb_comp,
ProcessorGroup group 
)
ParaMEDMEM.ComponentTopology::ComponentTopology ( int  nb_comp,
int  nb_blocks 
)
ParaMEDMEM.ComponentTopology::ComponentTopology ( int  nb_comp  ) 

Constructor for one block of nb_comp components.

References ParaMEDMEM.ComponentTopology._component_array.

ParaMEDMEM.ComponentTopology::ComponentTopology (  ) 

Constructor for one component.

References ParaMEDMEM.ComponentTopology._component_array.

ParaMEDMEM.ComponentTopology::~ComponentTopology (  )  [virtual]

Member Function Documentation

int ParaMEDMEM.ComponentTopology.nbComponents (  )  const

returns the number of MED components in the topology

References ParaMEDMEM.ComponentTopology._component_array.

int ParaMEDMEM.ComponentTopology::nbLocalComponents (  )  const
int ParaMEDMEM.ComponentTopology::firstLocalComponent (  )  const

returns the number of the first MED component on local processor

References ParaMEDMEM.ComponentTopology._component_array, ParaMEDMEM.ComponentTopology._proc_group, and ParaMEDMEM.ProcessorGroup.myRank().

int ParaMEDMEM.ComponentTopology.nbBlocks (  )  const

returns the number of blocks in the topology

References ParaMEDMEM.ComponentTopology._component_array.

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

returns the block structure

References ParaMEDMEM.ComponentTopology._component_array.

const ProcessorGroup* ParaMEDMEM.ComponentTopology.getProcGroup (  )  const

Field Documentation