shm_onnode Function

public function shm_onnode(ip)

Checks if a node rank belong to the curent node

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: ip

Return Value logical


Contents

Source Code


Source Code

  function shm_onnode(ip)
    implicit none
    integer, intent(in) :: ip
    logical shm_onnode

    integer i

    shm_onnode = .false.
    
    do i = 0, shm_info%size - 1
       if (ip == shm_info%wranks(i)) then
          shm_onnode = .true.
          exit
       end if
    enddo
    
  end function shm_onnode