13 #include "inc_openmp.h" 67 integer,
private,
parameter :: vmax = 1
68 integer,
private,
parameter :: i_o3 = 1
70 character(len=H_SHORT),
private :: var_name(vmax)
71 character(len=H_MID),
private :: var_desc(vmax)
72 character(len=H_SHORT),
private :: var_unit(vmax)
73 integer,
private :: var_id(vmax)
74 integer,
private :: restart_fid = -1
76 data var_name /
'O3' /
77 data var_desc /
'Ozone' /
78 data var_unit /
'PPM' /
91 namelist / param_atmos_phy_ch_vars / &
105 if(
io_l )
write(
io_fid_log,*)
'++++++ Module[VARS] / Categ[ATMOS PHY_CH] / Origin[SCALE-RM]' 115 read(
io_fid_conf,nml=param_atmos_phy_ch_vars,iostat=ierr)
117 if(
io_l )
write(
io_fid_log,*)
'*** Not found namelist. Default used.' 118 elseif( ierr > 0 )
then 119 write(*,*)
'xxx Not appropriate names in namelist PARAM_ATMOS_PHY_CH_VARS. Check!' 125 if(
io_l )
write(
io_fid_log,*)
'*** [ATMOS_PHY_CH] prognostic/diagnostic variables' 127 '*** |',
'VARNAME ',
'|', &
128 'DESCRIPTION ',
'[',
'UNIT ',
']' 130 if(
io_l )
write(
io_fid_log,
'(1x,A,I3,A,A24,A,A48,A,A12,A)') &
131 '*** NO.',iv,
'|',var_name(iv),
'|',var_desc(iv),
'[',var_unit(iv),
']' 186 character(len=19) :: timelabel
187 character(len=H_LONG) :: basename
191 if(
io_l )
write(
io_fid_log,*)
'*** Open restart file (ATMOS_PHY_CH) ***' 206 if(
io_l )
write(
io_fid_log,*)
'*** restart file for ATMOS_PHY_CH is not specified.' 227 if ( restart_fid /= -1 )
then 229 if(
io_l )
write(
io_fid_log,*)
'*** Read from restart file (ATMOS_PHY_CH) ***' 232 restart_fid, var_name(1),
'ZXY', step=1 )
252 if(
io_l )
write(
io_fid_log,*)
'*** invalid restart file for ATMOS_PHY_CH.' 267 character(len=19) :: timelabel
268 character(len=H_LONG) :: basename
274 if(
io_l )
write(
io_fid_log,*)
'*** Create restart file (ATMOS_PHY_CH) ***' 300 if ( restart_fid /= -1 )
then 315 if ( restart_fid /= -1 )
then 317 if(
io_l )
write(
io_fid_log,*)
'*** Close restart file (ATMOS_PHY_CH) ***' 335 if ( restart_fid /= -1 )
then 336 call fileio_def_var( restart_fid, var_id(1), var_name(1), var_desc(1), &
356 if ( restart_fid /= -1 )
then 364 call fileio_write_var( restart_fid, var_id(1),
atmos_phy_ch_o3(:,:,:), &
integer, public is
start point of inner domain: x, local
logical, public statistics_checktotal
calc&report variable totals to logfile?
character(len=h_mid), public atmos_phy_ch_restart_out_title
title of the output file
integer, public je
end point of inner domain: y, local
subroutine, public atmos_phy_ch_vars_setup
Setup.
subroutine, public prc_mpistop
Abort MPI.
subroutine, public atmos_phy_ch_vars_restart_close
Close restart file.
logical, public io_l
output log or not? (this process)
subroutine, public fileio_flush(fid)
Flush all pending requests to a netCDF file (PnetCDF only)
subroutine, public atmos_phy_ch_vars_restart_enddef
Exit netCDF define mode.
subroutine, public atmos_phy_ch_vars_restart_def_var
Write restart.
integer, public ke
end point of inner domain: z, local
real(rp), dimension(:,:,:), allocatable, public atmos_phy_ch_o3
logical, public atmos_phy_ch_restart_in_postfix_timelabel
Add timelabel to the basename of input file?
real(rp), public const_undef
logical, public io_nml
output log or not? (for namelist, this process)
integer, public ia
of whole cells: x, local, with HALO
subroutine, public time_gettimelabel(timelabel)
generate time label
subroutine, public atmos_phy_ch_vars_fillhalo
HALO Communication.
integer, public ka
of whole cells: z, local, with HALO
logical, public atmos_phy_ch_restart_out_postfix_timelabel
Add timelabel to the basename of output file?
logical, public atmos_phy_ch_restart_output
output restart file?
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 fileio_create(fid, basename, title, datatype, date, subsec, append, nozcoord)
Create/open a netCDF file.
integer, public js
start point of inner domain: y, local
integer, public ks
start point of inner domain: z, local
real(rp), dimension(:,:,:,:), allocatable, public atmos_phy_ch_rhoq_t
module Atmosphere / Physics Chemistry
subroutine, public fileio_enddef(fid)
Exit netCDF file define mode.
integer, public ie
end point of inner domain: x, local
logical, public io_aggregate
do parallel I/O through PnetCDF
subroutine, public fileio_open(fid, basename)
open a netCDF file for read
subroutine, public fileio_def_var(fid, vid, varname, desc, unit, axistype, datatype, timeintv, nsteps)
Define a variable to file.
subroutine, public atmos_phy_ch_vars_restart_write
Write restart.
subroutine, public fileio_close(fid)
Close a netCDF file.
integer, public io_fid_conf
Config file ID.
subroutine, public atmos_phy_ch_vars_restart_create
Create restart file.
integer, public io_fid_log
Log file ID.
subroutine, public atmos_phy_ch_vars_restart_open
Open restart file for read.
subroutine, public atmos_phy_ch_vars_restart_read
Read restart.
integer, public io_fid_nml
Log file ID (only for output namelist)
character(len=h_long), public atmos_phy_ch_restart_in_basename
Basename of the input file.
integer, public ja
of whole cells: y, local, with HALO