23 subroutine sfc_nst_post_run &
24 ( im, kdt, rlapse, tgice, wet, use_lake_model, icy, oro, &
26 nstf_name4, nstf_name5, xt, xz, dt_cool, z_c, tref, xlon, &
27 tsurf_wat, tsfc_wat, nthreads, dtzm, errmsg, errflg &
30 integer,
intent(in) :: im, kdt, nthreads
31 logical,
dimension(:),
intent(in) :: wet, icy
32 integer,
dimension(:),
intent(in) :: use_lake_model
33 real (kind=kind_phys),
intent(in) :: rlapse, tgice
34 real (kind=kind_phys),
dimension(:),
intent(in) :: oro, oro_uf
35 integer,
intent(in) :: nstf_name1, nstf_name4, nstf_name5
36 real (kind=kind_phys),
dimension(:),
intent(in) :: xlon
37 real (kind=kind_phys),
dimension(:),
intent(in),
optional :: xt, xz, dt_cool, z_c, tref
40 real (kind=kind_phys),
dimension(:),
intent(inout) :: tsurf_wat, tsfc_wat
43 real (kind=kind_phys),
dimension(:),
intent(out) :: dtzm
45 character(len=*),
intent(out) :: errmsg
46 integer,
intent(out) :: errflg
50 real(kind=kind_phys) :: zsea1, zsea2
68 if (nstf_name1 > 1)
then
69 zsea1 = 0.001_kp*real(nstf_name4)
70 zsea2 = 0.001_kp*real(nstf_name5)
71 call get_dtzm_2d (xt, xz, dt_cool, z_c, wet, zsea1, zsea2, im, 1, nthreads, dtzm)
75 if (wet(i) .and. use_lake_model(i) /=1)
then
76 tsfc_wat(i) = max(tgice, tref(i) + dtzm(i))
subroutine, public get_dtzm_2d(xt, xz, dt_cool, zc, wet, z1, z2, nx, ny, nth, dtm)
This module contains code to be executed after the near-surface sea temperature scheme.