71 integer,
private,
parameter :: vmax = 1
72 integer,
private,
parameter :: i_o3 = 1
74 character(len=H_SHORT),
private :: var_name(vmax)
75 character(len=H_MID),
private :: var_desc(vmax)
76 character(len=H_SHORT),
private :: var_unit(vmax)
77 integer,
private :: var_id(vmax)
78 integer,
private :: restart_fid = -1
80 data var_name /
'O3' /
81 data var_desc /
'Ozone' /
82 data var_unit /
'PPM' /
95 namelist / param_atmos_phy_ch_vars / &
111 log_info(
"ATMOS_PHY_CH_vars_setup",*)
'Setup' 121 read(
io_fid_conf,nml=param_atmos_phy_ch_vars,iostat=ierr)
123 log_info(
"ATMOS_PHY_CH_vars_setup",*)
'Not found namelist. Default used.' 124 elseif( ierr > 0 )
then 125 log_error(
"ATMOS_PHY_CH_vars_setup",*)
'Not appropriate names in namelist PARAM_ATMOS_PHY_CH_VARS. Check!' 128 log_nml(param_atmos_phy_ch_vars)
131 log_info(
"ATMOS_PHY_CH_vars_setup",*)
'[ATMOS_PHY_CH] prognostic/diagnostic variables' 132 log_info_cont(
'(1x,A,A24,A,A48,A,A12,A)') &
133 ' |',
'VARNAME ',
'|', &
134 'DESCRIPTION ',
'[',
'UNIT ',
']' 136 log_info_cont(
'(1x,A,I3,A,A24,A,A48,A,A12,A)') &
137 'NO.',iv,
'|',var_name(iv),
'|',var_desc(iv),
'[',var_unit(iv),
']' 145 log_info(
"ATMOS_PHY_CH_vars_setup",*)
'Restart input? : NO' 152 log_info(
"ATMOS_PHY_CH_vars_setup",*)
'Restart output? : NO' 192 character(len=19) :: timelabel
193 character(len=H_LONG) :: basename
197 log_info(
"ATMOS_PHY_CH_vars_restart_open",*)
'Open restart file (ATMOS_PHY_CH) ' 208 log_info(
"ATMOS_PHY_CH_vars_restart_open",*)
'basename: ', trim(basename)
212 log_info(
"ATMOS_PHY_CH_vars_restart_open",*)
'restart file for ATMOS_PHY_CH is not specified.' 237 if ( restart_fid /= -1 )
then 239 log_info(
"ATMOS_PHY_CH_vars_restart_read",*)
'Read from restart file (ATMOS_PHY_CH) ' 241 call file_cartesc_read( restart_fid, var_name(1),
'ZXY', &
265 log_info(
"ATMOS_PHY_CH_vars_restart_read",*)
'invalid restart file for ATMOS_PHY_CH.' 280 character(len=19) :: timelabel
281 character(len=H_LONG) :: basename
287 log_info(
"ATMOS_PHY_CH_vars_restart_create",*)
'Create restart file (ATMOS_PHY_CH) ' 296 log_info(
"ATMOS_PHY_CH_vars_restart_create",*)
'basename: ', trim(basename)
315 if ( restart_fid /= -1 )
then 330 if ( restart_fid /= -1 )
then 332 log_info(
"ATMOS_PHY_CH_vars_restart_close",*)
'Close restart file (ATMOS_PHY_CH) ' 350 if ( restart_fid /= -1 )
then 365 file_cartesc_write_var
373 if ( restart_fid /= -1 )
then 384 call file_cartesc_write_var( restart_fid, var_id(1),
atmos_phy_ch_o3(:,:,:), var_name(1),
'ZXY' )
character(len=h_mid), public atmos_phy_ch_restart_out_title
title of the output file
subroutine, public atmos_phy_ch_vars_setup
Setup.
subroutine, public atmos_phy_ch_vars_restart_close
Close restart file.
integer, public ia
of whole cells: x, local, with HALO
subroutine, public atmos_phy_ch_vars_restart_enddef
Exit netCDF define mode.
subroutine, public atmos_phy_ch_vars_restart_def_var
Write restart.
real(rp), dimension(:,:,:), allocatable, public atmos_grid_cartesc_real_vol
control volume (zxy) [m3]
real(rp), public atmos_grid_cartesc_real_totvol
total volume (zxy, local) [m3]
integer, public ja
of whole cells: y, local, with HALO
integer, public io_fid_conf
Config file ID.
real(rp), dimension(:,:,:), allocatable, public atmos_phy_ch_o3
logical, public statistics_checktotal
calc&report variable totals to logfile?
logical, public atmos_phy_ch_restart_in_postfix_timelabel
Add timelabel to the basename of input file?
real(rp), public const_undef
integer, public is
start point of inner domain: x, local
integer, public ie
end point of inner domain: x, local
subroutine, public file_cartesc_create(basename, title, datatype, fid, date, subsec, haszcoord, append, aggregate, single)
Create/open a netCDF file.
subroutine, public time_gettimelabel(timelabel)
generate time label
subroutine, public atmos_phy_ch_vars_fillhalo
HALO Communication.
logical, public atmos_phy_ch_restart_out_postfix_timelabel
Add timelabel to the basename of output file?
module atmosphere / grid / cartesC index
integer, public ke
end point of inner domain: z, local
logical, public atmos_phy_ch_restart_output
output restart file?
integer, public je
end point of inner domain: y, local
character(len=h_short), public atmos_phy_ch_restart_out_dtype
REAL4 or REAL8.
character(len=h_long), public atmos_phy_ch_restart_out_basename
Basename of the output file.
subroutine, public file_cartesc_enddef(fid)
Exit netCDF file define mode.
integer, public ks
start point of inner domain: z, local
subroutine, public prc_abort
Abort Process.
integer, public js
start point of inner domain: y, local
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.
real(rp), dimension(:,:,:,:), allocatable, public atmos_phy_ch_rhoq_t
logical function, public file_get_aggregate(fid)
module Atmosphere / Physics Chemistry
module Atmosphere GRID CartesC Real(real space)
logical, public atmos_phy_ch_restart_in_aggregate
Switch to use aggregate file.
integer, public ka
of whole cells: z, local, with HALO
subroutine, public atmos_phy_ch_vars_restart_write
Write restart.
subroutine, public atmos_phy_ch_vars_restart_create
Create restart file.
subroutine, public file_cartesc_flush(fid)
Flush all pending requests to a netCDF file (PnetCDF only)
subroutine, public atmos_phy_ch_vars_restart_open
Open restart file for read.
subroutine, public atmos_phy_ch_vars_restart_read
Read restart.
subroutine, public file_cartesc_open(basename, fid, aggregate)
open a netCDF file for read
subroutine, public file_cartesc_close(fid)
Close a netCDF file.
logical, public atmos_phy_ch_restart_out_aggregate
Switch to use aggregate file.
character(len=h_long), public atmos_phy_ch_restart_in_basename
Basename of the input file.