petsc4py.PETSc.Comm#
- class petsc4py.PETSc.Comm#
Bases:
object
Communicator object.
Predefined instances:
COMM_NULL
The null (or invalid) communicator.
COMM_SELF
The self communicator.
COMM_WORLD
The world communicator.
See also
Methods Summary
barrier
()Barrier synchronization.
destroy
()Destroy the communicator.
Duplicate the communicator.
getRank
()Return the rank of the calling processes in the communicator.
getSize
()Return the number of processes in the communicator.
tompi4py
()Convert communicator to
mpi4py
.Attributes Summary
Fortran handle.
Communicator rank.
Communicator size.
Methods Documentation
- barrier()#
Barrier synchronization.
Collective.
Source code at petsc4py/PETSc/Comm.pyx:123
- Return type:
- destroy()#
Destroy the communicator.
Collective.
See also
Source code at petsc4py/PETSc/Comm.pyx:61
- Return type:
- duplicate()#
Duplicate the communicator.
Collective.
See also
Source code at petsc4py/PETSc/Comm.pyx:79
- Return type:
- getRank()#
Return the rank of the calling processes in the communicator.
Not collective.
Source code at petsc4py/PETSc/Comm.pyx:111
- Return type:
- getSize()#
Return the number of processes in the communicator.
Not collective.
Source code at petsc4py/PETSc/Comm.pyx:99
- Return type:
- tompi4py()#
Convert communicator to
mpi4py
.Not collective.
See also
Source code at petsc4py/PETSc/Comm.pyx:155
- Return type:
Attributes Documentation
- fortran#
Fortran handle.
- rank#
Communicator rank.
- size#
Communicator size.