Get number of processes and current rank (DDI_NPROC equivalent)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(out) | :: | np |
Output: total number of processes |
||
| integer(kind=int32), | intent(out) | :: | me |
subroutine darray_nproc(np, me) integer(int32), intent(out) :: np, me np = wrapper_comm%size() me = wrapper_comm%rank() end subroutine darray_nproc