mpi4py.MPI.Cartcomm¶
- class mpi4py.MPI.Cartcomm¶
Bases:
Topocomm
Cartesian topology intracommunicator.
Methods Summary
Get_cart_rank
(coords)Translate logical coordinates to ranks.
Get_coords
(rank)Translate ranks to logical coordinates.
Get_dim
()Return number of dimensions.
Get_topo
()Return information on the cartesian topology.
Shift
(direction, disp)Return a process ranks for data shifting with
Sendrecv
.Sub
(remain_dims)Return a lower-dimensional Cartesian topology.
Attributes Summary
Coordinates.
Number of dimensions.
Dimensions.
Number of dimensions.
Periodicity.
Topology information.
Methods Documentation
- Get_cart_rank(coords)¶
Translate logical coordinates to ranks.
- Get_coords(rank)¶
Translate ranks to logical coordinates.
- Get_topo()¶
Return information on the cartesian topology.
- Sub(remain_dims)¶
Return a lower-dimensional Cartesian topology.
Attributes Documentation
- coords¶
Coordinates.
- dim¶
Number of dimensions.
- dims¶
Dimensions.
- ndim¶
Number of dimensions.
- periods¶
Periodicity.
- topo¶
Topology information.