Bases: object
This class provides utility functions for easy communication with MPI and handles cases when DOLFIN is not configured with MPI.
Return average reduction operation; recognized by all_reduce(MPI_Comm, Table&, MPI_Op)
Return average across comm; implemented only for T == Table
Set a barrier (synchronization point)
Return local range for given process, splitting [0, N - 1] into size() portions of almost equal size
Overloaded versions
gather(comm, in_values, out_values, receiving_process=0)
Gather values on one process
gather(comm, in_values, out_values, receiving_process=0)
Gather strings on one process
Find global offset (index) (wrapper for MPI_(Ex)Scan with MPI_SUM as reduction op)
Return which process owns index (inverse of local_range)
Determine whether we should broadcast (based on current parallel policy)
Determine whether we should receive (based on current parallel policy)
Overloaded versions
local_range(comm, N)
Return local range for local process, splitting [0, N - 1] into size() portions of almost equal size
local_range(comm, process, N)
Return local range for given process, splitting [0, N - 1] into size() portions of almost equal size
Return global max value
Return global min value
Return process rank for the communicator
Return size of the group (number of processes) associated with the communicator
Sum values and return sum
The membership flag