13 #include "inc_openmp.h" 71 integer,
private,
parameter :: vmax = 2
72 integer,
private,
parameter :: i_tke = 1
73 integer,
private,
parameter :: i_nu = 2
75 character(len=H_SHORT),
private :: var_name(vmax)
76 character(len=H_MID),
private :: var_desc(vmax)
77 character(len=H_SHORT),
private :: var_unit(vmax)
78 integer,
private :: var_id(vmax)
79 integer,
private :: restart_fid = -1
81 data var_name /
'TKE', &
83 data var_desc /
'turburent kinetic energy', &
85 data var_unit /
'm2/s2', &
98 real(RP) :: ATMOS_PHY_TB_TKE_INIT = 1.0e-10_rp
100 namelist / param_atmos_phy_tb_vars / &
106 atmos_phy_tb_tke_init
113 if(
io_l )
write(
io_fid_log,*)
'++++++ Module[VARS] / Categ[ATMOS PHY_TB] / Origin[SCALE-RM]' 127 read(
io_fid_conf,nml=param_atmos_phy_tb_vars,iostat=ierr)
129 if(
io_l )
write(
io_fid_log,*)
'*** Not found namelist. Default used.' 130 elseif( ierr > 0 )
then 131 write(*,*)
'xxx Not appropriate names in namelist PARAM_ATMOS_PHY_TB_VARS. Check!' 137 if(
io_l )
write(
io_fid_log,*)
'*** [ATMOS_PHY_TB] prognostic/diagnostic variables' 139 '*** |',
'VARNAME ',
'|',
'DESCRIPTION ',
'[',
'UNIT ',
']' 142 '*** NO.',iv,
'|',var_name(iv),
'|',var_desc(iv),
'[',var_unit(iv),
']' 213 if(
io_l )
write(
io_fid_log,*)
'*** Input restart file (ATMOS_PHY_TB) ***' 228 if(
io_l )
write(
io_fid_log,*)
'*** restart file for ATMOS_PHY_TB is not specified.' 243 character(len=20) :: timelabel
244 character(len=H_LONG) :: basename
253 if(
io_l )
write(
io_fid_log,*)
'*** Output restart file (ATMOS_PHY_TB) ***' 275 character(len=20) :: timelabel
276 character(len=H_LONG) :: basename
285 if(
io_l )
write(
io_fid_log,*)
'*** Output restart file (ATMOS_PHY_TB) ***' 303 if ( restart_fid .NE. -1 )
then 317 if ( restart_fid .NE. -1 )
then 334 if ( restart_fid .NE. -1 )
then 336 call fileio_def_var( restart_fid, var_id(1), var_name(1), var_desc(1), &
355 if ( restart_fid .NE. -1 )
then integer, public is
start point of inner domain: x, local
subroutine, public atmos_phy_tb_vars_restart_enddef
Exit netCDF define mode.
integer, public je
end point of inner domain: y, local
subroutine, public atmos_phy_tb_vars_restart_read
Read restart.
real(rp), dimension(:,:,:), allocatable, public atmos_phy_tb_momx_t
subroutine, public prc_mpistop
Abort MPI.
real(rp), dimension(:,:,:), allocatable, public atmos_phy_tb_rhot_t
logical, public io_l
output log or not? (this process)
subroutine, public atmos_phy_tb_vars_restart_write
Write restart.
integer, public ke
end point of inner domain: z, local
real(rp), dimension(:,:,:), allocatable, public atmos_phy_tb_tke
character(len=h_mid), public atmos_phy_tb_restart_out_title
title of the output file
real(rp), public const_undef
subroutine, public atmos_phy_tb_vars_restart_create
Create restart file.
character(len=h_long), public atmos_phy_tb_restart_in_basename
basename of the restart file
character(len=h_mid), public atmos_phy_tb_restart_out_dtype
REAL4 or REAL8.
subroutine, public fileio_def_var(fid, vid, varname, desc, unit, axistype, datatype, timeintv)
Define a variable to file.
real(rp), dimension(:,:,:), allocatable, public atmos_phy_tb_nu
integer, public ia
of x whole cells (local, with HALO)
subroutine, public time_gettimelabel(timelabel)
generate time label
integer, public ka
of z whole cells (local, with HALO)
subroutine, public fileio_create(fid, basename, title, datatype, date, subsec, append, nozcoord)
Create/open a netCDF file.
integer, public js
start point of inner domain: y, local
subroutine, public atmos_phy_tb_vars_setup
Setup.
module Atmosphere / Physics Turbulence
integer, public ks
start point of inner domain: z, local
real(rp), dimension(:,:,:), allocatable, public atmos_phy_tb_momy_t
subroutine, public fileio_enddef(fid)
Exit netCDF file define mode.
integer, public ie
end point of inner domain: x, local
character(len=h_long), public atmos_phy_tb_restart_out_basename
basename of the output file
logical, public io_lnml
output log or not? (for namelist, this process)
logical, public atmos_phy_tb_restart_output
output restart file?
subroutine, public atmos_phy_tb_vars_restart_def_var
Write restart.
subroutine, public atmos_phy_tb_vars_fillhalo
HALO Communication.
real(rp), dimension(:,:,:,:), allocatable, public atmos_phy_tb_rhoq_t
subroutine, public fileio_close(fid)
Close a netCDF file.
integer, public io_fid_conf
Config file ID.
integer, public io_fid_log
Log file ID.
real(rp), dimension(:,:,:), allocatable, public atmos_phy_tb_tke_t
subroutine, public atmos_phy_tb_vars_restart_close
Close restart file.
subroutine, public atmos_phy_tb_vars_restart_write_var
Write restart.
real(rp), dimension(:,:,:), allocatable, public atmos_phy_tb_momz_t
integer, public ja
of y whole cells (local, with HALO)