13 #include "inc_openmp.h" 55 real(RP),
public,
allocatable ::
prog(:,:,:,:)
65 integer,
private,
parameter :: vmax = 100
66 character(len=H_SHORT),
private :: var_name(vmax)
67 character(len=H_MID),
private :: var_desc(vmax)
68 character(len=H_SHORT),
private :: var_unit(vmax)
69 integer,
private :: var_id(vmax)
70 integer,
private :: restart_fid = -1
87 namelist / param_atmos_dyn_vars / &
99 if(
io_l )
write(
io_fid_log,*)
'++++++ Module[VARS] / Categ[ATMOS DYN] / Origin[SCALE-RM]' 103 read(
io_fid_conf,nml=param_atmos_dyn_vars,iostat=ierr)
105 if(
io_l )
write(
io_fid_log,*)
'*** Not found namelist. Default used.' 106 elseif( ierr > 0 )
then 107 write(*,*)
'xxx Not appropriate names in namelist PARAM_ATMOS_DYN_VARS. Check!' 120 if (
va > vmax )
then 121 write(*,*)
'xxx number of the prognostic variables is exceed the limit',
va,
' > ', vmax
125 prog(:,:,:,:) = undef
128 if(
io_l )
write(
io_fid_log,*)
'*** [ATMOS_DYN] prognostic/diagnostic variables' 130 '*** |',
'VARNAME ',
'|',
'DESCRIPTION ',
'[',
'UNIT ',
']' 133 '*** NO.',iv,
'|',var_name(iv),
'|',var_desc(iv),
'[',var_unit(iv),
']' 155 prog(:,:,:,:) = undef
182 call comm_vars8(
prog(:,:,:,iv), iv )
186 call comm_wait (
prog(:,:,:,iv), iv )
206 if(
io_l )
write(
io_fid_log,*)
'*** Input restart file (ATMOS_DYN) ***' 212 call fileio_read(
prog(:,:,:,iv), &
220 call stat_total( total,
prog(:,:,:,iv), var_name(iv) )
223 if(
io_l )
write(
io_fid_log,*)
'*** restart file for ATMOS_DYN is not specified.' 238 character(len=20) :: timelabel
239 character(len=H_LONG) :: basename
249 if(
io_l )
write(
io_fid_log,*)
'*** Output restart file (ATMOS_DYN) ***' 271 character(len=20) :: timelabel
272 character(len=H_LONG) :: basename
282 if(
io_l )
write(
io_fid_log,*)
'*** Output restart file (ATMOS_DYN) ***' 299 if ( restart_fid .NE. -1 )
then 313 if ( restart_fid .NE. -1 )
then 331 if ( restart_fid .NE. -1 )
then 334 call fileio_def_var( restart_fid, var_id(iv), var_name(iv), var_desc(iv), &
353 if ( restart_fid .NE. -1 )
then 356 call fileio_write_var( restart_fid, var_id(iv),
prog(:,:,:,iv), var_name(iv),
'ZXY' )
integer, public is
start point of inner domain: x, local
subroutine, public atmos_dyn_vars_restart_def_var
Define variables in restart file.
integer, public je
end point of inner domain: y, local
subroutine, public prc_mpistop
Abort MPI.
module Atmosphere / Dynamical scheme
character(len=h_long), public atmos_dyn_restart_in_basename
basename of the restart file
logical, public io_l
output log or not? (this process)
subroutine, public atmos_dyn_vars_restart_enddef
Exit netCDF define mode.
module Atmosphere / Dynamics
subroutine, public atmos_dyn_vars_restart_close
Close restart file.
integer, public ke
end point of inner domain: z, local
subroutine, public atmos_dyn_vars_restart_write
Write restart.
subroutine, public atmos_dyn_vars_fillhalo
HALO Communication.
character(len=h_mid), public atmos_dyn_restart_out_title
title of the output file
real(rp), public const_undef
subroutine, public fileio_def_var(fid, vid, varname, desc, unit, axistype, datatype, timeintv)
Define a variable to file.
integer, public ia
of x whole cells (local, with HALO)
subroutine, public time_gettimelabel(timelabel)
generate time label
integer, public ka
of z whole cells (local, with HALO)
logical, public atmos_dyn_restart_output
output restart 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
subroutine, public atmos_dyn_vars_restart_read
Read restart.
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
integer, public ks
start point of inner domain: z, local
subroutine, public atmos_dyn_vars_setup
Setup.
subroutine, public fileio_enddef(fid)
Exit netCDF file define mode.
integer, public ie
end point of inner domain: x, local
logical, public io_lnml
output log or not? (for namelist, this process)
character(len=h_short), public atmos_dyn_type
subroutine, public fileio_close(fid)
Close a netCDF file.
subroutine, public atmos_dyn_vars_restart_write_var
Write variables to restart file.
integer, public io_fid_conf
Config file ID.
integer, public io_fid_log
Log file ID.
character(len=h_mid), public atmos_dyn_restart_out_dtype
REAL4 or REAL8.
subroutine, public atmos_dyn_vars_restart_create
Create restart file.
character(len=h_long), public atmos_dyn_restart_out_basename
basename of the output file
integer, public ja
of y whole cells (local, with HALO)