constant_update Subroutine

private subroutine constant_update(this, t, bc)

Type Bound

ocean_boundary_data_constant_t

Arguments

Type IntentOptional Attributes Name
class(ocean_boundary_data_constant_t), intent(inout) :: this
real(kind=wp), intent(in) :: t
type(ocean_bc_state_t), intent(inout) :: bc

Called by

proc~~constant_update~~CalledByGraph proc~constant_update ocean_boundary_data_constant_t%constant_update proc~engine_step engine_step proc~engine_step->proc~constant_update proc~driver_run_ocean driver_run_ocean proc~driver_run_ocean->proc~engine_step proc~rdb_ocean_step rdb_ocean_step proc~rdb_ocean_step->proc~engine_step proc~driver_run driver_run proc~driver_run->proc~driver_run_ocean

Source Code

   subroutine constant_update(this, t, bc)
      class(ocean_boundary_data_constant_t), intent(inout) :: this
      real(wp), intent(in) :: t
      type(ocean_bc_state_t), intent(inout) :: bc
      bc%west%clamped_u = this%u_west
      bc%east%clamped_u = this%u_east
      bc%south%clamped_v = this%v_south
      bc%north%clamped_v = this%v_north
      bc%west%clamped_eta = this%eta_west
      bc%east%clamped_eta = this%eta_east
      bc%south%clamped_eta = this%eta_south
      bc%north%clamped_eta = this%eta_north
      ! `t` unused for a constant source; kept to match the interface.
      if (.false.) then
         bc%west%clamped_u = t
         bc%west%clamped_u = this%u_west
      end if
   end subroutine constant_update