SCALE-RM
mod_admin_restart.f90
Go to the documentation of this file.
1 !-------------------------------------------------------------------------------
9 !-------------------------------------------------------------------------------
11  !-----------------------------------------------------------------------------
12  !
13  !++ used modules
14  !
15  use scale_precision
16  use scale_stdio
17  use scale_prof
18  !-----------------------------------------------------------------------------
19  implicit none
20  private
21  !-----------------------------------------------------------------------------
22  !
23  !++ Public procedure
24  !
25  public :: admin_restart_setup
26 
27  !-----------------------------------------------------------------------------
28  !
29  !++ Public parameters & variables
30  !
31  !-----------------------------------------------------------------------------
32  !
33  !++ Private procedure
34  !
35  !-----------------------------------------------------------------------------
36  !
37  !++ Private parameters & variables
38  !
39  logical, public :: restart_run = .false.
40  logical, public :: restart_output = .false.
41 
42  character(len=H_LONG), public :: restart_in_basename = ''
43  character(len=H_LONG), public :: restart_out_basename = ''
44  character(len=H_MID), public :: restart_out_title = ''
45  character(len=H_MID), public :: restart_out_dtype = 'DEFAULT'
46 
47  !-----------------------------------------------------------------------------
48 contains
49  !-----------------------------------------------------------------------------
51  subroutine admin_restart_setup
52  use scale_process, only: &
54  use mod_atmos_vars, only: &
60  use mod_atmos_dyn_vars, only: &
66  use mod_atmos_phy_cp_vars, only: &
72  use mod_atmos_phy_mp_vars, only: &
78  use mod_atmos_phy_rd_vars, only: &
84  use mod_atmos_phy_sf_vars, only: &
90  use mod_atmos_phy_tb_vars, only: &
96  use mod_atmos_phy_ch_vars, only: &
102  use mod_atmos_phy_ae_vars, only: &
108  use mod_ocean_vars, only: &
114  use mod_land_vars, only: &
120  use mod_urban_vars, only: &
126 
127  implicit none
128 
129  namelist / param_restart / &
130  restart_run, &
131  restart_output, &
136 
137  integer :: ierr
138  !---------------------------------------------------------------------------
139 
140  if( io_l ) write(io_fid_log,*)
141  if( io_l ) write(io_fid_log,*) '++++++ Module[ADMIN] / Categ[RESTART] / Origin[SCALE-RM]'
142 
143  !--- read namelist
144  rewind(io_fid_conf)
145  read(io_fid_conf,nml=param_restart,iostat=ierr)
146  if( ierr < 0 ) then !--- missing
147  if( io_l ) write(io_fid_log,*) '*** Not found namelist. Default used.'
148  elseif( ierr > 0 ) then !--- fatal error
149  write(*,*) 'xxx Not appropriate names in namelist PARAM_RESTART. Check!'
150  call prc_mpistop
151  endif
152  if( io_lnml ) write(io_fid_log,nml=param_restart)
153 
154  !--- set default output switch
167 
168  !--- set default input filename
169  if ( restart_in_basename /= '' ) then
182  endif
183 
184  !--- set default output filename
185  if ( restart_out_basename /= '' ) then
198  endif
199 
200  !--- set default output title
201  if ( restart_out_title /= '' ) then
214  endif
215 
216  !--- set default output data type
217  if ( restart_out_dtype /= '' ) then
230  endif
231 
232  return
233  end subroutine admin_restart_setup
234 
235 end module mod_admin_restart
character(len=h_mid), public ocean_restart_out_dtype
REAL4 or REAL8.
character(len=h_mid), public restart_out_dtype
REAL4 or REAL8.
character(len=h_long), public atmos_phy_ae_restart_in_basename
basename of the restart file
character(len=h_mid), public atmos_phy_ch_restart_out_title
title of the output file
module Atmosphere / Physics Cumulus
character(len=h_mid), public atmos_phy_cp_restart_out_title
title of the output file
subroutine, public prc_mpistop
Abort MPI.
logical, public land_restart_output
output restart file?
character(len=h_long), public atmos_phy_sf_restart_out_basename
basename of the output file
character(len=h_long), public atmos_phy_cp_restart_in_basename
basename of the restart file
character(len=h_long), public atmos_dyn_restart_in_basename
basename of the restart file
character(len=h_long), public atmos_phy_rd_restart_in_basename
basename of the restart file
module Atmosphere / Physics Cloud Microphysics
logical, public io_l
output log or not? (this process)
Definition: scale_stdio.F90:59
character(len=h_mid), public atmos_phy_rd_restart_out_title
title of the output file
character(len=h_long), public atmos_phy_mp_restart_in_basename
basename of the restart file
module Atmosphere / Dynamics
logical, public atmos_phy_cp_restart_output
output restart file?
logical, public atmos_phy_ae_restart_output
output restart file?
module ATMOSPHERIC Variables
character(len=h_long), public atmos_phy_cp_restart_out_basename
basename of the output file
module STDIO
Definition: scale_stdio.F90:12
character(len=h_mid), public atmos_phy_tb_restart_out_title
title of the output file
character(len=h_long), public land_restart_in_basename
basename of the restart file
module URBAN Variables
character(len=h_mid), public atmos_dyn_restart_out_title
title of the output file
character(len=h_mid), public atmos_phy_sf_restart_out_dtype
REAL4 or REAL8.
logical, public restart_output
output restart file?
logical, public atmos_restart_output
output restart file?
module Atmosphere / Physics Radiation
character(len=h_long), public atmos_phy_rd_restart_out_basename
basename of the output file
character(len=h_long), public atmos_phy_tb_restart_in_basename
basename of the restart file
character(len=h_mid), public atmos_phy_tb_restart_out_dtype
REAL4 or REAL8.
module ATMOSPHERIC Surface Variables
character(len=h_mid), public atmos_phy_mp_restart_out_title
title of the output file
character(len=h_long), public urban_restart_out_basename
basename of the output file
subroutine, public admin_restart_setup
Setup.
character(len=h_mid), public atmos_restart_out_dtype
REAL4 or REAL8.
character(len=h_long), public atmos_phy_mp_restart_out_basename
basename of the output file
logical, public atmos_dyn_restart_output
output restart file?
logical, public atmos_phy_ch_restart_output
output restart file?
character(len=h_long), public land_restart_out_basename
basename of the output file
character(len=h_long), public atmos_phy_ch_restart_out_basename
basename of the output file
character(len=h_long), public atmos_phy_sf_restart_in_basename
basename of the restart file
character(len=h_mid), public atmos_phy_sf_restart_out_title
title of the output file
module PROCESS
logical, public atmos_phy_rd_restart_output
output restart file?
character(len=h_mid), public atmos_phy_ae_restart_out_title
title of the output file
character(len=h_mid), public atmos_phy_ae_restart_out_dtype
REAL4 or REAL8.
character(len=h_mid), public atmos_phy_ch_restart_out_dtype
REAL4 or REAL8.
logical, public atmos_phy_mp_restart_output
output restart file?
character(len=h_long), public restart_out_basename
basename of the output file
module Atmosphere / Physics Turbulence
module LAND Variables
module administrator for restart
character(len=h_mid), public atmos_phy_rd_restart_out_dtype
REAL4 or REAL8.
character(len=h_mid), public atmos_phy_mp_restart_out_dtype
REAL4 or REAL8.
character(len=h_mid), public urban_restart_out_dtype
REAL4 or REAL8.
logical, public urban_restart_output
output restart file?
module Atmosphere / Physics Chemistry
character(len=h_mid), public land_restart_out_dtype
REAL4 or REAL8.
module profiler
Definition: scale_prof.F90:10
character(len=h_mid), public land_restart_out_title
title of the output file
character(len=h_mid), public atmos_restart_out_title
title of the output file
character(len=h_long), public atmos_phy_tb_restart_out_basename
basename of the output file
logical, public io_lnml
output log or not? (for namelist, this process)
Definition: scale_stdio.F90:60
logical, public atmos_phy_tb_restart_output
output restart file?
character(len=h_long), public atmos_restart_in_basename
basename of the restart file
character(len=h_long), public restart_in_basename
basename of the restart file
module PRECISION
character(len=h_long), public atmos_restart_out_basename
basename of the output file
character(len=h_long), public ocean_restart_in_basename
basename of the input file
character(len=h_mid), public restart_out_title
title of the output file
character(len=h_long), public ocean_restart_out_basename
basename of the output file
integer, public io_fid_conf
Config file ID.
Definition: scale_stdio.F90:55
logical, public restart_run
is this run restart?
logical, public ocean_restart_output
output restart file?
integer, public io_fid_log
Log file ID.
Definition: scale_stdio.F90:56
character(len=h_mid), public atmos_dyn_restart_out_dtype
REAL4 or REAL8.
character(len=h_long), public atmos_phy_ae_restart_out_basename
basename of the output file
module ATMOSPHERE / Physics Aerosol Microphysics
character(len=h_mid), public atmos_phy_cp_restart_out_dtype
REAL4 or REAL8.
module OCEAN Variables
character(len=h_long), public urban_restart_in_basename
basename of the restart file
character(len=h_long), public atmos_phy_ch_restart_in_basename
basename of the restart file
character(len=h_mid), public ocean_restart_out_title
title of the output file
character(len=h_mid), public urban_restart_out_title
title of the output file
character(len=h_long), public atmos_dyn_restart_out_basename
basename of the output file
logical, public atmos_phy_sf_restart_output
output restart file?