Go to the documentation of this file.
72 integer,
private,
parameter :: vmax = 1
73 integer,
private,
parameter :: i_o3 = 1
75 character(len=H_SHORT),
private :: var_name(vmax)
76 character(len=H_MID),
private :: var_desc(vmax)
77 character(len=H_SHORT),
private :: var_unit(vmax)
78 integer,
private :: var_id(vmax)
79 integer,
private :: restart_fid = -1
81 data var_name /
'O3' /
82 data var_desc /
'Ozone' /
83 data var_unit /
'PPM' /
96 namelist / param_atmos_phy_ch_vars / &
112 log_info(
"ATMOS_PHY_CH_vars_setup",*)
'Setup'
122 read(
io_fid_conf,nml=param_atmos_phy_ch_vars,iostat=ierr)
124 log_info(
"ATMOS_PHY_CH_vars_setup",*)
'Not found namelist. Default used.'
125 elseif( ierr > 0 )
then
126 log_error(
"ATMOS_PHY_CH_vars_setup",*)
'Not appropriate names in namelist PARAM_ATMOS_PHY_CH_VARS. Check!'
129 log_nml(param_atmos_phy_ch_vars)
132 log_info(
"ATMOS_PHY_CH_vars_setup",*)
'[ATMOS_PHY_CH] prognostic/diagnostic variables'
133 log_info_cont(
'(1x,A,A24,A,A48,A,A12,A)') &
134 ' |',
'VARNAME ',
'|', &
135 'DESCRIPTION ',
'[',
'UNIT ',
']'
137 log_info_cont(
'(1x,A,I3,A,A24,A,A48,A,A12,A)') &
138 'NO.',iv,
'|',var_name(iv),
'|',var_desc(iv),
'[',var_unit(iv),
']'
146 log_info(
"ATMOS_PHY_CH_vars_setup",*)
'Restart input? : NO'
153 log_info(
"ATMOS_PHY_CH_vars_setup",*)
'Restart output? : NO'
193 character(len=19) :: timelabel
194 character(len=H_LONG) :: basename
198 log_info(
"ATMOS_PHY_CH_vars_restart_open",*)
'Open restart file (ATMOS_PHY_CH) '
209 log_info(
"ATMOS_PHY_CH_vars_restart_open",*)
'basename: ', trim(basename)
213 log_info(
"ATMOS_PHY_CH_vars_restart_open",*)
'restart file for ATMOS_PHY_CH is not specified.'
232 if ( restart_fid /= -1 )
then
234 log_info(
"ATMOS_PHY_CH_vars_restart_read",*)
'Read from restart file (ATMOS_PHY_CH) '
256 log_info(
"ATMOS_PHY_CH_vars_restart_read",*)
'invalid restart file for ATMOS_PHY_CH.'
271 character(len=19) :: timelabel
272 character(len=H_LONG) :: basename
278 log_info(
"ATMOS_PHY_CH_vars_restart_create",*)
'Create restart file (ATMOS_PHY_CH) '
287 log_info(
"ATMOS_PHY_CH_vars_restart_create",*)
'basename: ', trim(basename)
306 if ( restart_fid /= -1 )
then
321 if ( restart_fid /= -1 )
then
323 log_info(
"ATMOS_PHY_CH_vars_restart_close",*)
'Close restart file (ATMOS_PHY_CH) '
341 if ( restart_fid /= -1 )
then
353 file_cartesc_write_var
358 if ( restart_fid /= -1 )
then
subroutine, public atmos_phy_ch_vars_restart_create
Create restart file.
character(len=h_long), public atmos_phy_ch_restart_in_basename
Basename of the input file.
subroutine, public atmos_phy_ch_vars_restart_close
Close restart file.
subroutine, public atmos_phy_ch_vars_restart_open
Open restart file for read.
subroutine, public prc_abort
Abort Process.
subroutine, public atmos_phy_ch_vars_restart_enddef
Exit netCDF define mode.
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_ch_vars_restart_def_var
Write restart.
logical, public atmos_phy_ch_restart_in_postfix_timelabel
Add timelabel to the basename of input file?
subroutine, public atmos_phy_ch_vars_setup
Setup.
module Atmosphere GRID CartesC Real(real space)
subroutine, public atmos_phy_ch_vars_fillhalo
HALO Communication.
real(rp), dimension(:,:,:), allocatable, public atmos_phy_ch_o3
integer, parameter, public rp
logical, public atmos_phy_ch_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]
logical, public atmos_phy_ch_restart_output
output restart file?
subroutine, public file_cartesc_close(fid)
Close a netCDF file.
real(rp), dimension(:,:,:,:), allocatable, public atmos_phy_ch_rhoq_t
character(len=h_short), public atmos_phy_ch_restart_out_dtype
REAL4 or REAL8.
module Atmosphere / Physics Chemistry
character(len=h_long), public atmos_phy_ch_restart_out_basename
Basename of the output file.
subroutine, public atmos_phy_ch_vars_restart_write
Write restart.
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 time_gettimelabel(timelabel)
generate time label
logical function, public file_get_aggregate(fid)
subroutine atmos_phy_ch_vars_check
real(rp), public atmos_grid_cartesc_real_totvol
total volume (zxy, local) [m3]
logical, public atmos_phy_ch_restart_in_aggregate
Switch to use aggregate file.
real(rp), public const_undef
character(len=h_mid), public atmos_phy_ch_restart_out_title
title of the output file
logical, public atmos_phy_ch_restart_out_aggregate
Switch to use aggregate file.
integer, public io_fid_conf
Config file ID.
subroutine, public atmos_phy_ch_vars_restart_read
Read restart.