Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(mp_comm_type), | intent(in) | :: | group | |||
integer, | intent(in), | DIMENSION(:), CONTIGUOUS | :: | pos | ||
integer, | intent(out) | :: | rank |
SUBROUTINE mp_cart_rank(group, pos, rank) TYPE(mp_comm_type), INTENT(IN) :: group INTEGER, DIMENSION(:), CONTIGUOUS, INTENT(IN) :: pos INTEGER, INTENT(OUT) :: rank INTEGER :: ierr ierr = 0 #if defined(__parallel) CALL mpi_cart_rank(group%handle, pos, rank, ierr) IF (ierr /= 0) CALL mp_stop(ierr, "mpi_cart_rank @ mp_cart_rank") #else rank = 0 MARK_USED(group) MARK_USED(pos) #endif END SUBROUTINE mp_cart_rank