tkwant.mpi.DistributedDict¶
-
class
tkwant.mpi.
DistributedDict
(data=None, comm=None)[source]¶ A class to handle a dictionary which is distributed over MPI ranks.
Initialize the dictionary.
- Parameters
data (dict, optional) – Dictionary with all initial one-body states. The dictionary can (and should be) distributed over all MPI ranks.
comm (
mpi4py.MPI.Intracomm
, optional) – The MPI communicator over which to parallelize the computation. By default, use the tkwant global MPI communicator.
Methods