Skip to content

Commit

Permalink
Merge pull request #98 from gustavo-marques/L_StokesL
Browse files Browse the repository at this point in the history
Add missing L_StokesL computation
  • Loading branch information
mnlevy1981 authored Oct 30, 2024
2 parents 5e3d0ce + 8c8a00e commit 87c3c0c
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/shared/cvmix_kpp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ module cvmix_kpp

! !IROUTINE: cvmix_init_kpp
! !INTERFACE:
subroutine cvmix_init_kpp(ri_crit, minOBLdepth, maxOBLdepth, minVtsqr, &
vonkarman, Cstar, zeta_m, zeta_s, surf_layer_ext, &
Cv, interp_type, interp_type2, MatchTechnique, &
old_vals, lEkman, lStokesMOST, lMonOb, lnoDGat1, &
lenhanced_diff, lnonzero_surf_nonlocal, &
Langmuir_mixing_str, Langmuir_entrainment_str, &
subroutine cvmix_init_kpp(ri_crit, minOBLdepth, maxOBLdepth, minVtsqr, &
vonkarman, Cstar, zeta_m, zeta_s, surf_layer_ext, &
CVt2, Cv, interp_type, interp_type2, MatchTechnique, &
old_vals, lEkman, lStokesMOST, lMonOb, lnoDGat1, &
lenhanced_diff, lnonzero_surf_nonlocal, &
Langmuir_mixing_str, Langmuir_entrainment_str, &
l_LMD_ws, CVmix_kpp_params_user)

! !DESCRIPTION:
Expand All @@ -246,6 +246,7 @@ subroutine cvmix_init_kpp(ri_crit, minOBLdepth, maxOBLdepth, minVtsqr, &
zeta_m, &
zeta_s, &
surf_layer_ext, &
CVt2, &
Cv
character(len=*), optional, intent(in) :: interp_type, &
interp_type2, &
Expand Down Expand Up @@ -487,7 +488,12 @@ subroutine cvmix_init_kpp(ri_crit, minOBLdepth, maxOBLdepth, minVtsqr, &
else
call cvmix_put_kpp('lStokesMOST', .false., CVmix_kpp_params_user)
end if
call cvmix_put_kpp('CVt2', 2.6_cvmix_r8, CVmix_kpp_params_user)

if (present(CVt2)) then
call cvmix_put_kpp('CVt2', CVt2, CVmix_kpp_params_user)
else
call cvmix_put_kpp('CVt2', 1.6_cvmix_r8, CVmix_kpp_params_user)
end if

if (present(lEkman)) then
call cvmix_put_kpp('lEkman', lEkman, CVmix_kpp_params_user)
Expand Down Expand Up @@ -2434,6 +2440,7 @@ subroutine cvmix_kpp_compute_turbulent_scales_1d_OBL(sigma_coord, &
if (compute_ws) then
do kw = 1,n_sigma
chi_s = compute_Stokes_chi( xi(kw) , lchi_s=.true. )
L_StokesL = cvmix_one - xi(kw) !wgl - xi
w_s(kw)=compute_phi_inv(zeta(kw),CVmix_kpp_params_in,L_StokesL,lphi_s=.true.) * &
vonkar*surf_fric_vel / chi_s
end do
Expand Down

0 comments on commit 87c3c0c

Please sign in to comment.