blob: 30fe7c8c0ef4862ba20b59f252cd3bfbd2c500da [file] [log] [blame]
Ethan Luis McDonough341c3cf2023-06-28 20:02:371subroutine increment_at(c_index, arr) bind(C, name="increment_at")
2 use ISO_C_BINDING
Ethan Luis McDonough9e3d59e2023-08-29 21:27:303 !$omp declare target
Ethan Luis McDonough341c3cf2023-06-28 20:02:374 integer (C_INT), dimension(*), intent(inout) :: arr
5 integer (C_INT), value :: c_index
6 arr(c_index+1) = arr(c_index+1) + 1
7end subroutine