Determines process coords in appropriate realm's cartesian topology given a rank in any communicator
Synopsis
CPL_Cart_coords(COMM, rank, realm, maxdims, coords, ierr)
Input Parameters
comm
communicator with cartesian structure (handle)
realm
cfd_realm (1) or md_realm (2) (integer)
rank
rank of a process within group of comm (integer) NOTE fortran convention rank=1 to nproc
maxdims
length of vector coords in the calling program (integer)
Output Parameter
coords
integer array (of size ndims) containing the Cartesian coordinates of specified process (integer)
ierr
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | worldrank | ||||
integer, | public | :: | cartrank |