Go to the documentation of this file.
81 integer,
private,
parameter :: vmax = 1
82 integer,
private,
parameter :: i_zi = 1
84 character(len=H_SHORT),
private :: var_name(vmax)
85 character(len=H_MID),
private :: var_desc(vmax)
86 character(len=H_SHORT),
private :: var_unit(vmax)
87 integer,
private :: var_id(vmax)
88 integer,
private :: restart_fid = -1
90 data var_name /
'PBL_Zi' /
92 data var_desc /
'depth of the boundary layer' /
107 namelist / param_atmos_phy_bl_vars / &
124 log_info(
"ATMOS_PHY_BL_vars_setup",*)
'Setup'
152 read(
io_fid_conf,nml=param_atmos_phy_bl_vars,iostat=ierr)
154 log_info(
"ATMOS_PHY_BL_vars_setup",*)
'Not found namelist. Default used.'
155 elseif( ierr > 0 )
then
156 log_error(
"ATMOS_PHY_BL_vars_setup",*)
'Not appropriate names in namelist PARAM_ATMOS_PHY_BL_VARS. Check!'
159 log_nml(param_atmos_phy_bl_vars)
162 log_info(
"ATMOS_PHY_BL_vars_setup",*)
'[ATMOS_PHY_BL] prognostic/diagnostic variables'
163 log_info_cont(
'(1x,A,A24,A,A48,A,A12,A)') &
164 ' |',
'VARNAME ',
'|', &
165 'DESCRIPTION ',
'[',
'UNIT ',
']'
167 log_info_cont(
'(1x,A,I3,A,A24,A,A48,A,A12,A)') &
168 'NO.',iv,
'|',var_name(iv),
'|',var_desc(iv),
'[',var_unit(iv),
']'
176 log_info(
"ATMOS_PHY_BL_vars_setup",*)
'Restart input? : NO'
183 log_info(
"ATMOS_PHY_BL_vars_setup",*)
'Restart output? : NO'
197 log_info(
"ATMOS_PHY_BL_vars_finalize",*)
'Finalize'
242 character(len=19) :: timelabel
243 character(len=H_LONG) :: basename
247 log_info(
"ATMOS_PHY_BL_vars_restart_open",*)
'Open restart file (ATMOS_PHY_BL) '
258 log_info(
"ATMOS_PHY_BL_vars_restart_open",*)
'basename: ', trim(basename)
262 log_info(
"ATMOS_PHY_BL_vars_restart_open",*)
'restart file for ATMOS_PHY_BL is not specified.'
281 if ( restart_fid /= -1 )
then
283 log_info(
"ATMOS_PHY_BL_vars_restart_read",*)
'Read from restart file (ATMOS_PHY_BL) '
285 call file_cartesc_read( restart_fid, var_name(1),
'XY', &
298 log_info(
"ATMOS_PHY_BL_vars_restart_read",*)
'invalid restart file ID for ATMOS_PHY_BL.'
313 character(len=19) :: timelabel
314 character(len=H_LONG) :: basename
320 log_info(
"ATMOS_PHY_BL_vars_restart_create",*)
'Create restart file (ATMOS_PHY_AE) '
329 log_info(
"ATMOS_PHY_BL_vars_restart_create",*)
'basename: ', trim(basename)
347 if ( restart_fid /= -1 )
then
362 if ( restart_fid /= -1 )
then
364 log_info(
"ATMOS_PHY_BL_vars_restart_close",*)
'Close restart file (ATMOS_PHY_BL) '
383 if ( restart_fid /= -1 )
then
387 var_name(iv), var_desc(iv), var_unit(iv), &
401 file_cartesc_write_var
406 if ( restart_fid /= -1 )
then
412 call file_cartesc_write_var( restart_fid, var_id(1),
atmos_phy_bl_zi(:,:), &
430 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), dimension(:,:), allocatable, public atmos_phy_bl_zi
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_sflx_buoy
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_finalize
Finalize.
subroutine, public atmos_phy_bl_vars_restart_create
Create restart file.
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_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 file_cartesc_open(basename, fid, single, aggregate)
open a netCDF file for read
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_mix_tracers
logical, public atmos_phy_bl_restart_out_postfix_timelabel
Add timelabel to the basename of output file?