Go to the documentation of this file.
78 integer,
private,
parameter :: vmax = 1
79 integer,
private,
parameter :: i_ccn = 1
81 character(len=H_SHORT),
private :: var_name(vmax)
82 character(len=H_MID),
private :: var_desc(vmax)
83 character(len=H_SHORT),
private :: var_unit(vmax)
84 integer,
private :: var_id(vmax)
85 integer,
private :: restart_fid = -1
87 data var_name /
'CCN' /
88 data var_desc /
'cloud condensation nuclei' /
89 data var_unit /
'num/m3' /
93 real(
rp),
private,
allocatable :: atmos_phy_ae_re(:,:,:,:)
94 real(
rp),
private,
allocatable :: atmos_phy_ae_qe(:,:,:,:)
95 logical,
private :: diag_re
96 logical,
private :: diag_qe
99 integer,
private,
allocatable :: hist_re_id(:)
100 integer,
private,
allocatable :: hist_qe_id(:)
101 logical,
private :: hist_re
102 logical,
private :: hist_qe
121 namelist / param_atmos_phy_ae_vars / &
137 log_info(
"ATMOS_PHY_AE_vars_setup",*)
'Setup'
153 read(
io_fid_conf,nml=param_atmos_phy_ae_vars,iostat=ierr)
155 log_info(
"ATMOS_PHY_AE_vars_setup",*)
'Not found namelist. Default used.'
156 elseif( ierr > 0 )
then
157 log_error(
"ATMOS_PHY_AE_vars_setup",*)
'Not appropriate names in namelist PARAM_ATMOS_PHY_AE_VARS. Check!'
160 log_nml(param_atmos_phy_ae_vars)
163 log_info(
"ATMOS_PHY_AE_vars_setup",*)
'[ATMOS_PHY_AE] prognostic/diagnostic variables'
164 log_info_cont(
'(1x,A,A24,A,A48,A,A12,A)') &
165 ' |',
'VARNAME ',
'|', &
166 'DESCRIPTION ',
'[',
'UNIT ',
']'
168 log_info_cont(
'(1x,A,I3,A,A24,A,A48,A,A12,A)') &
169 'NO.',iv,
'|',var_name(iv),
'|',var_desc(iv),
'[',var_unit(iv),
']'
177 log_info(
"ATMOS_PHY_AE_vars_setup",*)
'Restart input? : NO'
184 log_info(
"ATMOS_PHY_AE_vars_setup",*)
'Restart output? : NO'
192 atmos_phy_ae_re(:,:,:,:) = undef
194 atmos_phy_ae_qe(:,:,:,:) = undef
200 allocate( hist_re_id(
n_ae) )
202 call file_history_reg(
'Re_'//trim(
ae_name(iv)),
'effective radius of '//trim(
ae_desc(iv)),
'cm', hist_re_id(iv), fill_halo=.true., dim_type=
'ZXY' )
203 if ( hist_re_id(iv) > 0 ) hist_re = .true.
207 allocate( hist_qe_id(
n_ae) )
209 call file_history_reg(
'Qe_'//trim(
ae_name(iv)),
'mass mixing ratio of '//trim(
ae_desc(iv)),
'kg/kg', hist_qe_id(iv), fill_halo=.true., dim_type=
'ZXY' )
210 if ( hist_qe_id(iv) > 0 ) hist_qe = .true.
249 character(len=19) :: timelabel
250 character(len=H_LONG) :: basename
254 log_info(
"ATMOS_PHY_AE_vars_restart_open",*)
'Open restart file (ATMOS_PHY_AE) '
265 log_info(
"ATMOS_PHY_AE_vars_restart_open",*)
'basename: ', trim(basename)
269 log_info(
"ATMOS_PHY_AE_vars_restart_open",*)
'restart file for ATMOS_PHY_AE is not specified.'
288 if ( restart_fid /= -1 )
then
290 log_info(
"ATMOS_PHY_AE_vars_restart_read",*)
'Read from restart file (ATMOS_PHY_AE) '
292 call file_cartesc_read( restart_fid, var_name(1),
'ZXY', &
309 call atmos_phy_ae_vars_check
312 log_info(
"ATMOS_PHY_AE_vars_restart_read",*)
'invlaid restart file ID for ATMOS_PHY_AE.'
327 character(len=19) :: timelabel
328 character(len=H_LONG) :: basename
334 log_info(
"ATMOS_PHY_AE_vars_restart_create",*)
'Create restart file (ATMOS_PHY_AE) '
343 log_info(
"ATMOS_PHY_AE_vars_restart_create",*)
'basename: ', trim(basename)
362 if ( restart_fid /= -1 )
then
377 if ( restart_fid /= -1 )
then
379 log_info(
"ATMOS_PHY_AE_vars_restart_close",*)
'Close restart file (ATMOS_PHY_AE) '
397 if ( restart_fid /= -1 )
then
409 file_cartesc_write_var
413 if ( restart_fid /= -1 )
then
417 call atmos_phy_ae_vars_check
419 call file_cartesc_write_var( restart_fid, var_id(1),
atmos_phy_ae_ccn(:,:,:), var_name(1),
'ZXY' )
435 real(
rp),
intent(in) :: rh(
ka,
ia,
ja)
442 qtrc(:,:,:,:), rh(:,:,:), &
445 if ( hist_re_id(iv) > 0 ) &
446 call file_history_put( hist_re_id(iv), work(:,:,:,iv) )
452 qtrc(:,:,:,:), rh(:,:,:), &
455 if ( hist_qe_id(iv) > 0 ) &
456 call file_history_put( hist_qe_id(iv), work(:,:,:,iv) )
481 real(
rp),
intent(in) :: rh(
ka,
ia,
ja)
485 if (
present(re) )
then
486 if ( .not. diag_re )
then
493 atmos_phy_ae_re(:,:,:,:) )
498 atmos_phy_ae_re(:,:,:,:) )
500 atmos_phy_ae_re(:,:,:,:) = 0.0_rp
506 re(:,:,:,:) = atmos_phy_ae_re(:,:,:,:)
509 if (
present(qe) )
then
510 if ( .not. diag_qe )
then
517 atmos_phy_ae_qe(:,:,:,:) )
519 atmos_phy_ae_qe(:,:,:,:) = 0.0_rp
525 qe(:,:,:,:) = atmos_phy_ae_qe(:,:,:,:)
538 subroutine atmos_phy_ae_vars_check
549 0.0_rp, 1.0e12_rp, var_name(1), &
558 end subroutine atmos_phy_ae_vars_check
module atmosphere / physics / aerosol / Kajino13
subroutine, public atmos_phy_ae_vars_restart_close
Close restart file.
integer, public ke
end point of inner domain: z, local
real(dp), public time_nowdaysec
second of current time [sec]
subroutine, public prc_abort
Abort Process.
character(len=h_long), public atmos_phy_ae_restart_out_basename
Basename of the output file.
subroutine, public atmos_phy_ae_vars_fillhalo
HALO Communication.
logical, public atmos_phy_ae_restart_in_aggregate
Switch to use aggregate file.
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_ae_vars_reset_diagnostics
logical, public atmos_phy_ae_restart_output
output restart file?
logical, public atmos_phy_ae_restart_in_postfix_timelabel
Add timelabel to the basename of input file?
subroutine, public atmos_phy_ae_vars_get_diagnostic(QTRC, RH, Re, Qe)
integer, parameter, public n_ae
character(len=h_long), public atmos_phy_ae_restart_in_basename
Basename of the input file.
subroutine, public atmos_phy_ae_vars_restart_create
Create restart file.
character(len=h_mid), dimension(n_ae), parameter, public ae_desc
module Atmosphere GRID CartesC Real(real space)
subroutine, public atmos_phy_ae_kajino13_effective_radius(KA, IA, JA, QA_AE, QTRC, RH, Re)
Calculate Effective Radius.
subroutine, public atmos_phy_ae_vars_history(QTRC, RH)
integer, parameter, public rp
integer, public ie
end point of inner domain: x, local
logical, public atmos_phy_ae_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]
real(rp), dimension(:,:,:,:), allocatable, public atmos_phy_ae_emit
subroutine, public atmos_phy_ae_offline_effective_radius(KA, IA, JA, RH, Re)
Calculate Effective Radius.
logical, public atmos_phy_ae_restart_out_aggregate
Switch to use aggregate file.
subroutine, public file_cartesc_close(fid)
Close a netCDF file.
subroutine, public atmos_phy_ae_vars_restart_read
Read restart.
character(len=h_mid), public atmos_phy_ae_restart_out_title
title of the output file
integer, public is
start point of inner domain: x, local
module atmosphere / physics / aerosol / offline
character(len=h_short), public atmos_phy_ae_type
module atmosphere / aerosol
real(rp), dimension(:,:,:), allocatable, public atmos_phy_ae_ccn
subroutine, public atmos_phy_ae_vars_restart_write
Write restart.
subroutine, public atmos_phy_ae_vars_restart_def_var
Write restart.
integer, public ks
start point of inner domain: z, local
subroutine, public atmos_phy_ae_offline_qtrc2qaero(KA, IA, JA, time_now, Qe)
Calculate Effective Radius.
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?
subroutine, public file_cartesc_flush(fid)
Flush all pending requests to a netCDF file (PnetCDF only)
subroutine, public atmos_phy_ae_vars_setup
Setup.
subroutine, public time_gettimelabel(timelabel)
generate time label
real(rp), dimension(:,:,:,:), allocatable, public atmos_phy_ae_rhoq_t
integer, public js
start point of inner domain: y, local
subroutine, public atmos_phy_ae_vars_restart_enddef
Exit netCDF define mode.
character(len=h_short), dimension(n_ae), parameter, public ae_name
logical function, public file_get_aggregate(fid)
module ATMOSPHERE / Physics Aerosol Microphysics
character(len=h_short), public atmos_phy_ae_restart_out_dtype
REAL4 or REAL8.
subroutine, public file_history_reg(name, desc, unit, itemid, standard_name, ndims, dim_type, cell_measures, fill_halo)
Register/Append variable to history file.
subroutine, public atmos_phy_ae_vars_restart_open
Open restart file for read.
real(rp), dimension(:,:,:), allocatable, public atmos_phy_ae_ccn_t
real(rp), public atmos_grid_cartesc_real_totvol
total volume (zxy, local) [m3]
real(rp), public const_undef
integer, public io_fid_conf
Config file ID.
integer, public je
end point of inner domain: y, local