SUBROUTINE AP_RANK(rank) INTEGER rank
Duplicates MPI functionality; provided for convenience in the Fortran interface.
Note - in C, the user should access the global variable AP_rank to obtain the processor rank.