| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(win_t), | intent(in) | :: | this | |||
| integer(kind=int32), | intent(in) | :: | target_rank | |||
| integer(kind=MPI_ADDRESS_KIND), | intent(in) | :: | target_disp | |||
| integer(kind=int64), | intent(in) | :: | value | |||
| integer(kind=int64), | intent(out) | :: | result |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer(kind=int32), | private | :: | ierr |
subroutine win_fetch_and_add_i64(this, target_rank, target_disp, value, result) class(win_t), intent(in) :: this integer(int32), intent(in) :: target_rank integer(MPI_ADDRESS_KIND), intent(in) :: target_disp integer(int64), intent(in) :: value integer(int64), intent(out) :: result integer(int32) :: ierr ! 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_fetch_and_add_i64 needs a peer rank" end subroutine win_fetch_and_add_i64