ocean_vert_adv_init Subroutine

private subroutine ocean_vert_adv_init(this, grid, nz_ml)

Type Bound

ocean_vertical_advection_t

Arguments

Type IntentOptional Attributes Name
class(ocean_vertical_advection_t), intent(inout) :: this
type(hgrid_t), intent(in) :: grid
integer, intent(in), optional :: nz_ml

Calls

proc~~ocean_vert_adv_init~~CallsGraph proc~ocean_vert_adv_init ocean_vertical_advection_t%ocean_vert_adv_init proc~scratch_3d_buffer_init scratch_3d_buffer_t%scratch_3d_buffer_init proc~ocean_vert_adv_init->proc~scratch_3d_buffer_init

Variables

Type Visibility Attributes Name Initial
integer, private :: nx
integer, private :: ny
integer, private :: nz

Source Code

   subroutine ocean_vert_adv_init(this, grid, nz_ml)
      class(ocean_vertical_advection_t), intent(inout) :: this
      type(hgrid_t), intent(in) :: grid
      integer, intent(in), optional :: nz_ml
      integer :: nx, ny, nz

      nx = grid%nx_total
      ny = grid%ny_total
      nz = 1
      if (present(nz_ml)) nz = nz_ml

      call this%F_face%init(nx, ny, nz + 1, "ocean_vert_adv_F_face")
      this%is_init = .true.
   end subroutine ocean_vert_adv_init