14 #include "inc_openmp.h" 73 integer,
private,
parameter :: vmax = 2
74 integer,
private,
parameter :: i_sflx_rain = 1
75 integer,
private,
parameter :: i_sflx_snow = 2
77 character(len=H_SHORT),
private :: var_name(vmax)
78 character(len=H_MID),
private :: var_desc(vmax)
79 character(len=H_SHORT),
private :: var_unit(vmax)
80 integer,
private :: var_id(vmax)
81 integer,
private :: restart_fid = -1
83 data var_name /
'SFLX_rain', &
85 data var_desc /
'precipitation flux (liquid)', &
86 'precipitation flux (solid)' /
87 data var_unit /
'kg/m2/s', &
101 namelist / param_atmos_phy_mp_vars / &
113 if(
io_l )
write(
io_fid_log,*)
'++++++ Module[VARS] / Categ[ATMOS PHY_MP] / Origin[SCALE-RM]' 138 read(
io_fid_conf,nml=param_atmos_phy_mp_vars,iostat=ierr)
140 if(
io_l )
write(
io_fid_log,*)
'*** Not found namelist. Default used.' 141 elseif( ierr > 0 )
then 142 write(*,*)
'xxx Not appropriate names in namelist PARAM_ATMOS_PHY_MP_VARS. Check!' 148 if(
io_l )
write(
io_fid_log,*)
'*** [ATMOS_PHY_MP] prognostic/diagnostic variables' 150 '*** |',
'VARNAME ',
'|',
'DESCRIPTION ',
'[',
'UNIT ',
']' 153 '*** NO.',iv,
'|',var_name(iv),
'|',var_desc(iv),
'[',var_unit(iv),
']' 203 if(
io_l )
write(
io_fid_log,*)
'*** Input restart file (ATMOS_PHY_MP) ***' 218 if(
io_l )
write(
io_fid_log,*)
'*** restart file for ATMOS_PHY_MP is not specified.' 235 character(len=20) :: timelabel
236 character(len=H_LONG) :: basename
247 if(
io_l )
write(
io_fid_log,*)
'*** Output restart file (ATMOS_PHY_MP) ***' 274 character(len=20) :: timelabel
275 character(len=H_LONG) :: basename
285 if(
io_l )
write(
io_fid_log,*)
'*** Output restart file (ATMOS_PHY_MP) ***' 303 if ( restart_fid .NE. -1 )
then 317 if ( restart_fid .NE. -1 )
then 334 if ( restart_fid .NE. -1 )
then 336 call fileio_def_var( restart_fid, var_id(1), var_name(1), var_desc(1), &
338 call fileio_def_var( restart_fid, var_id(2), var_name(2), var_desc(2), &
358 if ( restart_fid .NE. -1 )
then real(rp), dimension(:,:,:,:), allocatable, public atmos_phy_mp_rhoq_t
real(rp), dimension(:,:,:), allocatable, public atmos_phy_mp_momy_t
subroutine, public prc_mpistop
Abort MPI.
subroutine, public atmos_phy_mp_vars_restart_enddef
Exit netCDF define mode.
module Atmosphere / Physics Cloud Microphysics
logical, public io_l
output log or not? (this process)
character(len=h_long), public atmos_phy_mp_restart_in_basename
basename of the restart file
subroutine, public atmos_phy_mp_vars_restart_def_var
Define variables in restart file.
real(rp), dimension(:,:,:), allocatable, public atmos_phy_mp_momz_t
real(rp), dimension(:,:), allocatable, public atmos_phy_mp_sflx_rain
real(rp), public const_undef
character(len=h_mid), public atmos_phy_mp_restart_out_title
title of the output file
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)
real(rp), dimension(:,:,:), allocatable, public atmos_phy_mp_rhot_t
subroutine, public time_gettimelabel(timelabel)
generate time label
integer, public ka
of z whole cells (local, with HALO)
character(len=h_long), public atmos_phy_mp_restart_out_basename
basename of the output file
real(rp), dimension(:,:,:), allocatable, public atmos_phy_mp_dens_t
subroutine, public atmos_phy_mp_vars_restart_create
Create restart file.
subroutine, public fileio_create(fid, basename, title, datatype, date, subsec, append, nozcoord)
Create/open a netCDF file.
logical, public atmos_phy_mp_restart_output
output restart file?
subroutine, public atmos_phy_mp_vars_fillhalo
HALO Communication.
character(len=h_mid), public atmos_phy_mp_restart_out_dtype
REAL4 or REAL8.
subroutine, public atmos_phy_mp_vars_restart_write_var
Write restart.
real(rp), dimension(:,:,:), allocatable, public atmos_phy_mp_evaporate
subroutine, public fileio_enddef(fid)
Exit netCDF file define mode.
real(rp), dimension(:,:), allocatable, public atmos_phy_mp_sflx_snow
subroutine, public atmos_phy_mp_vars_setup
Setup.
subroutine, public atmos_phy_mp_vars_restart_write
Write restart.
subroutine, public atmos_phy_mp_vars_restart_read
Read restart.
subroutine, public atmos_phy_mp_vars_restart_close
Close restart file.
logical, public io_lnml
output log or not? (for namelist, this process)
subroutine, public fileio_close(fid)
Close a netCDF file.
integer, public io_fid_conf
Config file ID.
integer, public io_fid_log
Log file ID.
real(rp), dimension(:,:,:), allocatable, public atmos_phy_mp_momx_t
integer, public ja
of y whole cells (local, with HALO)