nbodykit.CurrentMPIComm[source]¶Bases: object
A class to faciliate getting and setting the current MPI communicator.
Methods
enable(func) |
Decorator to attach the current MPI communicator to the input keyword arguments of func, via the comm keyword. |
get() |
Get the current MPI communicator, returning MPI.COMM_WORLD if it has not be explicitly set yet. |
set(comm) |
Set the current MPI communicator to the input value. |
enable(func)[source]¶Decorator to attach the current MPI communicator to the input
keyword arguments of func, via the comm keyword.