request_is_null Function

private pure function request_is_null(this) result(is_null)

Checks if the request is null/invalid

Type Bound

request_t

Arguments

Type IntentOptional Attributes Name
class(request_t), intent(in) :: this

Return Value logical


Source Code

   pure function request_is_null(this) result(is_null)
      !! Checks if the request is null/invalid
      class(request_t), intent(in) :: this
      logical :: is_null
      ! A single rank has no peer. Reaching this means the caller
      ! did not take its `size() == 1` path -- which is a bug worth
      ! stopping for, not one to hide by returning quietly.
      error stop "pic_mpi_serial: request_is_null needs a peer rank"
   end function request_is_null