fill_2d_impl Subroutine

private pure subroutine fill_2d_impl(field, buf)

Arguments

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

Called by

proc~~fill_2d_impl~~CalledByGraph proc~fill_2d_impl fill_2d_impl proc~fill_mld_epbl fill_mld_epbl proc~fill_mld_epbl->proc~fill_2d_impl

Variables

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

Source Code

   pure subroutine fill_2d_impl(field, buf)
      ! assumed-shape-ok: diag fill — fires once per output frame (cadence-bounded).
      real(wp), intent(in)    :: field(:, :)
      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) = field(i, j)
      end do
   end subroutine fill_2d_impl