fill_ice_u Subroutine

public subroutine fill_ice_u(state_handle, buf)

Eastward sea-ice velocity at T-centres (m/s) — u-face pair averaged to centre, 2-D twin of fill_u_centre. Ice off / not init ⇒ zeros.

Arguments

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

Calls

proc~~fill_ice_u~~CallsGraph proc~fill_ice_u fill_ice_u proc~fill_ice_u_impl fill_ice_u_impl proc~fill_ice_u->proc~fill_ice_u_impl proc~zero3_impl zero3_impl proc~fill_ice_u->proc~zero3_impl

Source Code

   subroutine fill_ice_u(state_handle, buf)
      !! Eastward sea-ice velocity at T-centres (m/s) — u-face pair
      !! averaged to centre, 2-D twin of `fill_u_centre`.  Ice off / not
      !! init ⇒ zeros.
      class(*), intent(in) :: state_handle
      real(wp), intent(inout) :: buf(:, :, :)
      select type (state => state_handle)
      class is (ocean_state_t)
         if (.not. state%ice%is_init) then
            call zero3_impl(buf)
            return
         end if
         call fill_ice_u_impl(state%ice%u_ice, buf)
      end select
   end subroutine fill_ice_u