win_lock Subroutine

private subroutine win_lock(this, rank, lock_type)

Type Bound

win_t

Arguments

Type IntentOptional Attributes Name
class(win_t), intent(in) :: this
integer(kind=int32), intent(in) :: rank
integer(kind=int32), intent(in), optional :: lock_type

Variables

Type Visibility Attributes Name Initial
integer(kind=int32), private :: ierr
integer(kind=int32), private :: ltype

Source Code

   subroutine win_lock(this, rank, lock_type)
      class(win_t), intent(in) :: this
      integer(int32), intent(in) :: rank
      integer(int32), intent(in), optional :: lock_type
      integer(int32) :: ierr, ltype

      ! 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: win_lock needs a peer rank"
   end subroutine win_lock