13 #include "inc_openmp.h" 62 if(
io_l )
write(
io_fid_log,*)
'++++++ Module[CONFIG] / Categ[ATMOS PHY_TB] / Origin[SCALE-RM]' 92 if(
io_l )
write(
io_fid_log,*)
'++++++ Module[DRIVER] / Categ[ATMOS PHY_TB] / Origin[SCALE-RM]' 97 momz_t_tb(
ks-1,i,j) = 0.0_rp
98 momz_t_tb(
ke ,i,j) = 0.0_rp
106 if(
io_l )
write(
io_fid_log,*)
'*** this component is never called.' 185 logical,
intent(in) :: update_flag
188 real(RP) :: qflx_momz(
ka,
ia,
ja,3)
189 real(RP) :: qflx_momx(
ka,
ia,
ja,3)
190 real(RP) :: qflx_momy(
ka,
ia,
ja,3)
191 real(RP) :: qflx_rhot(
ka,
ia,
ja,3)
192 real(RP) :: qflx_rhoq(
ka,
ia,
ja,3,
qa)
198 real(RP) :: tend(
ka,
ia,
ja)
204 integer :: k, i, j, iq
207 if ( update_flag )
then 212 qflx_rhot, qflx_rhoq, &
216 sflx_mw, sflx_mu, sflx_mv, &
218 gsqrt, j13g, j23g, j33g, mapf, &
225 call calc_tend_momz( momz_t_tb, &
227 gsqrt, j13g, j23g, j33g, mapf, &
236 call calc_tend_momx( momx_t_tb, &
238 gsqrt, j13g, j23g, j33g, mapf, &
247 call calc_tend_momy( momy_t_tb, &
249 gsqrt, j13g, j23g, j33g, mapf, &
258 call calc_tend_phi ( rhot_t_tb, &
260 gsqrt, j13g, j23g, j33g, mapf, &
272 call calc_tend_phi( tend(:,:,:), &
273 qflx_rhoq(:,:,:,:,iq), &
274 gsqrt, j13g, j23g, j33g, mapf, &
280 rhoq_t_tb(k,i,j,iq) = rhoq_t_tb(k,i,j,iq) + tend(k,i,j)
289 call hist_in( nu(:,:,:),
'NU',
'eddy viscosity',
'm2/s' , nohalo=.true. )
290 call hist_in( ri(:,:,:),
'Ri',
'Richardson number',
'NIL' , nohalo=.true. )
291 call hist_in( pr(:,:,:),
'Pr',
'Prantle number',
'NIL' , nohalo=.true. )
293 call hist_in( momz_t_tb(:,:,:),
'MOMZ_t_TB',
'MOMZ tendency (TB)',
'kg/m2/s2', nohalo=.true. )
294 call hist_in( momx_t_tb(:,:,:),
'MOMX_t_TB',
'MOMX tendency (TB)',
'kg/m2/s2', nohalo=.true. )
295 call hist_in( momy_t_tb(:,:,:),
'MOMY_t_TB',
'MOMY tendency (TB)',
'kg/m2/s2', nohalo=.true. )
296 call hist_in( rhot_t_tb(:,:,:),
'RHOT_t_TB',
'RHOT tendency (TB)',
'K.kg/m3/s', nohalo=.true. )
299 call hist_in( rhoq_t_tb(:,:,:,iq), trim(
tracer_name(iq))//
'_t_TB', &
300 'RHO*'//trim(
tracer_name(iq))//
' tendency (TB)',
'kg/m3/s', nohalo=.true. )
303 call hist_in( qflx_momz(:,:,:,
zdir),
'SGS_ZFLX_MOMZ',
'SGS Z FLUX of MOMZ',
'kg/m/s2', &
305 call hist_in( qflx_momz(:,:,:,
xdir),
'SGS_XFLX_MOMZ',
'SGS X FLUX of MOMZ',
'kg/m/s2', &
306 xdim=
'half', zdim=
'half', nohalo=.true.)
307 call hist_in( qflx_momz(:,:,:,
ydir),
'SGS_YFLX_MOMZ',
'SGS Y FLUX of MOMZ',
'kg/m/s2', &
308 ydim=
'half', zdim=
'half', nohalo=.true.)
310 call hist_in( qflx_momx(:,:,:,
zdir),
'SGS_ZFLX_MOMX',
'SGS Z FLUX of MOMX',
'kg/m/s2', &
311 xdim=
'half', zdim=
'half', nohalo=.true.)
312 call hist_in( qflx_momx(:,:,:,
xdir),
'SGS_XFLX_MOMX',
'SGS X FLUX of MOMX',
'kg/m/s2', &
314 call hist_in( qflx_momx(:,:,:,
ydir),
'SGS_YFLX_MOMX',
'SGS Y FLUX of MOMX',
'kg/m/s2', &
315 xdim=
'half', ydim=
'half', nohalo=.true.)
317 call hist_in( qflx_momy(:,:,:,
zdir),
'SGS_ZFLX_MOMY',
'SGS Z FLUX of MOMY',
'kg/m/s2', &
318 ydim=
'half', zdim=
'half', nohalo=.true.)
319 call hist_in( qflx_momy(:,:,:,
xdir),
'SGS_XFLX_MOMY',
'SGS X FLUX of MOMY',
'kg/m/s2', &
320 xdim=
'half', ydim=
'half', nohalo=.true.)
321 call hist_in( qflx_momy(:,:,:,
ydir),
'SGS_YFLX_MOMY',
'SGS Y FLUX of MOMY',
'kg/m/s2', &
324 call hist_in( qflx_rhot(:,:,:,
zdir),
'SGS_ZFLX_RHOT',
'SGS Z FLUX of RHOT',
'K*kg/m2/s', &
325 zdim=
'half', nohalo=.true.)
326 call hist_in( qflx_rhot(:,:,:,
xdir),
'SGS_XFLX_RHOT',
'SGS X FLUX of RHOT',
'K*kg/m2/s', &
327 xdim=
'half', nohalo=.true.)
328 call hist_in( qflx_rhot(:,:,:,
ydir),
'SGS_YFLX_RHOT',
'SGS Y FLUX of RHOT',
'K*kg/m2/s', &
329 ydim=
'half', nohalo=.true.)
335 call hist_in( qflx_rhoq(:,:,:,
zdir,iq), &
337 zdim=
'half', nohalo=.true.)
338 call hist_in( qflx_rhoq(:,:,:,
xdir,iq), &
340 xdim=
'half', nohalo=.true.)
341 call hist_in( qflx_rhoq(:,:,:,
ydir,iq), &
343 ydim=
'half', nohalo=.true.)
347 call stat_total( total, momz_t_tb(:,:,:),
'MOMZ_t_TB' )
348 call stat_total( total, momx_t_tb(:,:,:),
'MOMX_t_TB' )
349 call stat_total( total, momy_t_tb(:,:,:),
'MOMY_t_TB' )
350 call stat_total( total, rhot_t_tb(:,:,:),
'RHOT_t_TB' )
351 call stat_total( total, nu(:,:,:),
'Nu' )
352 call stat_total( total, ri(:,:,:),
'Ri' )
353 call stat_total( total, pr(:,:,:),
'Pr' )
356 call stat_total( total, rhoq_t_tb(:,:,:,iq), trim(
tracer_name(iq))//
'_t_TB' )
367 momz_t(k,i,j) = momz_t(k,i,j) + momz_t_tb(k,i,j)
368 momx_t(k,i,j) = momx_t(k,i,j) + momx_t_tb(k,i,j)
369 momy_t(k,i,j) = momy_t(k,i,j) + momy_t_tb(k,i,j)
370 rhot_t(k,i,j) = rhot_t(k,i,j) + rhot_t_tb(k,i,j)
380 rhoq_t(k,i,j,iq) = rhoq_t(k,i,j,iq) + rhoq_t_tb(k,i,j,iq)
integer, public is
start point of inner domain: x, local
logical, public statistics_checktotal
calc&report variable totals to logfile?
real(rp), dimension(:,:,:), allocatable, target, public momz
subroutine, public atmos_phy_tb_calc_tend_momz(MOMZ_t_TB, QFLX_MOMZ, GSQRT, J13G, J23G, J33G, MAPF, IIS, IIE, JJS, JJE)
integer, public je
end point of inner domain: y, local
real(rp), dimension(:,:,:), allocatable, public atmos_phy_tb_momx_t
real(rp), dimension(:,:,:), allocatable, public atmos_phy_sf_sflx_qtrc
real(rp), dimension(:,:,:), allocatable, public atmos_phy_tb_rhot_t
real(rp), dimension(:,:), allocatable, public atmos_phy_sf_sflx_mw
subroutine, public atmos_phy_tb_driver_config
Config.
real(rp), dimension(:,:,:), allocatable, target, public rhot
real(rp), dimension(:,:,:,:), allocatable, public gtrans_j23g
(2,3) element of Jacobian matrix * {G}^1/2
real(rp), dimension(:,:,:), allocatable, public momy_tp
module ATMOSPHERE / Physics Turbulence
integer, public iblock
block size for cache blocking: x
subroutine, public atmos_phy_tb_calc_tend_momy(MOMY_t_TB, QFLX_MOMY, GSQRT, J13G, J23G, J33G, MAPF, IIS, IIE, JJS, JJE)
logical, public io_l
output log or not? (this process)
integer, parameter, public zdir
procedure(tb), pointer, public atmos_phy_tb
module ATMOSPHERIC Variables
real(rp), dimension(:,:,:,:), pointer, public qtrc_av
real(rp), dimension(:,:,:), allocatable, target, public momx
integer, parameter, public ydir
integer, public ke
end point of inner domain: z, local
integer, parameter, public xdir
real(rp), public gtrans_j33g
(3,3) element of Jacobian matrix * {G}^1/2
real(rp), dimension(:,:,:), allocatable, public rhot_tp
logical, dimension(qa_max), public tracer_advc
real(rp), dimension(:,:,:), allocatable, public real_cz
geopotential height [m] (cell center)
real(rp), dimension(:,:,:), allocatable, target, public dens
real(rp), dimension(:,:), allocatable, public atmos_phy_sf_sflx_mv
character(len=h_short), dimension(qa_max), public tracer_name
subroutine, public atmos_phy_tb_calc_tend_phi(phi_t_TB, QFLX_phi, GSQRT, J13G, J23G, J33G, MAPF, IIS, IIE, JJS, JJE)
module ATMOSPHERIC Surface Variables
real(rp), dimension(:,:,:), pointer, public momx_av
logical, public atmos_sw_phy_tb
real(rp), dimension(:,:,:,:), allocatable, public gtrans_mapf
map factor
integer, public ia
of whole cells: x, local, with HALO
subroutine, public atmos_phy_tb_calc_tend_momx(MOMX_t_TB, QFLX_MOMX, GSQRT, J13G, J23G, J33G, MAPF, IIS, IIE, JJS, JJE)
integer, public ka
of whole cells: z, local, with HALO
integer, public jblock
block size for cache blocking: y
real(rp), dimension(:,:,:,:), allocatable, public rhoq_tp
integer, public js
start point of inner domain: y, local
real(dp), public time_dtsec_atmos_phy_tb
time interval of physics(turbulence ) [sec]
module Atmosphere / Physics Turbulence
real(rp), dimension(:,:,:), pointer, public dens_av
real(rp), dimension(:,:,:,:), allocatable, public gtrans_j13g
(1,3) element of Jacobian matrix * {G}^1/2
character(len=h_short), public atmos_phy_tb_type
module ATMOSPHERE / Physics Turbulence
integer, public ks
start point of inner domain: z, local
subroutine, public atmos_phy_tb_driver_setup
Setup.
module ATMOSPHERE / Physics Turbulence
real(rp), dimension(:,:,:), allocatable, public atmos_phy_tb_momy_t
real(rp), dimension(:,:,:), allocatable, public momx_tp
real(rp), dimension(:,:,:), allocatable, target, public momy
subroutine, public prof_rapstart(rapname_base, level)
Start raptime.
real(rp), dimension(:,:,:), allocatable, public momz_tp
real(rp), dimension(:,:), allocatable, public atmos_phy_sf_sflx_sh
real(rp), dimension(:,:,:), allocatable, public n2
integer, public ie
end point of inner domain: x, local
real(rp), dimension(:,:,:,:), allocatable, public gtrans_gsqrt
transformation metrics from Z to Xi, {G}^1/2
real(rp), dimension(:), allocatable, public grid_cdz
z-length of control volume [m]
real(rp), dimension(:,:,:,:), allocatable, public atmos_phy_tb_rhoq_t
real(rp), dimension(:), allocatable, public grid_cdy
y-length of control volume [m]
real(rp), dimension(:,:,:), pointer, public momz_av
real(rp), dimension(:,:,:), pointer, public rhot_av
procedure(su), pointer, public atmos_phy_tb_setup
subroutine, public atmos_phy_tb_driver(update_flag)
Driver.
integer, public io_fid_log
Log file ID.
real(rp), dimension(:,:,:), pointer, public momy_av
real(rp), dimension(:,:), allocatable, public atmos_phy_sf_sflx_mu
subroutine, public prof_rapend(rapname_base, level)
Save raptime.
subroutine, public atmos_phy_tb_driver_resume
Resume.
subroutine, public atmos_phy_tb_config(TB_TYPE)
register
real(rp), dimension(:), allocatable, public grid_cdx
x-length of control volume [m]
real(rp), dimension(:,:,:), allocatable, public atmos_phy_tb_momz_t
real(rp), dimension(:,:,:,:), allocatable, target, public qtrc
integer, public ja
of whole cells: y, local, with HALO