57 real(RP),
public,
allocatable ::
prog(:,:,:,:)
67 integer,
private,
parameter :: vmax = 100
68 character(len=H_SHORT),
private :: var_name(vmax)
69 character(len=H_MID),
private :: var_desc(vmax)
70 character(len=H_SHORT),
private :: var_unit(vmax)
71 integer,
private :: var_id(vmax)
72 integer,
private :: restart_fid = -1
89 namelist / param_atmos_dyn_vars / &
105 log_info(
"ATMOS_DYN_vars_setup",*)
'Setup' 109 read(
io_fid_conf,nml=param_atmos_dyn_vars,iostat=ierr)
111 log_info(
"ATMOS_DYN_vars_setup",*)
'Not found namelist. Default used.' 112 elseif( ierr > 0 )
then 113 log_error(
"ATMOS_DYN_vars_setup",*)
'Not appropriate names in namelist PARAM_ATMOS_DYN_VARS. Check!' 116 log_nml(param_atmos_dyn_vars)
126 if (
va > vmax )
then 127 log_error(
"ATMOS_DYN_vars_setup",*)
'number of the prognostic variables is exceed the limit',
va,
' > ', vmax
131 prog(:,:,:,:) = undef
134 log_info(
"ATMOS_DYN_vars_setup",*)
'[ATMOS_DYN] prognostic/diagnostic variables' 135 log_info_cont(
'(1x,A,A24,A,A48,A,A12,A)') &
136 ' |',
'VARNAME ',
'|', &
137 'DESCRIPTION ',
'[',
'UNIT ',
']' 139 log_info_cont(
'(1x,A,I3,A,A24,A,A48,A,A12,A)') &
140 'NO.',iv,
'|',var_name(iv),
'|',var_desc(iv),
'[',var_unit(iv),
']' 148 log_info(
"ATMOS_DYN_vars_setup",*)
'Restart input? : NO' 155 log_info(
"ATMOS_DYN_vars_setup",*)
'Restart output? : NO' 162 prog(:,:,:,:) = undef
189 call comm_vars8(
prog(:,:,:,iv), iv )
193 call comm_wait (
prog(:,:,:,iv), iv )
208 character(len=19) :: timelabel
209 character(len=H_LONG) :: basename
215 log_info(
"ATMOS_DYN_vars_restart_open",*)
'Open restart file (ATMOS_DYN) ' 226 log_info(
"ATMOS_DYN_vars_restart_open",*)
'basename: ', trim(basename)
230 log_info(
"ATMOS_DYN_vars_restart_open",*)
'restart file for ATMOS_DYN is not specified.' 257 if ( restart_fid /= -1 )
then 259 log_info(
"ATMOS_DYN_vars_restart_read",*)
'Read from restart file (ATMOS_DYN) ' 262 call file_cartesc_read( restart_fid, var_name(iv),
'ZXY', &
286 prog(:,:,:,iv), var_name(iv), &
293 log_error(
"ATMOS_DYN_vars_restart_read",*)
'invalid restart file ID for ATMOS_DYN.' 309 character(len=19) :: timelabel
310 character(len=H_LONG) :: basename
318 log_info(
"ATMOS_DYN_vars_restart_create",*)
'Create restart file (ATMOS_DYN) ' 327 log_info(
"ATMOS_DYN_vars_restart_create",*)
'basename: ', trim(basename)
346 if ( restart_fid /= -1 .and.
va > 0 )
then 361 if ( restart_fid /= -1 )
then 363 log_info(
"ATMOS_DYN_vars_restart_close",*)
'Close restart file (ATMOS_DYN) ' 383 if ( restart_fid /= -1 )
then 405 file_cartesc_write_var
411 if ( restart_fid /= -1 )
then 418 prog(:,:,:,iv), var_name(iv), &
425 call file_cartesc_write_var( restart_fid, var_id(iv),
prog(:,:,:,iv), var_name(iv),
'ZXY' )
logical, public atmos_dyn_restart_in_postfix_timelabel
Add timelabel to the basename of input file?
subroutine, public atmos_dyn_vars_restart_def_var
Define variables in restart file.
subroutine, public atmos_dyn_vars_restart_open
Open restart file for read.
character(len=h_short), public atmos_dyn_restart_out_dtype
REAL4 or REAL8.
module Atmosphere / Dynamical scheme
character(len=h_long), public atmos_dyn_restart_in_basename
Basename of the input file.
integer, public ia
of whole cells: x, local, with HALO
subroutine, public atmos_dyn_vars_restart_enddef
Exit netCDF define mode.
module Atmosphere / Dynamics
subroutine, public atmos_dyn_vars_restart_close
Close restart file.
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.
subroutine, public atmos_dyn_vars_restart_write
Write variables to restart file.
logical, public atmos_dyn_restart_out_postfix_timelabel
Add timelabel to the basename of output file?
logical, public statistics_checktotal
calc&report variable totals to logfile?
subroutine, public atmos_dyn_vars_fillhalo
HALO Communication.
character(len=h_mid), public atmos_dyn_restart_out_title
title of the output file
logical, public atmos_dyn_restart_in_aggregate
Switch to use aggregate 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
logical, public atmos_dyn_restart_output
output restart file?
module atmosphere / grid / cartesC index
integer, public ke
end point of inner domain: z, local
integer, public je
end point of inner domain: y, local
subroutine, public file_cartesc_enddef(fid)
Exit netCDF file define mode.
subroutine, public atmos_dyn_vars_restart_read
Read restart.
integer, public ks
start point of inner domain: z, local
subroutine, public atmos_dyn_tstep_short_regist(ATMOS_DYN_TYPE, VA_out, VAR_NAME, VAR_DESC, VAR_UNIT)
Register.
real(rp), dimension(:,:,:,:), allocatable, public prog
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.
subroutine, public atmos_dyn_vars_setup
Setup.
logical function, public file_get_aggregate(fid)
module Atmosphere GRID CartesC Real(real space)
integer, public ka
of whole cells: z, local, with HALO
character(len=h_short), public atmos_dyn_type
subroutine, public file_cartesc_flush(fid)
Flush all pending requests to a netCDF file (PnetCDF only)
logical, public atmos_dyn_restart_out_aggregate
Switch to use aggregate file.
subroutine, public file_cartesc_open(basename, fid, aggregate)
open a netCDF file for read
subroutine, public atmos_dyn_vars_restart_create
Create restart file.
subroutine, public file_cartesc_close(fid)
Close a netCDF file.
character(len=h_long), public atmos_dyn_restart_out_basename
Basename of the output file.