Go to the documentation of this file.
77 integer,
private,
parameter :: vmax = 1
78 integer,
private,
parameter :: i_zi = 1
80 character(len=H_SHORT),
private :: var_name(vmax)
81 character(len=H_MID),
private :: var_desc(vmax)
82 character(len=H_SHORT),
private :: var_unit(vmax)
83 integer,
private :: var_id(vmax)
84 integer,
private :: restart_fid = -1
86 data var_name /
'PBL_Zi' /
88 data var_desc /
'depth of the boundary layer' /
103 namelist / param_atmos_phy_bl_vars / &
119 log_info(
"ATMOS_PHY_BL_vars_setup",*)
'Setup'
140 read(
io_fid_conf,nml=param_atmos_phy_bl_vars,iostat=ierr)
142 log_info(
"ATMOS_PHY_BL_vars_setup",*)
'Not found namelist. Default used.'
143 elseif( ierr > 0 )
then
144 log_error(
"ATMOS_PHY_BL_vars_setup",*)
'Not appropriate names in namelist PARAM_ATMOS_PHY_BL_VARS. Check!'
147 log_nml(param_atmos_phy_bl_vars)
150 log_info(
"ATMOS_PHY_BL_vars_setup",*)
'[ATMOS_PHY_BL] prognostic/diagnostic variables'
151 log_info_cont(
'(1x,A,A24,A,A48,A,A12,A)') &
152 ' |',
'VARNAME ',
'|', &
153 'DESCRIPTION ',
'[',
'UNIT ',
']'
155 log_info_cont(
'(1x,A,I3,A,A24,A,A48,A,A12,A)') &
156 'NO.',iv,
'|',var_name(iv),
'|',var_desc(iv),
'[',var_unit(iv),
']'
164 log_info(
"ATMOS_PHY_BL_vars_setup",*)
'Restart input? : NO'
171 log_info(
"ATMOS_PHY_BL_vars_setup",*)
'Restart output? : NO'
202 character(len=19) :: timelabel
203 character(len=H_LONG) :: basename
207 log_info(
"ATMOS_PHY_BL_vars_restart_open",*)
'Open restart file (ATMOS_PHY_BL) '
218 log_info(
"ATMOS_PHY_BL_vars_restart_open",*)
'basename: ', trim(basename)
222 log_info(
"ATMOS_PHY_BL_vars_restart_open",*)
'restart file for ATMOS_PHY_BL is not specified.'
241 if ( restart_fid /= -1 )
then
243 log_info(
"ATMOS_PHY_BL_vars_restart_read",*)
'Read from restart file (ATMOS_PHY_BL) '
245 call file_cartesc_read( restart_fid, var_name(1),
'XY', &
257 log_info(
"ATMOS_PHY_BL_vars_restart_read",*)
'invalid restart file ID for ATMOS_PHY_BL.'
272 character(len=19) :: timelabel
273 character(len=H_LONG) :: basename
279 log_info(
"ATMOS_PHY_BL_vars_restart_create",*)
'Create restart file (ATMOS_PHY_AE) '
288 log_info(
"ATMOS_PHY_BL_vars_restart_create",*)
'basename: ', trim(basename)
321 if ( restart_fid /= -1 )
then
323 log_info(
"ATMOS_PHY_BL_vars_restart_close",*)
'Close restart file (ATMOS_PHY_BL) '
341 if ( restart_fid /= -1 )
then
344 var_name(1), var_desc(1), var_unit(1), &
357 file_cartesc_write_var
362 if ( restart_fid /= -1 )
then
368 call file_cartesc_write_var( restart_fid, var_id(1),
atmos_phy_bl_zi(:,:), &
386 0.0_rp, 1.0e5_rp, var_name(1), &
subroutine, public prc_abort
Abort Process.
subroutine, public file_cartesc_enddef(fid)
Exit netCDF file define mode.
subroutine, public file_cartesc_def_var(fid, varname, desc, unit, dim_type, datatype, vid, standard_name, timeintv, nsteps, cell_measures)
Define a variable to file.
subroutine, public atmos_phy_bl_vars_restart_def_var
Write restart.
real(rp), public atmos_grid_cartesc_real_totarea
total area (xy, local) [m2]
logical, public atmos_phy_bl_restart_output
output restart file?
real(rp), dimension(:,:,:), allocatable, public atmos_phy_bl_rhou_t
character(len=h_mid), public atmos_phy_bl_restart_out_title
title of the output file
character(len=h_long), public atmos_phy_bl_restart_out_basename
Basename of the output file.
real(rp), dimension(:,:,:,:), allocatable, target, public atmos_phy_bl_rhoq_t
module Atmosphere GRID CartesC Real(real space)
real(rp), dimension(:,:,:), allocatable, public atmos_phy_bl_rhov_t
integer, parameter, public rp
integer, public ie
end point of inner domain: x, local
module atmosphere / physics / PBL
character(len=h_long), public atmos_phy_bl_restart_in_basename
Basename of the input file.
module atmosphere / grid / cartesC index
logical, public atmos_phy_bl_restart_in_aggregate
Switch to use aggregate file.
subroutine, public file_cartesc_close(fid)
Close a netCDF file.
subroutine, public atmos_phy_bl_vars_restart_create
Create restart file.
real(rp), dimension(:,:), allocatable, public atmos_phy_bl_zi
real(rp), dimension(:,:), allocatable, public atmos_grid_cartesc_real_area
horizontal area ( xy, normal z) [m2]
integer, public is
start point of inner domain: x, local
logical, public atmos_phy_bl_restart_out_aggregate
Switch to use aggregate file.
subroutine, public atmos_phy_bl_vars_fillhalo
HALO Communication.
logical, public atmos_phy_bl_restart_in_postfix_timelabel
Add timelabel to the basename of input file?
subroutine, public atmos_phy_bl_vars_restart_open
Open restart file for read.
subroutine, public file_cartesc_create(basename, title, datatype, fid, date, subsec, haszcoord, append, aggregate, single)
Create/open a netCDF file.
subroutine, public file_cartesc_open(basename, fid, aggregate)
open a netCDF file for read
subroutine, public file_cartesc_flush(fid)
Flush all pending requests to a netCDF file (PnetCDF only)
subroutine, public time_gettimelabel(timelabel)
generate time label
subroutine, public atmos_phy_bl_vars_restart_read
Read restart.
integer, public js
start point of inner domain: y, local
logical function, public file_get_aggregate(fid)
subroutine, public atmos_phy_bl_vars_restart_write
Write restart.
subroutine, public atmos_phy_bl_vars_restart_close
Close restart file.
character(len=h_short), public atmos_phy_bl_restart_out_dtype
REAL4 or REAL8.
subroutine, public atmos_phy_bl_vars_setup
Setup.
real(rp), dimension(:,:,:), allocatable, public atmos_phy_bl_cldfrac
real(rp), dimension(:,:,:), allocatable, public atmos_phy_bl_rhot_t
subroutine atmos_phy_bl_vars_check
real(rp), dimension(:,:,:), allocatable, public atmos_phy_bl_ql
real(rp), public const_undef
integer, public io_fid_conf
Config file ID.
integer, public je
end point of inner domain: y, local
subroutine, public atmos_phy_bl_vars_restart_enddef
Exit netCDF define mode.
logical, public atmos_phy_bl_restart_out_postfix_timelabel
Add timelabel to the basename of output file?