fill_ssh_bt_impl Subroutine

private pure subroutine fill_ssh_bt_impl(h, b, buf)

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: h(:,:)
real(kind=wp), intent(in) :: b(:,:)
real(kind=wp), intent(inout) :: buf(:,:,:)

Called by

proc~~fill_ssh_bt_impl~~CalledByGraph proc~fill_ssh_bt_impl fill_ssh_bt_impl proc~fill_ssh fill_ssh proc~fill_ssh->proc~fill_ssh_bt_impl

Variables

Type Visibility Attributes Name Initial
integer, private :: i
integer, private :: j
integer, private :: nx
integer, private :: ny

Source Code

   pure subroutine fill_ssh_bt_impl(h, b, buf)
      ! assumed-shape-ok: diag fill — fires once per output frame (cadence-bounded).
      real(wp), intent(in)    :: h(:, :), b(:, :)
      real(wp), intent(inout) :: buf(:, :, :)  ! assumed-shape-ok: diag fill — cadence-bounded
      integer :: i, j, nx, ny
      nx = size(buf, 1)
      ny = size(buf, 2)
      do concurrent(j=1:ny, i=1:nx)
         buf(i, j, 1) = h(i, j) - b(i, j)
      end do
   end subroutine fill_ssh_bt_impl