Go to the documentation of this file.
86 integer,
private,
parameter :: vmax = 2
87 integer,
private,
parameter :: i_w0mean = 1
88 integer,
private,
parameter :: i_kf_nca = 2
91 character(len=H_SHORT),
private :: var_name(vmax)
92 character(len=H_MID),
private :: var_desc(vmax)
93 character(len=H_SHORT),
private :: var_unit(vmax)
94 character(len=H_SHORT),
private :: var_dim (vmax)
95 integer,
private :: var_id (vmax)
96 integer,
private :: restart_fid = -1
98 data var_name /
'w0mean', &
101 data var_desc /
'running mean vertical velocity', &
102 'advection/cumulus convection timescale for KF' /
104 data var_unit /
'm/s', &
107 data var_dim /
'ZXY', &
112 integer,
private :: vmax_t
113 integer,
private :: i_cp_dens_t = 1
114 integer,
private :: i_cp_rhot_t = 2
115 integer,
private :: i_cp_qv_t = 3
117 character(len=H_SHORT),
private,
allocatable :: var_t_name(:)
118 character(len=H_MID),
private,
allocatable :: var_t_desc(:)
119 character(len=H_SHORT),
private,
allocatable :: var_t_unit(:)
120 integer,
private,
allocatable :: var_t_id (:)
136 namelist / param_atmos_phy_cp_vars / &
153 log_info(
"ATMOS_PHY_CP_vars_setup",*)
'Setup'
173 allocate( var_t_name(vmax_t) )
174 allocate( var_t_desc(vmax_t) )
175 allocate( var_t_unit(vmax_t) )
176 allocate( var_t_id(vmax_t) )
178 var_t_name(i_cp_dens_t) =
'DENS_t_CP'
179 var_t_desc(i_cp_dens_t) =
'tendency DENS in CP'
180 var_t_unit(i_cp_dens_t) =
'kg/m3/s'
181 var_t_name(i_cp_rhot_t) =
'RHOT_t_CP'
182 var_t_desc(i_cp_rhot_t) =
'tendency RHOT in CP'
183 var_t_unit(i_cp_rhot_t) =
'K*kg/m3/s'
185 var_t_name(i_cp_qv_t) =
'QV_t_CP'
186 var_t_desc(i_cp_qv_t) =
'tendency rho*QV in CP'
187 var_t_unit(i_cp_qv_t) =
'kg/m3/s'
189 var_t_name(3+iq) = trim(
hyd_name(iq))//
'_t_CP'
190 var_t_desc(3+iq) =
'tendency rho*'//trim(
hyd_name(iq))//
' in CP'
191 var_t_unit(3+iq) =
'kg/m3/s'
215 read(
io_fid_conf,nml=param_atmos_phy_cp_vars,iostat=ierr)
217 log_info(
"ATMOS_PHY_CP_vars_setup",*)
'Not found namelist. Default used.'
218 elseif( ierr > 0 )
then
219 log_error(
"ATMOS_PHY_CP_vars_setup",*)
'Not appropriate names in namelist PARAM_ATMOS_PHY_CP_VARS. Check!'
222 log_nml(param_atmos_phy_cp_vars)
225 log_info(
"ATMOS_PHY_CP_vars_setup",*)
'[ATMOS_PHY_CP] prognostic/diagnostic variables'
226 log_info_cont(
'(1x,A,A24,A,A48,A,A12,A)') &
227 ' |',
'VARNAME ',
'|', &
228 'DESCRIPTION ',
'[',
'UNIT ',
']'
230 log_info_cont(
'(1x,A,I3,A,A24,A,A48,A,A12,A)') &
231 'NO.',iv,
'|',var_name(iv),
'|',var_desc(iv),
'[',var_unit(iv),
']'
236 log_info_cont(
'(1x,A,I3,A,A24,A,A48,A,A12,A)') &
237 'NO.',iv+vmax,
'|',var_t_name(iv),
'|',var_t_desc(iv),
'[',var_t_unit(iv),
']'
245 log_info(
"ATMOS_PHY_CP_vars_setup",*)
'Restart input? : NO'
252 log_info(
"ATMOS_PHY_CP_vars_setup",*)
'Restart output? : NO'
329 character(len=19) :: timelabel
330 character(len=H_LONG) :: basename
334 log_info(
"ATMOS_PHY_CP_vars_restart_open",*)
'Open restart file (ATMOS_PHY_CP) '
345 log_info(
"ATMOS_PHY_CP_vars_restart_open",*)
'basename: ', trim(basename)
349 log_info(
"ATMOS_PHY_CP_vars_restart_open",*)
'restart file for ATMOS_PHY_CP is not specified.'
370 if ( restart_fid /= -1 )
then
372 log_info(
"ATMOS_PHY_CP_vars_restart_read",*)
'Read from restart file (ATMOS_PHY_CP) '
374 call file_cartesc_read( restart_fid, var_name(1),
'ZXY', &
376 call file_cartesc_read( restart_fid, var_name(2),
'XY', &
379 call file_cartesc_read( restart_fid, var_t_name(1),
'ZXY', &
381 call file_cartesc_read( restart_fid, var_t_name(2),
'ZXY', &
383 call file_cartesc_read( restart_fid, var_t_name(3),
'ZXY', &
386 call file_cartesc_read( restart_fid, var_t_name(3+iq),
'ZXY', &
423 log_info(
"ATMOS_PHY_CP_vars_restart_read",*)
'invalid restart file ID for ATMOS_PHY_CP.'
438 character(len=19) :: timelabel
439 character(len=H_LONG) :: basename
445 log_info(
"ATMOS_PHY_CP_vars_restart_create",*)
'Create restart file (ATMOS_PHY_AE) '
454 log_info(
"ATMOS_PHY_CP_vars_restart_create",*)
'basename: ', trim(basename)
473 if ( restart_fid /= -1 )
then
488 if ( restart_fid /= -1 )
then
490 log_info(
"ATMOS_PHY_CP_vars_restart_close",*)
'Close restart file (ATMOS_PHY_CP) '
512 if ( restart_fid /= -1 )
then
516 var_name(i), var_desc(i), var_unit(i), &
523 var_t_name(i), var_t_desc(i), var_t_unit(i), &
530 var_t_name(3+iq), var_t_desc(3+iq), var_t_unit(3+iq), &
544 file_cartesc_write => file_cartesc_write_var
552 if ( restart_fid /= -1 )
then
565 var_t_name(1),
'ZXY' )
567 var_t_name(2),
'ZXY' )
569 var_t_name(3),
'ZXY' )
572 var_t_name(3+iq),
'ZXY' )
597 -100.0_rp, 100.0_rp, var_name(1), &
601 -100.0_rp, 1.0e5_rp, var_name(2), &
605 -1.0e0_rp, 1.0e0_rp, var_t_name(1), &
609 -1.0e3_rp, 1.0e3_rp, var_t_name(2), &
613 -1.0e0_rp, 1.0e0_rp, var_t_name(3), &
618 -1.0e0_rp, 1.0e0_rp, var_t_name(3+iq), &
subroutine, public atmos_phy_cp_vars_restart_write
Write restart.
real(rp), dimension(:,:), allocatable, public atmos_phy_cp_mflx_cloudbase
real(rp), dimension(:,:), allocatable, public atmos_phy_cp_cloudbase
integer, public ke
end point of inner domain: z, local
logical, public atmos_phy_cp_restart_in_postfix_timelabel
Add timelabel to the basename of input file?
subroutine, public prc_abort
Abort Process.
real(rp), dimension(:,:,:), allocatable, public atmos_phy_cp_cldfrac_sh
character(len=h_short), dimension(n_hyd), parameter, public hyd_name
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.
character(len=h_short), public atmos_phy_cp_restart_out_dtype
REAL4 or REAL8.
real(rp), public atmos_grid_cartesc_real_totarea
total area (xy, local) [m2]
subroutine, public atmos_phy_cp_vars_restart_open
Open restart file for read.
real(rp), dimension(:,:,:), allocatable, public atmos_phy_cp_cldfrac_dp
subroutine, public atmos_phy_cp_vars_restart_create
Create restart file.
real(rp), dimension(:,:), allocatable, public atmos_phy_cp_sflx_engi
real(rp), dimension(:,:,:), allocatable, public atmos_phy_cp_w0mean
module atmosphere / hydrometeor
logical, public atmos_phy_cp_restart_output
output restart file?
character(len=h_mid), public atmos_phy_cp_restart_out_title
title of the output file
character(len=h_long), public atmos_phy_cp_restart_in_basename
Basename of the input file.
subroutine, public atmos_phy_cp_vars_restart_enddef
Exit netCDF define mode.
real(rp), dimension(:,:,:), allocatable, public atmos_phy_cp_rhoqv_t
module Atmosphere GRID CartesC Real(real space)
character(len=h_long), public atmos_phy_cp_restart_out_basename
Basename of the output file.
real(rp), dimension(:,:), allocatable, public atmos_phy_cp_sflx_snow
integer, parameter, public rp
integer, public ie
end point of inner domain: x, local
logical, public atmos_phy_cp_restart_out_postfix_timelabel
Add timelabel to the basename of output file?
module atmosphere / grid / cartesC index
real(rp), dimension(:,:,:), allocatable, public atmos_grid_cartesc_real_vol
control volume (zxy) [m3]
subroutine, public atmos_phy_cp_vars_restart_close
Close restart file.
subroutine, public file_cartesc_close(fid)
Close a netCDF file.
logical, public atmos_phy_cp_restart_in_aggregate
Switch to use aggregate file.
logical, public atmos_phy_cp_restart_out_aggregate
Switch to use aggregate file.
real(rp), dimension(:,:,:), allocatable, public atmos_phy_cp_rhot_t
subroutine, public atmos_phy_cp_vars_setup
Setup.
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
real(rp), dimension(:,:), allocatable, public atmos_phy_cp_cloudtop
subroutine atmos_phy_cp_vars_check
subroutine, public atmos_phy_cp_vars_fillhalo
HALO Communication.
integer, public ks
start point of inner domain: z, local
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
logical, public statistics_checktotal
calc&report variable totals to logfile?
real(rp), dimension(:,:,:,:), allocatable, public atmos_phy_cp_rhohyd_t
subroutine, public file_cartesc_flush(fid)
Flush all pending requests to a netCDF file (PnetCDF only)
subroutine, public time_gettimelabel(timelabel)
generate time label
integer, public js
start point of inner domain: y, local
real(rp), dimension(:,:), allocatable, public atmos_phy_cp_sflx_rain
logical function, public file_get_aggregate(fid)
real(rp), dimension(:,:,:), allocatable, public atmos_phy_cp_momz_t
real(rp), public atmos_grid_cartesc_real_totvol
total volume (zxy, local) [m3]
real(rp), public const_undef
module Atmosphere / Physics Cumulus
integer, public io_fid_conf
Config file ID.
real(rp), dimension(:,:), allocatable, public atmos_phy_cp_kf_nca
integer, public je
end point of inner domain: y, local
integer, parameter, public n_hyd
real(rp), dimension(:,:,:), allocatable, public atmos_phy_cp_dens_t
subroutine, public atmos_phy_cp_vars_restart_def_var
Write restart.
subroutine, public atmos_phy_cp_vars_restart_read
Read restart.