Returns true if the calling process has rank 0
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(comm_t), | intent(in) | :: | this |
pure function comm_leader(this) result(is_leader) !! Returns true if the calling process has rank 0 class(comm_t), intent(in) :: this logical :: is_leader is_leader = (this%m_rank == 0) end function comm_leader