darray_nproc Subroutine

public subroutine darray_nproc(np, me)

Get number of processes and current rank (DDI_NPROC equivalent)

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(out) :: np

Output: total number of processes

integer(kind=int32), intent(out) :: me

Source Code

   subroutine darray_nproc(np, me)
      integer(int32), intent(out) :: np, me
      np = wrapper_comm%size()
      me = wrapper_comm%rank()
   end subroutine darray_nproc