proteus.Comm module

Module for controlling MPI

Inheritance diagram of proteus.Comm

proteus.Comm.init()[source]
proteus.Comm.get()[source]
class proteus.Comm.Comm[source]

Proteus wrapper around PETSc/MPI communicators

This is a very simple class that provides compatibility with older Proteus comm objects.

isInitialized()[source]
rank()[source]

Return position in this communicator (0-indexed)

size()[source]

Return number of processes on this communicator

barrier()[source]

Block all processes on this communicator until all have called this method

isMaster()[source]

Return true if this process is the ‘master’ for this communicator

beginSequential(ng=1)[source]

Begin a block of code to be completed sequentially by each process

endSequential(ng=1)[source]

End a block of code to be completed sequentially by each process