public subroutine CPL_Cart_coords(COMM, rank, realm, maxdims, coords, ierr)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
integer, |
intent(in) |
|
| :: |
COMM | |
integer, |
intent(in) |
|
| :: |
rank | |
integer, |
intent(in) |
|
| :: |
realm | |
integer, |
intent(in) |
|
| :: |
maxdims | |
integer, |
intent(out) |
|
| :: |
coords(maxdims) | |
integer, |
intent(out) |
|
| :: |
ierr | |
Description
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
- error flag
@author Edward Smith
Variables
Type | Visibility |
Attributes | | Name | | Initial | |
integer, |
public |
| :: |
worldrank | | | |
integer, |
public |
| :: |
cartrank | | | |