62 REAL(SP),
PARAMETER :: KAPPA = .40_sp
63 REAL(SP),
PARAMETER :: VK2 = .160_sp
64 REAL(SP) :: ZTEMP,BTPS,RR,U_TAUB,Z0B_GOTM,CFF
68 REAL(SP),
PARAMETER :: ALFA = .166667_sp, &
82 SELECT CASE(bottom_roughness_type)
93 WHERE (
dt1(1:nt) > 3.0_sp)
96 cbc(1:nt) = vk2/(log((
zz1(1:nt,kbm1)-
z1(1:nt,kb))*3.0/
cc_z0b(1:nt)))**2
115 IF (umol <= 0.0_sp)
THEN 118 z0b_gotm=0.1_sp*umol/max(umol,u_taub)+
cc_z0b(i)
121 rr=kappa/(log((z0b_gotm+ztemp)/z0b_gotm))
122 u_taub = rr*sqrt(
u(i,kbm1)*
u(i,kbm1) +
v(i,kbm1)*
v(i,kbm1) )
129 CALL fatal_error (
"BROUGH: UNKNOWN BOTTOM_ROUGHNESS_TYPE:"&
130 & ,trim(bottom_roughness_type) )
138 btps=
cbc(i)*sqrt(
u(i,kbm1)**2+
v(i,kbm1)**2)
139 wubot(i) = -btps *
u(i,kbm1)
140 wvbot(i) = -btps *
v(i,kbm1)
141 cff=0.75_sp*
dz1(i,kbm1)*
d1(i)
real(sp), dimension(:), allocatable, target d1
real(sp), dimension(:,:), allocatable, target v
logical function dbg_set(vrb)
real(sp), dimension(:), allocatable, target wubot_n
real(sp), dimension(:,:), allocatable, target u
real(sp), dimension(:), allocatable, target wubot
real(sp), dimension(:), allocatable, target wvbot
subroutine e2n2d(EVAR, NVAR)
real(sp), dimension(:), allocatable, target cc_z0b
real(sp), dimension(:), allocatable, target wvbot_n
real(sp), dimension(:,:), allocatable, target zz1
real(sp), dimension(:), allocatable, target taubm_n
real(sp), dimension(:), allocatable, target dt1
subroutine fatal_error(ER1, ER2, ER3, ER4)
real(sp), dimension(:), allocatable, target taubm
real(sp), dimension(:,:), allocatable, target dz1
real(sp), dimension(:,:), allocatable, target z1
real(sp), dimension(:), allocatable, target cbc
integer, parameter dbg_sbr