SCALE-RM
Functions/Subroutines | Variables
mod_admin_restart Module Reference

module administrator for restart More...

Functions/Subroutines

subroutine, public admin_restart_setup
 Setup. More...
 

Variables

logical, public restart_run = .false.
 is this run restart? More...
 
logical, public restart_output = .false.
 output restart file? More...
 
character(len=h_long), public restart_in_basename = ''
 basename of the restart file More...
 
character(len=h_long), public restart_out_basename = ''
 basename of the output file More...
 
character(len=h_mid), public restart_out_title = ''
 title of the output file More...
 
character(len=h_mid), public restart_out_dtype = 'DEFAULT'
 REAL4 or REAL8. More...
 

Detailed Description

module administrator for restart

Description
Restart administrator
Author
Team SCALE
NAMELIST
  • PARAM_RESTART
    nametypedefault valuecomment
    RESTART_RUN logical .false. is this run restart?
    RESTART_OUTPUT logical .false. output restart file?
    RESTART_IN_BASENAME character(len=H_LONG) '' basename of the restart file
    RESTART_OUT_BASENAME character(len=H_LONG) '' basename of the output file
    RESTART_OUT_TITLE character(len=H_MID) '' title of the output file
    RESTART_OUT_DTYPE character(len=H_MID) 'DEFAULT' REAL4 or REAL8

History Output
No history output

Function/Subroutine Documentation

◆ admin_restart_setup()

subroutine, public mod_admin_restart::admin_restart_setup ( )

Setup.

Definition at line 52 of file mod_admin_restart.f90.

References mod_atmos_dyn_vars::atmos_dyn_restart_in_basename, mod_atmos_dyn_vars::atmos_dyn_restart_out_basename, mod_atmos_dyn_vars::atmos_dyn_restart_out_dtype, mod_atmos_dyn_vars::atmos_dyn_restart_out_title, mod_atmos_dyn_vars::atmos_dyn_restart_output, mod_atmos_phy_ae_vars::atmos_phy_ae_restart_in_basename, mod_atmos_phy_ae_vars::atmos_phy_ae_restart_out_basename, mod_atmos_phy_ae_vars::atmos_phy_ae_restart_out_dtype, mod_atmos_phy_ae_vars::atmos_phy_ae_restart_out_title, mod_atmos_phy_ae_vars::atmos_phy_ae_restart_output, mod_atmos_phy_ch_vars::atmos_phy_ch_restart_in_basename, mod_atmos_phy_ch_vars::atmos_phy_ch_restart_out_basename, mod_atmos_phy_ch_vars::atmos_phy_ch_restart_out_dtype, mod_atmos_phy_ch_vars::atmos_phy_ch_restart_out_title, mod_atmos_phy_ch_vars::atmos_phy_ch_restart_output, mod_atmos_phy_cp_vars::atmos_phy_cp_restart_in_basename, mod_atmos_phy_cp_vars::atmos_phy_cp_restart_out_basename, mod_atmos_phy_cp_vars::atmos_phy_cp_restart_out_dtype, mod_atmos_phy_cp_vars::atmos_phy_cp_restart_out_title, mod_atmos_phy_cp_vars::atmos_phy_cp_restart_output, mod_atmos_phy_mp_vars::atmos_phy_mp_restart_in_basename, mod_atmos_phy_mp_vars::atmos_phy_mp_restart_out_basename, mod_atmos_phy_mp_vars::atmos_phy_mp_restart_out_dtype, mod_atmos_phy_mp_vars::atmos_phy_mp_restart_out_title, mod_atmos_phy_mp_vars::atmos_phy_mp_restart_output, mod_atmos_phy_rd_vars::atmos_phy_rd_restart_in_basename, mod_atmos_phy_rd_vars::atmos_phy_rd_restart_out_basename, mod_atmos_phy_rd_vars::atmos_phy_rd_restart_out_dtype, mod_atmos_phy_rd_vars::atmos_phy_rd_restart_out_title, mod_atmos_phy_rd_vars::atmos_phy_rd_restart_output, mod_atmos_phy_sf_vars::atmos_phy_sf_restart_in_basename, mod_atmos_phy_sf_vars::atmos_phy_sf_restart_out_basename, mod_atmos_phy_sf_vars::atmos_phy_sf_restart_out_dtype, mod_atmos_phy_sf_vars::atmos_phy_sf_restart_out_title, mod_atmos_phy_sf_vars::atmos_phy_sf_restart_output, mod_atmos_phy_tb_vars::atmos_phy_tb_restart_in_basename, mod_atmos_phy_tb_vars::atmos_phy_tb_restart_out_basename, mod_atmos_phy_tb_vars::atmos_phy_tb_restart_out_dtype, mod_atmos_phy_tb_vars::atmos_phy_tb_restart_out_title, mod_atmos_phy_tb_vars::atmos_phy_tb_restart_output, mod_atmos_vars::atmos_restart_in_basename, mod_atmos_vars::atmos_restart_out_basename, mod_atmos_vars::atmos_restart_out_dtype, mod_atmos_vars::atmos_restart_out_title, mod_atmos_vars::atmos_restart_output, scale_stdio::io_fid_conf, scale_stdio::io_fid_log, scale_stdio::io_l, scale_stdio::io_lnml, mod_land_vars::land_restart_in_basename, mod_land_vars::land_restart_out_basename, mod_land_vars::land_restart_out_dtype, mod_land_vars::land_restart_out_title, mod_land_vars::land_restart_output, mod_ocean_vars::ocean_restart_in_basename, mod_ocean_vars::ocean_restart_out_basename, mod_ocean_vars::ocean_restart_out_dtype, mod_ocean_vars::ocean_restart_out_title, mod_ocean_vars::ocean_restart_output, scale_process::prc_mpistop(), restart_in_basename, restart_out_basename, restart_out_dtype, restart_out_title, restart_output, restart_run, mod_urban_vars::urban_restart_in_basename, mod_urban_vars::urban_restart_out_basename, mod_urban_vars::urban_restart_out_dtype, mod_urban_vars::urban_restart_out_title, and mod_urban_vars::urban_restart_output.

Referenced by mod_rm_driver::scalerm(), and mod_rm_prep::scalerm_prep().

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, &
132  restart_in_basename, &
133  restart_out_basename, &
134  restart_out_title, &
135  restart_out_dtype
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
155  atmos_restart_output = restart_output
156  atmos_dyn_restart_output = restart_output
157  atmos_phy_cp_restart_output = restart_output
158  atmos_phy_mp_restart_output = restart_output
159  atmos_phy_rd_restart_output = restart_output
160  atmos_phy_sf_restart_output = restart_output
161  atmos_phy_tb_restart_output = restart_output
162  atmos_phy_ch_restart_output = restart_output
163  atmos_phy_ae_restart_output = restart_output
164  ocean_restart_output = restart_output
165  land_restart_output = restart_output
166  urban_restart_output = restart_output
167 
168  !--- set default input filename
169  if ( restart_in_basename /= '' ) then
170  atmos_restart_in_basename = restart_in_basename
171  atmos_dyn_restart_in_basename = restart_in_basename
172  atmos_phy_ae_restart_in_basename = restart_in_basename
173  atmos_phy_ch_restart_in_basename = restart_in_basename
174  atmos_phy_cp_restart_in_basename = restart_in_basename
175  atmos_phy_mp_restart_in_basename = restart_in_basename
176  atmos_phy_rd_restart_in_basename = restart_in_basename
177  atmos_phy_sf_restart_in_basename = restart_in_basename
178  atmos_phy_tb_restart_in_basename = restart_in_basename
179  ocean_restart_in_basename = restart_in_basename
180  land_restart_in_basename = restart_in_basename
181  urban_restart_in_basename = restart_in_basename
182  endif
183 
184  !--- set default output filename
185  if ( restart_out_basename /= '' ) then
186  atmos_restart_out_basename = restart_out_basename
187  atmos_dyn_restart_out_basename = restart_out_basename
188  atmos_phy_cp_restart_out_basename = restart_out_basename
189  atmos_phy_mp_restart_out_basename = restart_out_basename
190  atmos_phy_rd_restart_out_basename = restart_out_basename
191  atmos_phy_sf_restart_out_basename = restart_out_basename
192  atmos_phy_tb_restart_out_basename = restart_out_basename
193  atmos_phy_ch_restart_out_basename = restart_out_basename
194  atmos_phy_ae_restart_out_basename = restart_out_basename
195  ocean_restart_out_basename = restart_out_basename
196  land_restart_out_basename = restart_out_basename
197  urban_restart_out_basename = restart_out_basename
198  endif
199 
200  !--- set default output title
201  if ( restart_out_title /= '' ) then
202  atmos_restart_out_title = restart_out_title
203  atmos_dyn_restart_out_title = restart_out_title
204  atmos_phy_cp_restart_out_title = restart_out_title
205  atmos_phy_mp_restart_out_title = restart_out_title
206  atmos_phy_rd_restart_out_title = restart_out_title
207  atmos_phy_sf_restart_out_title = restart_out_title
208  atmos_phy_tb_restart_out_title = restart_out_title
209  atmos_phy_ch_restart_out_title = restart_out_title
210  atmos_phy_ae_restart_out_title = restart_out_title
211  ocean_restart_out_title = restart_out_title
212  land_restart_out_title = restart_out_title
213  urban_restart_out_title = restart_out_title
214  endif
215 
216  !--- set default output data type
217  if ( restart_out_dtype /= '' ) then
218  atmos_restart_out_dtype = restart_out_dtype
219  atmos_dyn_restart_out_dtype = restart_out_dtype
220  atmos_phy_ae_restart_out_dtype = restart_out_dtype
221  atmos_phy_ch_restart_out_dtype = restart_out_dtype
222  atmos_phy_cp_restart_out_dtype = restart_out_dtype
223  atmos_phy_mp_restart_out_dtype = restart_out_dtype
224  atmos_phy_rd_restart_out_dtype = restart_out_dtype
225  atmos_phy_sf_restart_out_dtype = restart_out_dtype
226  atmos_phy_tb_restart_out_dtype = restart_out_dtype
227  ocean_restart_out_dtype = restart_out_dtype
228  land_restart_out_dtype = restart_out_dtype
229  urban_restart_out_dtype = restart_out_dtype
230  endif
231 
232  return
character(len=h_mid), public ocean_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
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 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
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?
module Atmosphere / Physics Turbulence
module LAND Variables
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.
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 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_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 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?
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ restart_run

logical, public mod_admin_restart::restart_run = .false.

is this run restart?

Definition at line 39 of file mod_admin_restart.f90.

Referenced by admin_restart_setup(), mod_land_phy_driver::land_phy_driver_resume(), mod_ocean_phy_driver::ocean_phy_driver_resume(), and mod_urban_phy_driver::urban_phy_driver_resume().

39  logical, public :: restart_run = .false.

◆ restart_output

logical, public mod_admin_restart::restart_output = .false.

output restart file?

Definition at line 40 of file mod_admin_restart.f90.

Referenced by admin_restart_setup().

40  logical, public :: restart_output = .false.

◆ restart_in_basename

character(len=h_long), public mod_admin_restart::restart_in_basename = ''

basename of the restart file

Definition at line 42 of file mod_admin_restart.f90.

Referenced by admin_restart_setup().

42  character(len=H_LONG), public :: restart_in_basename = ''

◆ restart_out_basename

character(len=h_long), public mod_admin_restart::restart_out_basename = ''

basename of the output file

Definition at line 43 of file mod_admin_restart.f90.

Referenced by admin_restart_setup().

43  character(len=H_LONG), public :: restart_out_basename = ''

◆ restart_out_title

character(len=h_mid), public mod_admin_restart::restart_out_title = ''

title of the output file

Definition at line 44 of file mod_admin_restart.f90.

Referenced by admin_restart_setup().

44  character(len=H_MID), public :: restart_out_title = ''

◆ restart_out_dtype

character(len=h_mid), public mod_admin_restart::restart_out_dtype = 'DEFAULT'

REAL4 or REAL8.

Definition at line 45 of file mod_admin_restart.f90.

Referenced by admin_restart_setup().

45  character(len=H_MID), public :: restart_out_dtype = 'DEFAULT'