Back to index

salome-med  6.5.0
Public Member Functions | Public Attributes | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes
ParaMEDMEM::MPIProcessorGroup Class Reference

#include <MPIProcessorGroup.hxx>

Inheritance diagram for ParaMEDMEM::MPIProcessorGroup:
Inheritance graph
[legend]
Collaboration diagram for ParaMEDMEM::MPIProcessorGroup:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MPIProcessorGroup (const CommInterface &interface)
 Creates a processor group that is based on all the MPI_COMM_WORLD processor.This routine must be called by all processors in MPI_COMM_WORLD.
 MPIProcessorGroup (const CommInterface &interface, std::set< int > proc_ids, const MPI_Comm &world_comm=MPI_COMM_WORLD)
 Creates a processor group that is based on the processors included in proc_ids.
 MPIProcessorGroup (const ProcessorGroup &proc_group, std::set< int > proc_ids)
 MPIProcessorGroup (const CommInterface &interface, int pstart, int pend, const MPI_Comm &world_comm=MPI_COMM_WORLD)
 Creates a processor group that is based on the processors between pstart and pend.
 MPIProcessorGroup (const MPIProcessorGroup &other)
virtual ~MPIProcessorGroup ()
virtual ProcessorGroupdeepCpy () const
virtual ProcessorGroupfuse (const ProcessorGroup &) const
 Adding processors of group group to local group.
void intersect (ProcessorGroup &)
int myRank () const
bool containsMyRank () const
int translateRank (const ProcessorGroup *group, int rank) const
 Translation of the rank id between two processor groups.
const MPI_Comm * getComm () const
ProcessorGroupcreateComplementProcGroup () const
 Creates a processor group that is the complement of the current group inside MPI_COMM_WORLD.
ProcessorGroupcreateProcGroup () const
MPI_Comm getWorldComm ()
def __init__
def deepCpy
def fuse
def intersect
def myRank
def containsMyRank
def translateRank
def getComm
def createComplementProcGroup
def createProcGroup
def getWorldComm
bool contains (int rank) const
def contains
int size () const
def size
const CommInterfacegetCommInterface () const
def getCommInterface
virtual const std::set< int > & getProcIDs () const
def getProcIDs

Public Attributes

 this

Protected Attributes

const CommInterface _comm_interface
std::set< int > _proc_ids

Private Member Functions

void updateMPISpecificAttributes ()

Private Attributes

const MPI_Comm _world_comm
MPI_Group _group
MPI_Comm _comm

Static Private Attributes

dictionary __swig_setmethods__ = {}
tuple __setattr__ = lambdaself,name,value:_swig_setattr(self, MPIProcessorGroup, name, value)
dictionary __swig_getmethods__ = {}
tuple __getattr__ = lambdaself,name:_swig_getattr(self, MPIProcessorGroup, name)
 __repr__ = _swig_repr
 __swig_destroy__ = _ParaMEDMEM.delete_MPIProcessorGroup
 __del__ = lambdaself:None;

Detailed Description

1

Definition at line 32 of file MPIProcessorGroup.hxx.


Constructor & Destructor Documentation

ParaMEDMEM::MPIProcessorGroup::MPIProcessorGroup ( const ProcessorGroup proc_group,
std::set< int >  proc_ids 
)

Definition at line 158 of file MPIProcessorGroup.cxx.

                                                                                           :
    ProcessorGroup(proc_group.getCommInterface()),_world_comm(MPI_COMM_WORLD)
  {
    cout << "MPIProcessorGroup (const ProcessorGroup& proc_group, set<int> proc_ids)" <<endl;
    cout << "Not implemented yet !"<<endl;
    exit(1);
  }

Definition at line 166 of file MPIProcessorGroup.cxx.

                                                                    :ProcessorGroup(other),_world_comm(other._world_comm)
  {
    updateMPISpecificAttributes();
  }

Here is the call graph for this function:

Definition at line 171 of file MPIProcessorGroup.cxx.

Here is the call graph for this function:

def ParaMEDMEM.MPIProcessorGroup.__init__ (   self,
  args 
)
__init__(self, CommInterface interface) -> MPIProcessorGroup
__init__(self, CommInterface interface, __dummy_0__ proc_ids, MPI_Comm world_comm = MPI_COMM_WORLD) -> MPIProcessorGroup
__init__(self, CommInterface interface, __dummy_0__ proc_ids) -> MPIProcessorGroup
__init__(self, ProcessorGroup proc_group, __dummy_0__ proc_ids) -> MPIProcessorGroup
__init__(self, CommInterface interface, int pstart, int pend, MPI_Comm world_comm = MPI_COMM_WORLD) -> MPIProcessorGroup
__init__(self, CommInterface interface, int pstart, int pend) -> MPIProcessorGroup
__init__(self, MPIProcessorGroup other) -> MPIProcessorGroup

1

Definition at line 15263 of file ParaMEDMEM.py.

15263 
15264     def __init__(self, *args): 
15265         """
15266         __init__(self, CommInterface interface) -> MPIProcessorGroup
15267         __init__(self, CommInterface interface, __dummy_0__ proc_ids, MPI_Comm world_comm = MPI_COMM_WORLD) -> MPIProcessorGroup
15268         __init__(self, CommInterface interface, __dummy_0__ proc_ids) -> MPIProcessorGroup
15269         __init__(self, ProcessorGroup proc_group, __dummy_0__ proc_ids) -> MPIProcessorGroup
15270         __init__(self, CommInterface interface, int pstart, int pend, MPI_Comm world_comm = MPI_COMM_WORLD) -> MPIProcessorGroup
15271         __init__(self, CommInterface interface, int pstart, int pend) -> MPIProcessorGroup
15272         __init__(self, MPIProcessorGroup other) -> MPIProcessorGroup
15273 
15274         1
15275         """
15276         this = _ParaMEDMEM.new_MPIProcessorGroup(*args)
15277         try: self.this.append(this)
        except: self.this = this

Member Function Documentation

bool ParaMEDMEM::ProcessorGroup::contains ( int  rank) const [inline, inherited]

Definition at line 45 of file ProcessorGroup.hxx.

{ return _proc_ids.find(rank)!=_proc_ids.end(); }

Here is the caller graph for this function:

def ParaMEDMEM.ProcessorGroup.contains (   self,
  args 
) [inherited]
contains(self, int rank) -> bool

1

Definition at line 14807 of file ParaMEDMEM.py.

14807 
14808     def contains(self, *args):
14809         """
14810         contains(self, int rank) -> bool
14811 
14812         1
14813         """
14814         return _ParaMEDMEM.ProcessorGroup_contains(self, *args)

Here is the call graph for this function:

bool ParaMEDMEM::MPIProcessorGroup::containsMyRank ( ) const [inline, virtual]

Implements ParaMEDMEM::ProcessorGroup.

Definition at line 45 of file MPIProcessorGroup.hxx.

{ int rank; MPI_Group_rank(_group, &rank); return (rank!=MPI_UNDEFINED); }

Here is the caller graph for this function:

containsMyRank(self) -> bool

1

Reimplemented from ParaMEDMEM::ProcessorGroup.

Definition at line 15312 of file ParaMEDMEM.py.

15312 
15313     def containsMyRank(self):
15314         """
15315         containsMyRank(self) -> bool
15316 
15317         1
15318         """
15319         return _ParaMEDMEM.MPIProcessorGroup_containsMyRank(self)

Here is the call graph for this function:

createComplementProcGroup(self) -> ProcessorGroup

1

Reimplemented from ParaMEDMEM::ProcessorGroup.

Definition at line 15336 of file ParaMEDMEM.py.

15336 
15337     def createComplementProcGroup(self):
15338         """
15339         createComplementProcGroup(self) -> ProcessorGroup
15340 
15341         1
15342         """
15343         return _ParaMEDMEM.MPIProcessorGroup_createComplementProcGroup(self)

Here is the call graph for this function:

Implements ParaMEDMEM::ProcessorGroup.

Definition at line 244 of file MPIProcessorGroup.cxx.

  {
    set <int> procs;
    for (set<int>::const_iterator iter=_proc_ids.begin(); iter!= _proc_ids.end(); iter++)
      procs.insert(*iter);
  
    return new MPIProcessorGroup(_comm_interface, procs, _world_comm);

  }

Here is the call graph for this function:

Here is the caller graph for this function:

createProcGroup(self) -> ProcessorGroup

1

Reimplemented from ParaMEDMEM::ProcessorGroup.

Definition at line 15344 of file ParaMEDMEM.py.

15344 
15345     def createProcGroup(self):
15346         """
15347         createProcGroup(self) -> ProcessorGroup
15348 
15349         1
15350         """
15351         return _ParaMEDMEM.MPIProcessorGroup_createProcGroup(self)

Here is the call graph for this function:

deepCpy(self) -> ProcessorGroup

1

Reimplemented from ParaMEDMEM::ProcessorGroup.

Definition at line 15280 of file ParaMEDMEM.py.

15280 
15281     def deepCpy(self):
15282         """
15283         deepCpy(self) -> ProcessorGroup
15284 
15285         1
15286         """
15287         return _ParaMEDMEM.MPIProcessorGroup_deepCpy(self)

Here is the call graph for this function:

def ParaMEDMEM.MPIProcessorGroup.fuse (   self,
  args 
)
fuse(self, ProcessorGroup arg0) -> ProcessorGroup

1

Reimplemented from ParaMEDMEM::ProcessorGroup.

Definition at line 15288 of file ParaMEDMEM.py.

15288 
15289     def fuse(self, *args):
15290         """
15291         fuse(self, ProcessorGroup arg0) -> ProcessorGroup
15292 
15293         1
15294         """
15295         return _ParaMEDMEM.MPIProcessorGroup_fuse(self, *args)

Here is the call graph for this function:

const MPI_Comm* ParaMEDMEM::MPIProcessorGroup::getComm ( ) const [inline]

Definition at line 47 of file MPIProcessorGroup.hxx.

{ return &_comm; }

Here is the caller graph for this function:

getComm(self) -> MPI_Comm

1

Definition at line 15328 of file ParaMEDMEM.py.

15328 
15329     def getComm(self):
15330         """
15331         getComm(self) -> MPI_Comm
15332 
15333         1
15334         """
15335         return _ParaMEDMEM.MPIProcessorGroup_getComm(self)

Here is the call graph for this function:

const CommInterface& ParaMEDMEM::ProcessorGroup::getCommInterface ( ) const [inline, inherited]

Definition at line 48 of file ProcessorGroup.hxx.

{ return _comm_interface; }

Here is the caller graph for this function:

def ParaMEDMEM.ProcessorGroup.getCommInterface (   self) [inherited]
getCommInterface(self) -> CommInterface

1

Definition at line 14831 of file ParaMEDMEM.py.

14831 
14832     def getCommInterface(self):
14833         """
14834         getCommInterface(self) -> CommInterface
14835 
14836         1
14837         """
14838         return _ParaMEDMEM.ProcessorGroup_getCommInterface(self)

Here is the call graph for this function:

virtual const std::set<int>& ParaMEDMEM::ProcessorGroup::getProcIDs ( ) const [inline, virtual, inherited]

Definition at line 53 of file ProcessorGroup.hxx.

{ return _proc_ids; } 

Here is the caller graph for this function:

def ParaMEDMEM.ProcessorGroup.getProcIDs (   self) [inherited]
getProcIDs(self) -> __dummy_0__

1

Definition at line 14871 of file ParaMEDMEM.py.

14871 
14872     def getProcIDs(self):
14873         """
14874         getProcIDs(self) -> __dummy_0__
14875 
14876         1
14877         """
14878         return _ParaMEDMEM.ProcessorGroup_getProcIDs(self)

Here is the call graph for this function:

Definition at line 50 of file MPIProcessorGroup.hxx.

{ return _world_comm; }

Here is the caller graph for this function:

getWorldComm(self) -> MPI_Comm

1

Definition at line 15352 of file ParaMEDMEM.py.

15352 
15353     def getWorldComm(self):
15354         """
15355         getWorldComm(self) -> MPI_Comm
15356 
15357         1
15358         """
15359         return _ParaMEDMEM.MPIProcessorGroup_getWorldComm(self)

Here is the call graph for this function:

Implements ParaMEDMEM::ProcessorGroup.

Definition at line 43 of file MPIProcessorGroup.hxx.

{ }

Here is the caller graph for this function:

def ParaMEDMEM.MPIProcessorGroup.intersect (   self,
  args 
)
intersect(self, ProcessorGroup arg0)

1

Reimplemented from ParaMEDMEM::ProcessorGroup.

Definition at line 15296 of file ParaMEDMEM.py.

15296 
15297     def intersect(self, *args):
15298         """
15299         intersect(self, ProcessorGroup arg0)
15300 
15301         1
15302         """
15303         return _ParaMEDMEM.MPIProcessorGroup_intersect(self, *args)

Here is the call graph for this function:

myRank(self) -> int

1

Reimplemented from ParaMEDMEM::ProcessorGroup.

Definition at line 15304 of file ParaMEDMEM.py.

15304 
15305     def myRank(self):
15306         """
15307         myRank(self) -> int
15308 
15309         1
15310         """
15311         return _ParaMEDMEM.MPIProcessorGroup_myRank(self)

Here is the call graph for this function:

int ParaMEDMEM::ProcessorGroup::size ( ) const [inline, inherited]

Definition at line 47 of file ProcessorGroup.hxx.

{ return _proc_ids.size(); }

Here is the caller graph for this function:

def ParaMEDMEM.ProcessorGroup.size (   self) [inherited]
size(self) -> int

1

Definition at line 14823 of file ParaMEDMEM.py.

14823 
14824     def size(self):
14825         """
14826         size(self) -> int
14827 
14828         1
14829         """
14830         return _ParaMEDMEM.ProcessorGroup_size(self)

Here is the call graph for this function:

def ParaMEDMEM.MPIProcessorGroup.translateRank (   self,
  args 
)
translateRank(self, ProcessorGroup group, int rank) -> int

1

Reimplemented from ParaMEDMEM::ProcessorGroup.

Definition at line 15320 of file ParaMEDMEM.py.

15320 
15321     def translateRank(self, *args):
15322         """
15323         translateRank(self, ProcessorGroup group, int rank) -> int
15324 
15325         1
15326         """
15327         return _ParaMEDMEM.MPIProcessorGroup_translateRank(self, *args)

Here is the call graph for this function:


Member Data Documentation

ParaMEDMEM.MPIProcessorGroup.__del__ = lambdaself:None; [static, private]

Reimplemented from ParaMEDMEM::ProcessorGroup.

Definition at line 15279 of file ParaMEDMEM.py.

tuple ParaMEDMEM.MPIProcessorGroup.__getattr__ = lambdaself,name:_swig_getattr(self, MPIProcessorGroup, name) [static, private]

Reimplemented from ParaMEDMEM::ProcessorGroup.

Definition at line 15261 of file ParaMEDMEM.py.

Reimplemented from ParaMEDMEM::ProcessorGroup.

Definition at line 15262 of file ParaMEDMEM.py.

tuple ParaMEDMEM.MPIProcessorGroup.__setattr__ = lambdaself,name,value:_swig_setattr(self, MPIProcessorGroup, name, value) [static, private]

Reimplemented from ParaMEDMEM::ProcessorGroup.

Definition at line 15258 of file ParaMEDMEM.py.

ParaMEDMEM.MPIProcessorGroup.__swig_destroy__ = _ParaMEDMEM.delete_MPIProcessorGroup [static, private]

Reimplemented from ParaMEDMEM::ProcessorGroup.

Definition at line 15278 of file ParaMEDMEM.py.

dictionary ParaMEDMEM.MPIProcessorGroup.__swig_getmethods__ = {} [static, private]

Reimplemented from ParaMEDMEM::ProcessorGroup.

Definition at line 15259 of file ParaMEDMEM.py.

dictionary ParaMEDMEM.MPIProcessorGroup.__swig_setmethods__ = {} [static, private]

Reimplemented from ParaMEDMEM::ProcessorGroup.

Definition at line 15256 of file ParaMEDMEM.py.

Definition at line 56 of file MPIProcessorGroup.hxx.

Definition at line 55 of file ProcessorGroup.hxx.

Definition at line 55 of file MPIProcessorGroup.hxx.

std::set<int> ParaMEDMEM::ProcessorGroup::_proc_ids [protected, inherited]

Definition at line 56 of file ProcessorGroup.hxx.

Definition at line 54 of file MPIProcessorGroup.hxx.

Definition at line 15277 of file ParaMEDMEM.py.


The documentation for this class was generated from the following files: