Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(out) | :: | numtask | |||
integer, | intent(out) | :: | dims(2) | |||
integer, | intent(out) | :: | task_coor(2) | |||
type(mp_comm_type), | intent(in) | :: | groupid |
SUBROUTINE mp_environ_c(numtask, dims, task_coor, groupid) INTEGER, INTENT(OUT) :: numtask, dims(2), & task_coor(2) TYPE(mp_comm_type), INTENT(IN) :: groupid INTEGER :: ierr #if defined(__parallel) LOGICAL, DIMENSION(2) :: periods #endif ierr = 0 numtask = 1 task_coor = 0 dims = 1 #if defined(__parallel) CALL mpi_comm_size(groupid%handle, numtask, ierr) IF (ierr /= 0) CALL mp_stop(ierr, "mpi_comm_size @ mp_environ_c") CALL mpi_cart_get(groupid%handle, 2, dims, periods, task_coor, ierr) IF (ierr /= 0) CALL mp_stop(ierr, "mpi_cart_get @ mp_environ_c") #else MARK_USED(groupid) #endif END SUBROUTINE mp_environ_c