Wait on the nonblocking collective communications if they have been used.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ky_type), | intent(inout) | :: | self |
subroutine ky_wait_for_nonblocking_collectives(self)
use mp, only : wait
implicit none
class(ky_type), intent(inout) :: self
integer :: is
!AJ This could be done more efficiently if the requests
!AJ are put into a single array and waitany is called on that
!AJ array.
do is=1,self%nsupercell
call wait(self%supercells(is)%collective_request)
enddo
end subroutine ky_wait_for_nonblocking_collectives