Skip to content

Commit

Permalink
Rename coindices args to cosubscripts to reflect PRIF v0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ktras committed May 2, 2024
1 parent c717ab2 commit a39097d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/caffeine/coarray_access_s.f90
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
integer(c_int) :: image
integer(c_intptr_t) :: remote_base, remote_ptr

call prif_image_index(coarray_handle, coindices, image_index=image)
call prif_image_index(coarray_handle, cosubscripts, image_index=image)
call prif_base_pointer(coarray_handle, image, remote_base)
remote_ptr = &
remote_base &
Expand Down Expand Up @@ -40,7 +40,7 @@
integer(c_int) :: image
integer(c_intptr_t) :: remote_base, remote_ptr

call prif_image_index(coarray_handle, coindices, image_index=image)
call prif_image_index(coarray_handle, cosubscripts, image_index=image)
call prif_base_pointer(coarray_handle, image, remote_base)
remote_ptr = &
remote_base &
Expand Down
8 changes: 4 additions & 4 deletions src/prif.f90
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ module subroutine prif_deallocate_non_symmetric(mem, stat, errmsg, errmsg_alloc)
end subroutine

module subroutine prif_put( &
coarray_handle, coindices, value, first_element_addr, team, team_number, notify_ptr, stat, errmsg, errmsg_alloc)
coarray_handle, cosubscripts, value, first_element_addr, team, team_number, notify_ptr, stat, errmsg, errmsg_alloc)
implicit none
type(prif_coarray_handle), intent(in) :: coarray_handle
integer(c_intmax_t), intent(in) :: coindices(:)
integer(c_intmax_t), intent(in) :: cosubscripts(:)
type(*), intent(in), contiguous, target :: value(..)
type(c_ptr), intent(in) :: first_element_addr
type(prif_team_type), optional, intent(in) :: team
Expand Down Expand Up @@ -208,10 +208,10 @@ module subroutine prif_put_raw_strided( &
end subroutine

module subroutine prif_get( &
coarray_handle, coindices, first_element_addr, value, team, team_number, stat, errmsg, errmsg_alloc)
coarray_handle, cosubscripts, first_element_addr, value, team, team_number, stat, errmsg, errmsg_alloc)
implicit none
type(prif_coarray_handle), intent(in) :: coarray_handle
integer(c_intmax_t), intent(in) :: coindices(:)
integer(c_intmax_t), intent(in) :: cosubscripts(:)
type(c_ptr), intent(in) :: first_element_addr
type(*), intent(inout), contiguous, target :: value(..)
type(prif_team_type), optional, intent(in) :: team
Expand Down
6 changes: 3 additions & 3 deletions test/caf_rma_test.f90
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function check_put() result(result_)

call prif_put( &
coarray_handle = coarray_handle, &
coindices = [neighbor], &
cosubscripts = [neighbor], &
value = me, &
first_element_addr = allocated_memory)
call prif_sync_all
Expand Down Expand Up @@ -143,7 +143,7 @@ function check_get() result(result_)

call prif_get( &
coarray_handle = coarray_handle, &
coindices = [neighbor], &
cosubscripts = [neighbor], &
first_element_addr = allocated_memory, &
value = retrieved)

Expand Down Expand Up @@ -194,4 +194,4 @@ function check_get_raw() result(result_)

call prif_deallocate([coarray_handle])
end function
end module
end module

0 comments on commit a39097d

Please sign in to comment.