SCALE-RM
Functions/Subroutines | Variables
mod_admin_restart Module Reference

module administrator for restart More...

Functions/Subroutines

subroutine, public admin_restart_setup
 Setup. More...
 
subroutine, public admin_restart_write
 Write data to restart files. More...
 
subroutine, public admin_restart_read
 Read from restart files. 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 input file. More...
 
logical, public restart_in_postfix_timelabel = .false.
 Add timelabel to the basename of input file? More...
 
character(len=h_long), public restart_out_basename = ''
 Basename of the output file. More...
 
logical, public restart_out_postfix_timelabel = .true.
 Add timelabel to the basename of output file? More...
 
character(len=h_mid), public restart_out_title = ''
 Title of the output file. More...
 
character(len=h_short), 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 input file
    RESTART_IN_POSTFIX_TIMELABEL logical .false. Add timelabel to the basename of input file?
    RESTART_OUT_BASENAME character(len=H_LONG) '' Basename of the output file
    RESTART_OUT_POSTFIX_TIMELABEL logical .true. Add timelabel to the basename of output file?
    RESTART_OUT_TITLE character(len=H_MID) '' Title of the output file
    RESTART_OUT_DTYPE character(len=H_SHORT) '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 56 of file mod_admin_restart.f90.

References mod_atmos_dyn_vars::atmos_dyn_restart_in_basename, mod_atmos_dyn_vars::atmos_dyn_restart_in_postfix_timelabel, 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_postfix_timelabel, 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_in_postfix_timelabel, 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_postfix_timelabel, 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_in_postfix_timelabel, 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_postfix_timelabel, 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_in_postfix_timelabel, 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_postfix_timelabel, 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_in_postfix_timelabel, 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_postfix_timelabel, 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_in_postfix_timelabel, 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_postfix_timelabel, 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_in_postfix_timelabel, 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_postfix_timelabel, 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_in_postfix_timelabel, 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_postfix_timelabel, 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_in_postfix_timelabel, mod_atmos_vars::atmos_restart_out_basename, mod_atmos_vars::atmos_restart_out_dtype, mod_atmos_vars::atmos_restart_out_postfix_timelabel, 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_fid_nml, scale_stdio::io_l, scale_stdio::io_nml, mod_land_vars::land_restart_in_basename, mod_land_vars::land_restart_in_postfix_timelabel, mod_land_vars::land_restart_out_basename, mod_land_vars::land_restart_out_dtype, mod_land_vars::land_restart_out_postfix_timelabel, 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_in_postfix_timelabel, mod_ocean_vars::ocean_restart_out_basename, mod_ocean_vars::ocean_restart_out_dtype, mod_ocean_vars::ocean_restart_out_postfix_timelabel, mod_ocean_vars::ocean_restart_out_title, mod_ocean_vars::ocean_restart_output, scale_process::prc_mpistop(), restart_in_basename, restart_in_postfix_timelabel, restart_out_basename, restart_out_dtype, restart_out_postfix_timelabel, restart_out_title, restart_output, restart_run, mod_urban_vars::urban_restart_in_basename, mod_urban_vars::urban_restart_in_postfix_timelabel, mod_urban_vars::urban_restart_out_basename, mod_urban_vars::urban_restart_out_dtype, mod_urban_vars::urban_restart_out_postfix_timelabel, 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().

56  use scale_process, only: &
58  use mod_atmos_vars, only: &
66  use mod_atmos_dyn_vars, only: &
74  use mod_atmos_phy_mp_vars, only: &
82  use mod_atmos_phy_ae_vars, only: &
90  use mod_atmos_phy_ch_vars, only: &
98  use mod_atmos_phy_rd_vars, only: &
106  use mod_atmos_phy_sf_vars, only: &
114  use mod_atmos_phy_tb_vars, only: &
122  use mod_atmos_phy_cp_vars, only: &
130  use mod_ocean_vars, only: &
138  use mod_land_vars, only: &
146  use mod_urban_vars, only: &
154  implicit none
155 
156  namelist / param_restart / &
157  restart_run, &
158  restart_output, &
159  restart_in_basename, &
160  restart_in_postfix_timelabel, &
161  restart_out_basename, &
162  restart_out_postfix_timelabel, &
163  restart_out_title, &
164  restart_out_dtype
165 
166  integer :: ierr
167  !---------------------------------------------------------------------------
168 
169  if( io_l ) write(io_fid_log,*)
170  if( io_l ) write(io_fid_log,*) '++++++ Module[RESTART] / Categ[ADMIN] / Origin[SCALE-RM]'
171 
172  !--- read namelist
173  rewind(io_fid_conf)
174  read(io_fid_conf,nml=param_restart,iostat=ierr)
175  if( ierr < 0 ) then !--- missing
176  if( io_l ) write(io_fid_log,*) '*** Not found namelist. Default used.'
177  elseif( ierr > 0 ) then !--- fatal error
178  write(*,*) 'xxx Not appropriate names in namelist PARAM_RESTART. Check!'
179  call prc_mpistop
180  endif
181  if( io_nml ) write(io_fid_nml,nml=param_restart)
182 
183  !--- set default output switch
184  atmos_restart_output = restart_output
185  atmos_dyn_restart_output = restart_output
186  atmos_phy_mp_restart_output = restart_output
187  atmos_phy_ae_restart_output = restart_output
188  atmos_phy_ch_restart_output = restart_output
189  atmos_phy_rd_restart_output = restart_output
190  atmos_phy_sf_restart_output = restart_output
191  atmos_phy_tb_restart_output = restart_output
192  atmos_phy_cp_restart_output = restart_output
193  ocean_restart_output = restart_output
194  land_restart_output = restart_output
195  urban_restart_output = restart_output
196 
197  !--- set default input filename
198  if ( restart_in_basename /= '' ) then
199  atmos_restart_in_basename = restart_in_basename
200  atmos_dyn_restart_in_basename = restart_in_basename
201  atmos_phy_mp_restart_in_basename = restart_in_basename
202  atmos_phy_ae_restart_in_basename = restart_in_basename
203  atmos_phy_ch_restart_in_basename = restart_in_basename
204  atmos_phy_rd_restart_in_basename = restart_in_basename
205  atmos_phy_sf_restart_in_basename = restart_in_basename
206  atmos_phy_tb_restart_in_basename = restart_in_basename
207  atmos_phy_cp_restart_in_basename = restart_in_basename
208  ocean_restart_in_basename = restart_in_basename
209  land_restart_in_basename = restart_in_basename
210  urban_restart_in_basename = restart_in_basename
211  endif
212 
213  atmos_restart_in_postfix_timelabel = restart_in_postfix_timelabel
214  atmos_dyn_restart_in_postfix_timelabel = restart_in_postfix_timelabel
215  atmos_phy_mp_restart_in_postfix_timelabel = restart_in_postfix_timelabel
216  atmos_phy_ae_restart_in_postfix_timelabel = restart_in_postfix_timelabel
217  atmos_phy_ch_restart_in_postfix_timelabel = restart_in_postfix_timelabel
218  atmos_phy_rd_restart_in_postfix_timelabel = restart_in_postfix_timelabel
219  atmos_phy_sf_restart_in_postfix_timelabel = restart_in_postfix_timelabel
220  atmos_phy_tb_restart_in_postfix_timelabel = restart_in_postfix_timelabel
221  atmos_phy_cp_restart_in_postfix_timelabel = restart_in_postfix_timelabel
222  ocean_restart_in_postfix_timelabel = restart_in_postfix_timelabel
223  land_restart_in_postfix_timelabel = restart_in_postfix_timelabel
224  urban_restart_in_postfix_timelabel = restart_in_postfix_timelabel
225 
226  !--- set default output filename
227  if ( restart_out_basename /= '' ) then
228  atmos_restart_out_basename = restart_out_basename
229  atmos_dyn_restart_out_basename = restart_out_basename
230  atmos_phy_mp_restart_out_basename = restart_out_basename
231  atmos_phy_ae_restart_out_basename = restart_out_basename
232  atmos_phy_ch_restart_out_basename = restart_out_basename
233  atmos_phy_rd_restart_out_basename = restart_out_basename
234  atmos_phy_sf_restart_out_basename = restart_out_basename
235  atmos_phy_tb_restart_out_basename = restart_out_basename
236  atmos_phy_cp_restart_out_basename = restart_out_basename
237  ocean_restart_out_basename = restart_out_basename
238  land_restart_out_basename = restart_out_basename
239  urban_restart_out_basename = restart_out_basename
240  endif
241 
242  atmos_restart_out_postfix_timelabel = restart_out_postfix_timelabel
243  atmos_dyn_restart_out_postfix_timelabel = restart_out_postfix_timelabel
244  atmos_phy_mp_restart_out_postfix_timelabel = restart_out_postfix_timelabel
245  atmos_phy_ae_restart_out_postfix_timelabel = restart_out_postfix_timelabel
246  atmos_phy_ch_restart_out_postfix_timelabel = restart_out_postfix_timelabel
247  atmos_phy_rd_restart_out_postfix_timelabel = restart_out_postfix_timelabel
248  atmos_phy_sf_restart_out_postfix_timelabel = restart_out_postfix_timelabel
249  atmos_phy_tb_restart_out_postfix_timelabel = restart_out_postfix_timelabel
250  atmos_phy_cp_restart_out_postfix_timelabel = restart_out_postfix_timelabel
251  ocean_restart_out_postfix_timelabel = restart_out_postfix_timelabel
252  land_restart_out_postfix_timelabel = restart_out_postfix_timelabel
253  urban_restart_out_postfix_timelabel = restart_out_postfix_timelabel
254 
255  !--- set default output title
256  if ( restart_out_title /= '' ) then
257  atmos_restart_out_title = restart_out_title
258  atmos_dyn_restart_out_title = restart_out_title
259  atmos_phy_mp_restart_out_title = restart_out_title
260  atmos_phy_ae_restart_out_title = restart_out_title
261  atmos_phy_ch_restart_out_title = restart_out_title
262  atmos_phy_rd_restart_out_title = restart_out_title
263  atmos_phy_sf_restart_out_title = restart_out_title
264  atmos_phy_tb_restart_out_title = restart_out_title
265  atmos_phy_cp_restart_out_title = restart_out_title
266  ocean_restart_out_title = restart_out_title
267  land_restart_out_title = restart_out_title
268  urban_restart_out_title = restart_out_title
269  endif
270 
271  !--- set default output data type
272  if ( restart_out_dtype /= '' ) then
273  atmos_restart_out_dtype = restart_out_dtype
274  atmos_dyn_restart_out_dtype = restart_out_dtype
275  atmos_phy_mp_restart_out_dtype = restart_out_dtype
276  atmos_phy_ae_restart_out_dtype = restart_out_dtype
277  atmos_phy_ch_restart_out_dtype = restart_out_dtype
278  atmos_phy_rd_restart_out_dtype = restart_out_dtype
279  atmos_phy_sf_restart_out_dtype = restart_out_dtype
280  atmos_phy_tb_restart_out_dtype = restart_out_dtype
281  atmos_phy_cp_restart_out_dtype = restart_out_dtype
282  ocean_restart_out_dtype = restart_out_dtype
283  land_restart_out_dtype = restart_out_dtype
284  urban_restart_out_dtype = restart_out_dtype
285  endif
286 
287  return
logical, public atmos_phy_ae_restart_in_postfix_timelabel
Add timelabel to the basename of input file?
logical, public atmos_dyn_restart_in_postfix_timelabel
Add timelabel to the basename of input file?
logical, public atmos_phy_rd_restart_in_postfix_timelabel
Add timelabel to the basename of input file?
character(len=h_long), public atmos_phy_ae_restart_in_basename
Basename of the input 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 input file.
character(len=h_short), public atmos_dyn_restart_out_dtype
REAL4 or REAL8.
character(len=h_long), public atmos_dyn_restart_in_basename
Basename of the input file.
character(len=h_long), public atmos_phy_rd_restart_in_basename
Basename of the input file.
module Atmosphere / Physics Cloud Microphysics
logical, public atmos_restart_in_postfix_timelabel
Add timelabel to the basename of input file?
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 input 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
logical, public atmos_phy_cp_restart_in_postfix_timelabel
Add timelabel to the basename of input file?
character(len=h_long), public atmos_phy_cp_restart_out_basename
Basename of the output file.
character(len=h_short), public ocean_restart_out_dtype
REAL4 or REAL8.
logical, public atmos_phy_mp_restart_in_postfix_timelabel
Add timelabel to the basename of input file?
character(len=h_short), public atmos_restart_out_dtype
REAL4 or REAL8.
logical, public atmos_phy_ae_restart_out_postfix_timelabel
Add timelabel to the basename of output file?
logical, public urban_restart_out_postfix_timelabel
Add timelabel to the basename of output file?
logical, public atmos_phy_cp_restart_out_postfix_timelabel
Add timelabel to the basename of output file?
logical, public atmos_phy_tb_restart_in_postfix_timelabel
Add timelabel to the basename of input 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 input file.
character(len=h_short), public land_restart_out_dtype
REAL4 or REAL8.
module URBAN Variables
logical, public atmos_dyn_restart_out_postfix_timelabel
Add timelabel to the basename of output file?
character(len=h_mid), public atmos_dyn_restart_out_title
title of the output file
logical, public atmos_phy_ch_restart_in_postfix_timelabel
Add timelabel to the basename of input file?
character(len=h_short), public atmos_phy_cp_restart_out_dtype
REAL4 or REAL8.
character(len=h_short), public urban_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 input file.
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.
logical, public atmos_phy_tb_restart_out_postfix_timelabel
Add timelabel to the basename of output file?
logical, public atmos_phy_ch_restart_out_postfix_timelabel
Add timelabel to the basename of output file?
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 land_restart_in_postfix_timelabel
Add timelabel to the basename of input file?
logical, public ocean_restart_out_postfix_timelabel
Add timelabel to the basename of output 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_short), public atmos_phy_ch_restart_out_dtype
REAL4 or REAL8.
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 input file.
logical, public ocean_restart_in_postfix_timelabel
Add timelabel to the basename of input file?
character(len=h_short), public atmos_phy_sf_restart_out_dtype
REAL4 or REAL8.
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
logical, public atmos_phy_mp_restart_output
output restart file?
module Atmosphere / Physics Turbulence
logical, public atmos_restart_out_postfix_timelabel
Add timelabel to the basename of output file?
module LAND Variables
logical, public atmos_phy_sf_restart_out_postfix_timelabel
Add timelabel to the basename of output file?
character(len=h_short), public atmos_phy_ae_restart_out_dtype
REAL4 or REAL8.
character(len=h_short), public atmos_phy_mp_restart_out_dtype
REAL4 or REAL8.
character(len=h_short), public atmos_phy_rd_restart_out_dtype
REAL4 or REAL8.
logical, public urban_restart_output
Output restart file?
module Atmosphere / Physics Chemistry
logical, public land_restart_out_postfix_timelabel
Add timelabel to the basename of output file?
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 urban_restart_in_postfix_timelabel
Add timelabel to the basename of input file?
logical, public atmos_phy_tb_restart_output
output restart file?
character(len=h_long), public atmos_restart_in_basename
Basename of the input file.
character(len=h_long), public atmos_restart_out_basename
Basename of the output file.
logical, public atmos_phy_sf_restart_in_postfix_timelabel
Add timelabel to the basename of input 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.
logical, public ocean_restart_output
Output restart file?
character(len=h_short), public atmos_phy_tb_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
module OCEAN Variables
logical, public atmos_phy_mp_restart_out_postfix_timelabel
Add timelabel to the basename of output file?
character(len=h_long), public urban_restart_in_basename
Basename of the input file.
character(len=h_long), public atmos_phy_ch_restart_in_basename
Basename of the input file.
character(len=h_mid), public ocean_restart_out_title
Title of the output file.
logical, public atmos_phy_rd_restart_out_postfix_timelabel
Add timelabel to the basename of 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:

◆ admin_restart_write()

subroutine, public mod_admin_restart::admin_restart_write ( )

Write data to restart files.

Definition at line 293 of file mod_admin_restart.f90.

References mod_atmos_vars::atmos_restart_output, mod_atmos_vars::atmos_vars_restart_close(), mod_atmos_vars::atmos_vars_restart_create(), mod_atmos_vars::atmos_vars_restart_def_var(), mod_atmos_vars::atmos_vars_restart_enddef(), mod_atmos_vars::atmos_vars_restart_write(), mod_land_vars::land_restart_output, mod_land_vars::land_vars_restart_close(), mod_land_vars::land_vars_restart_create(), mod_land_vars::land_vars_restart_def_var(), mod_land_vars::land_vars_restart_enddef(), mod_land_vars::land_vars_restart_write(), mod_ocean_vars::ocean_restart_output, mod_ocean_vars::ocean_vars_restart_close(), mod_ocean_vars::ocean_vars_restart_create(), mod_ocean_vars::ocean_vars_restart_def_var(), mod_ocean_vars::ocean_vars_restart_enddef(), mod_ocean_vars::ocean_vars_restart_write(), mod_admin_time::time_doatmos_restart, mod_admin_time::time_doland_restart, mod_admin_time::time_doocean_restart, mod_admin_time::time_dourban_restart, mod_urban_vars::urban_restart_output, mod_urban_vars::urban_vars_restart_close(), mod_urban_vars::urban_vars_restart_create(), mod_urban_vars::urban_vars_restart_def_var(), mod_urban_vars::urban_vars_restart_enddef(), and mod_urban_vars::urban_vars_restart_write().

Referenced by mod_mkinit::mkinit(), and mod_rm_driver::scalerm().

293  use mod_admin_time, only: &
298  use mod_atmos_vars, only: &
305  use mod_ocean_vars, only: &
312  use mod_land_vars, only: &
319  use mod_urban_vars, only: &
326  implicit none
327  !---------------------------------------------------------------------------
328 
329  ! restart files can be different for different models
330 
331  ! cread restart netCDF file(s)
336 
337  ! define metadata (dimensions, variables, attributes) in netCDF file
342 
343  ! exit define mode
348 
349  ! write variabes to netCDF file
354 
355  ! clode the restart file
360 
361  return
subroutine, public land_vars_restart_close
Close restart file.
logical, public land_restart_output
Output restart file?
subroutine, public atmos_vars_restart_close
Close restart file.
subroutine, public urban_vars_restart_create
Create urban restart file.
subroutine, public ocean_vars_restart_write
Write ocean variables to restart file.
subroutine, public urban_vars_restart_enddef
Exit netCDF define mode.
module ATMOSPHERIC Variables
subroutine, public atmos_vars_restart_write
Write restart of atmospheric variables.
logical, public time_doatmos_restart
execute atmosphere restart output in this step?
logical, public time_doocean_restart
execute ocean restart output in this step?
subroutine, public ocean_vars_restart_def_var
Define ocean variables in restart file.
subroutine, public land_vars_restart_enddef
Exit netCDF define mode.
module URBAN Variables
subroutine, public ocean_vars_restart_enddef
Exit netCDF define mode.
subroutine, public land_vars_restart_create
Create land restart file.
logical, public atmos_restart_output
Output restart file?
subroutine, public ocean_vars_restart_create
Create ocean restart file.
subroutine, public urban_vars_restart_write
Write urban restart.
subroutine, public urban_vars_restart_close
Close restart file.
subroutine, public land_vars_restart_def_var
Define land variables in restart file.
module LAND Variables
logical, public time_dourban_restart
execute urban restart output in this step?
logical, public urban_restart_output
Output restart file?
subroutine, public atmos_vars_restart_create
Create atmospheric restart file.
subroutine, public atmos_vars_restart_enddef
Exit netCDF define mode.
logical, public time_doland_restart
execute land restart output in this step?
module ADMIN TIME
subroutine, public urban_vars_restart_def_var
Define urban variables in restart file.
subroutine, public atmos_vars_restart_def_var
Define atmospheric variables in restart file.
logical, public ocean_restart_output
Output restart file?
subroutine, public ocean_vars_restart_close
Close restart file.
subroutine, public land_vars_restart_write
Write land variables to restart file.
module OCEAN Variables
Here is the call graph for this function:
Here is the caller graph for this function:

◆ admin_restart_read()

subroutine, public mod_admin_restart::admin_restart_read ( )

Read from restart files.

Definition at line 367 of file mod_admin_restart.f90.

References mod_atmos_admin::atmos_do, mod_atmos_vars::atmos_vars_restart_close(), mod_atmos_vars::atmos_vars_restart_open(), mod_atmos_vars::atmos_vars_restart_read(), mod_land_admin::land_do, mod_land_vars::land_vars_restart_close(), mod_land_vars::land_vars_restart_open(), mod_land_vars::land_vars_restart_read(), mod_ocean_admin::ocean_do, mod_ocean_vars::ocean_vars_restart_close(), mod_ocean_vars::ocean_vars_restart_open(), mod_ocean_vars::ocean_vars_restart_read(), mod_urban_admin::urban_do, mod_urban_vars::urban_vars_restart_close(), mod_urban_vars::urban_vars_restart_open(), and mod_urban_vars::urban_vars_restart_read().

Referenced by mod_rm_driver::resume_state().

367  use mod_atmos_admin, only: &
368  atmos_do
369  use mod_ocean_admin, only: &
370  ocean_do
371  use mod_land_admin, only: &
372  land_do
373  use mod_urban_admin, only: &
374  urban_do
375  use mod_ocean_vars, only: &
379  use mod_land_vars, only: &
383  use mod_urban_vars, only: &
387  use mod_atmos_vars, only: &
391  implicit none
392 
393  ! restart files can be different for different models
394 
395  ! open restart netCDF file
398  if ( land_do ) call land_vars_restart_open
400 
401  ! read restart data
404  if ( land_do ) call land_vars_restart_read
406 
407  ! clode the restart file
410  if ( land_do ) call land_vars_restart_close
412 
module ATMOS admin
module Land admin
subroutine, public atmos_vars_restart_open
Open restart file for reading atmospheric variables.
subroutine, public land_vars_restart_close
Close restart file.
subroutine, public ocean_vars_restart_open
Open ocean restart file for read.
subroutine, public atmos_vars_restart_close
Close restart file.
logical, public ocean_do
module ATMOSPHERIC Variables
subroutine, public urban_vars_restart_read
Read urban restart.
module URBAN Variables
subroutine, public land_vars_restart_read
Read land restart.
subroutine, public urban_vars_restart_close
Close restart file.
logical, public atmos_do
module Ocean admin
subroutine, public ocean_vars_restart_read
Read ocean restart.
module LAND Variables
subroutine, public urban_vars_restart_open
Open urban restart file for read.
subroutine, public land_vars_restart_open
Open land restart file for read.
subroutine, public ocean_vars_restart_close
Close restart file.
module Urban admin
logical, public urban_do
module OCEAN Variables
logical, public land_do
subroutine, public atmos_vars_restart_read
Read restart of atmospheric variables.
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 41 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().

41  logical, public :: RESTART_RUN = .false.

◆ restart_output

logical, public mod_admin_restart::restart_output = .false.

Output restart file?

Definition at line 42 of file mod_admin_restart.f90.

Referenced by admin_restart_setup().

42  logical, public :: RESTART_OUTPUT = .false.

◆ restart_in_basename

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

Basename of the input file.

Definition at line 44 of file mod_admin_restart.f90.

Referenced by admin_restart_setup().

44  character(len=H_LONG), public :: RESTART_IN_BASENAME = ''

◆ restart_in_postfix_timelabel

logical, public mod_admin_restart::restart_in_postfix_timelabel = .false.

Add timelabel to the basename of input file?

Definition at line 45 of file mod_admin_restart.f90.

Referenced by admin_restart_setup().

45  logical, public :: RESTART_IN_POSTFIX_TIMELABEL = .false.

◆ restart_out_basename

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

Basename of the output file.

Definition at line 46 of file mod_admin_restart.f90.

Referenced by admin_restart_setup().

46  character(len=H_LONG), public :: RESTART_OUT_BASENAME = ''

◆ restart_out_postfix_timelabel

logical, public mod_admin_restart::restart_out_postfix_timelabel = .true.

Add timelabel to the basename of output file?

Definition at line 47 of file mod_admin_restart.f90.

Referenced by admin_restart_setup().

47  logical, public :: RESTART_OUT_POSTFIX_TIMELABEL = .true.

◆ restart_out_title

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

Title of the output file.

Definition at line 48 of file mod_admin_restart.f90.

Referenced by admin_restart_setup().

48  character(len=H_MID), public :: RESTART_OUT_TITLE = ''

◆ restart_out_dtype

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

REAL4 or REAL8.

Definition at line 49 of file mod_admin_restart.f90.

Referenced by admin_restart_setup().

49  character(len=H_SHORT), public :: RESTART_OUT_DTYPE = 'DEFAULT'