Context
Global context
The context is a convenient place to store MPI attributes.
rank
rank of the current process (0, 1, …, procs-1)
procs
number of MPI ranks
comm
MPI.COMM_WORLD
MPI
mpi4py’s MPI module
iterates
Create a DFM from a sequence of numbers.
n – The number of iterates
robin – If True, assignments are done round-robin, so rank 0 will have 0, procs, 2*procs, … rank 1 will have 1, procs+1, 2*procs+1, …
DFM holding numbers 0, 1, …, n-1