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_output = .false.
 Output restart file? More...
 
character(len=h_long), public restart_in_basename = ''
 Basename of the input file. More...
 
logical, public restart_in_aggregate
 Switch to use aggregate 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_aggregate
 Switch to use aggregate 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_OUTPUT logical .false. Output restart file?
    RESTART_IN_BASENAME character(len=H_LONG) '' Basename of the input file
    RESTART_IN_AGGREGATE logical Switch to use aggregate 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_AGGREGATE logical Switch to use aggregate 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 58 of file mod_admin_restart.F90.

References mod_atmos_dyn_vars::atmos_dyn_restart_in_aggregate, 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_aggregate, 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_aggregate, 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_aggregate, 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_aggregate, 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_aggregate, 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_aggregate, 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_aggregate, 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_aggregate, 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_aggregate, 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_aggregate, 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_aggregate, 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_aggregate, 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_aggregate, 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_aggregate, 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_aggregate, 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_aggregate, mod_atmos_vars::atmos_restart_in_basename, mod_atmos_vars::atmos_restart_in_postfix_timelabel, mod_atmos_vars::atmos_restart_out_aggregate, 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_file::file_aggregate, scale_io::io_fid_conf, mod_land_vars::land_restart_in_aggregate, mod_land_vars::land_restart_in_basename, mod_land_vars::land_restart_in_postfix_timelabel, mod_land_vars::land_restart_out_aggregate, 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_aggregate, mod_ocean_vars::ocean_restart_in_basename, mod_ocean_vars::ocean_restart_in_postfix_timelabel, mod_ocean_vars::ocean_restart_out_aggregate, 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_prc::prc_abort(), restart_in_aggregate, restart_in_basename, restart_in_postfix_timelabel, restart_out_aggregate, restart_out_basename, restart_out_dtype, restart_out_postfix_timelabel, restart_out_title, restart_output, mod_urban_vars::urban_restart_in_aggregate, mod_urban_vars::urban_restart_in_basename, mod_urban_vars::urban_restart_in_postfix_timelabel, mod_urban_vars::urban_restart_out_aggregate, 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::rm_driver(), and mod_rm_prep::rm_prep().

58  use scale_prc, only: &
59  prc_abort
60  use scale_file, only: &
62  use mod_atmos_vars, only: &
72  use mod_atmos_dyn_vars, only: &
82  use mod_atmos_phy_mp_vars, only: &
92  use mod_atmos_phy_ae_vars, only: &
102  use mod_atmos_phy_ch_vars, only: &
112  use mod_atmos_phy_rd_vars, only: &
122  use mod_atmos_phy_sf_vars, only: &
132  use mod_atmos_phy_tb_vars, only: &
142  use mod_atmos_phy_cp_vars, only: &
152  use mod_ocean_vars, only: &
162  use mod_land_vars, only: &
172  use mod_urban_vars, only: &
182  implicit none
183 
184  namelist / param_restart / &
185  restart_output, &
186  restart_in_basename, &
187  restart_in_aggregate, &
188  restart_in_postfix_timelabel, &
189  restart_out_basename, &
190  restart_out_aggregate, &
191  restart_out_postfix_timelabel, &
192  restart_out_title, &
193  restart_out_dtype
194 
195  integer :: ierr
196  !---------------------------------------------------------------------------
197 
198  log_newline
199  log_info("ADMIN_restart_setup",*) 'Setup'
200 
201  restart_in_aggregate = file_aggregate
202  restart_out_aggregate = file_aggregate
203 
204  !--- read namelist
205  rewind(io_fid_conf)
206  read(io_fid_conf,nml=param_restart,iostat=ierr)
207  if( ierr < 0 ) then !--- missing
208  log_info("ADMIN_restart_setup",*) 'Not found namelist. Default used.'
209  elseif( ierr > 0 ) then !--- fatal error
210  log_error("ADMIN_restart_setup",*) 'Not appropriate names in namelist PARAM_RESTART. Check!'
211  call prc_abort
212  endif
213  log_nml(param_restart)
214 
215  !--- set default output switch
216  atmos_restart_output = restart_output
217  atmos_dyn_restart_output = restart_output
218  atmos_phy_mp_restart_output = restart_output
219  atmos_phy_ae_restart_output = restart_output
220  atmos_phy_ch_restart_output = restart_output
221  atmos_phy_rd_restart_output = restart_output
222  atmos_phy_sf_restart_output = restart_output
223  atmos_phy_tb_restart_output = restart_output
224  atmos_phy_cp_restart_output = restart_output
225  ocean_restart_output = restart_output
226  land_restart_output = restart_output
227  urban_restart_output = restart_output
228 
229  !--- set default input filename
230  if ( restart_in_basename /= '' ) then
231  atmos_restart_in_basename = restart_in_basename
232  atmos_dyn_restart_in_basename = restart_in_basename
233  atmos_phy_mp_restart_in_basename = restart_in_basename
234  atmos_phy_ae_restart_in_basename = restart_in_basename
235  atmos_phy_ch_restart_in_basename = restart_in_basename
236  atmos_phy_rd_restart_in_basename = restart_in_basename
237  atmos_phy_sf_restart_in_basename = restart_in_basename
238  atmos_phy_tb_restart_in_basename = restart_in_basename
239  atmos_phy_cp_restart_in_basename = restart_in_basename
240  ocean_restart_in_basename = restart_in_basename
241  land_restart_in_basename = restart_in_basename
242  urban_restart_in_basename = restart_in_basename
243  endif
244 
245  atmos_restart_in_aggregate = restart_in_aggregate
246  atmos_dyn_restart_in_aggregate = restart_in_aggregate
247  atmos_phy_mp_restart_in_aggregate = restart_in_aggregate
248  atmos_phy_ae_restart_in_aggregate = restart_in_aggregate
249  atmos_phy_ch_restart_in_aggregate = restart_in_aggregate
250  atmos_phy_rd_restart_in_aggregate = restart_in_aggregate
251  atmos_phy_sf_restart_in_aggregate = restart_in_aggregate
252  atmos_phy_tb_restart_in_aggregate = restart_in_aggregate
253  atmos_phy_cp_restart_in_aggregate = restart_in_aggregate
254  ocean_restart_in_aggregate = restart_in_aggregate
255  land_restart_in_aggregate = restart_in_aggregate
256  urban_restart_in_aggregate = restart_in_aggregate
257 
258  atmos_restart_in_postfix_timelabel = restart_in_postfix_timelabel
259  atmos_dyn_restart_in_postfix_timelabel = restart_in_postfix_timelabel
260  atmos_phy_mp_restart_in_postfix_timelabel = restart_in_postfix_timelabel
261  atmos_phy_ae_restart_in_postfix_timelabel = restart_in_postfix_timelabel
262  atmos_phy_ch_restart_in_postfix_timelabel = restart_in_postfix_timelabel
263  atmos_phy_rd_restart_in_postfix_timelabel = restart_in_postfix_timelabel
264  atmos_phy_sf_restart_in_postfix_timelabel = restart_in_postfix_timelabel
265  atmos_phy_tb_restart_in_postfix_timelabel = restart_in_postfix_timelabel
266  atmos_phy_cp_restart_in_postfix_timelabel = restart_in_postfix_timelabel
267  ocean_restart_in_postfix_timelabel = restart_in_postfix_timelabel
268  land_restart_in_postfix_timelabel = restart_in_postfix_timelabel
269  urban_restart_in_postfix_timelabel = restart_in_postfix_timelabel
270 
271  !--- set default output filename
272  if ( restart_out_basename /= '' ) then
273  atmos_restart_out_basename = restart_out_basename
274  atmos_dyn_restart_out_basename = restart_out_basename
275  atmos_phy_mp_restart_out_basename = restart_out_basename
276  atmos_phy_ae_restart_out_basename = restart_out_basename
277  atmos_phy_ch_restart_out_basename = restart_out_basename
278  atmos_phy_rd_restart_out_basename = restart_out_basename
279  atmos_phy_sf_restart_out_basename = restart_out_basename
280  atmos_phy_tb_restart_out_basename = restart_out_basename
281  atmos_phy_cp_restart_out_basename = restart_out_basename
282  ocean_restart_out_basename = restart_out_basename
283  land_restart_out_basename = restart_out_basename
284  urban_restart_out_basename = restart_out_basename
285  endif
286 
287  atmos_restart_out_aggregate = restart_out_aggregate
288  atmos_dyn_restart_out_aggregate = restart_out_aggregate
289  atmos_phy_mp_restart_out_aggregate = restart_out_aggregate
290  atmos_phy_ae_restart_out_aggregate = restart_out_aggregate
291  atmos_phy_ch_restart_out_aggregate = restart_out_aggregate
292  atmos_phy_rd_restart_out_aggregate = restart_out_aggregate
293  atmos_phy_sf_restart_out_aggregate = restart_out_aggregate
294  atmos_phy_tb_restart_out_aggregate = restart_out_aggregate
295  atmos_phy_cp_restart_out_aggregate = restart_out_aggregate
296  ocean_restart_out_aggregate = restart_out_aggregate
297  land_restart_out_aggregate = restart_out_aggregate
298  urban_restart_out_aggregate = restart_out_aggregate
299 
300  atmos_restart_out_postfix_timelabel = restart_out_postfix_timelabel
301  atmos_dyn_restart_out_postfix_timelabel = restart_out_postfix_timelabel
302  atmos_phy_mp_restart_out_postfix_timelabel = restart_out_postfix_timelabel
303  atmos_phy_ae_restart_out_postfix_timelabel = restart_out_postfix_timelabel
304  atmos_phy_ch_restart_out_postfix_timelabel = restart_out_postfix_timelabel
305  atmos_phy_rd_restart_out_postfix_timelabel = restart_out_postfix_timelabel
306  atmos_phy_sf_restart_out_postfix_timelabel = restart_out_postfix_timelabel
307  atmos_phy_tb_restart_out_postfix_timelabel = restart_out_postfix_timelabel
308  atmos_phy_cp_restart_out_postfix_timelabel = restart_out_postfix_timelabel
309  ocean_restart_out_postfix_timelabel = restart_out_postfix_timelabel
310  land_restart_out_postfix_timelabel = restart_out_postfix_timelabel
311  urban_restart_out_postfix_timelabel = restart_out_postfix_timelabel
312 
313  !--- set default output title
314  if ( restart_out_title /= '' ) then
315  atmos_restart_out_title = restart_out_title
316  atmos_dyn_restart_out_title = restart_out_title
317  atmos_phy_mp_restart_out_title = restart_out_title
318  atmos_phy_ae_restart_out_title = restart_out_title
319  atmos_phy_ch_restart_out_title = restart_out_title
320  atmos_phy_rd_restart_out_title = restart_out_title
321  atmos_phy_sf_restart_out_title = restart_out_title
322  atmos_phy_tb_restart_out_title = restart_out_title
323  atmos_phy_cp_restart_out_title = restart_out_title
324  ocean_restart_out_title = restart_out_title
325  land_restart_out_title = restart_out_title
326  urban_restart_out_title = restart_out_title
327  endif
328 
329  !--- set default output data type
330  if ( restart_out_dtype /= '' ) then
331  atmos_restart_out_dtype = restart_out_dtype
332  atmos_dyn_restart_out_dtype = restart_out_dtype
333  atmos_phy_mp_restart_out_dtype = restart_out_dtype
334  atmos_phy_ae_restart_out_dtype = restart_out_dtype
335  atmos_phy_ch_restart_out_dtype = restart_out_dtype
336  atmos_phy_rd_restart_out_dtype = restart_out_dtype
337  atmos_phy_sf_restart_out_dtype = restart_out_dtype
338  atmos_phy_tb_restart_out_dtype = restart_out_dtype
339  atmos_phy_cp_restart_out_dtype = restart_out_dtype
340  ocean_restart_out_dtype = restart_out_dtype
341  land_restart_out_dtype = restart_out_dtype
342  urban_restart_out_dtype = restart_out_dtype
343  endif
344 
345  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_sf_restart_out_aggregate
Switch to use aggregate 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.
logical, public land_restart_out_aggregate
Switch to use aggregate 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
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.
logical, public atmos_phy_mp_restart_in_aggregate
Switch to use aggregate 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.
logical, public atmos_phy_sf_restart_in_aggregate
Switch to use aggregate 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?
logical, public file_aggregate
Definition: scale_file.F90:171
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?
integer, public io_fid_conf
Config file ID.
Definition: scale_io.F90:55
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.
logical, public atmos_restart_in_aggregate
Switch to use aggregate 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.
logical, public atmos_dyn_restart_in_aggregate
Switch to use aggregate file.
logical, public atmos_phy_rd_restart_in_aggregate
Switch to use aggregate file.
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 file
Definition: scale_file.F90:15
module ATMOSPHERIC Surface Variables
character(len=h_mid), public atmos_phy_mp_restart_out_title
title of the output file
logical, public atmos_phy_rd_restart_out_aggregate
Switch to use aggregate 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_tb_restart_out_aggregate
Switch to use aggregate 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_phy_cp_restart_in_aggregate
Switch to use aggregate 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 atmos_phy_cp_restart_out_aggregate
Switch to use aggregate 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.
module PROCESS
Definition: scale_prc.F90:11
character(len=h_short), public atmos_phy_ch_restart_out_dtype
REAL4 or REAL8.
logical, public atmos_phy_mp_restart_out_aggregate
Switch to use aggregate 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 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.
logical, public land_restart_in_aggregate
Switch to use aggregate file.
logical, public atmos_restart_out_aggregate
Switch to use aggregate file.
character(len=h_mid), public atmos_phy_sf_restart_out_title
title of the output file
logical, public atmos_phy_tb_restart_in_aggregate
Switch to use aggregate file.
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 urban_restart_out_aggregate
Switch to use aggregate 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?
subroutine, public prc_abort
Abort Process.
Definition: scale_prc.F90:338
character(len=h_short), public atmos_phy_ae_restart_out_dtype
REAL4 or REAL8.
logical, public atmos_phy_ae_restart_out_aggregate
Switch to use aggregate file.
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 urban_restart_in_aggregate
Switch to use aggregate 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?
logical, public atmos_phy_ch_restart_in_aggregate
Switch to use aggregate 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_in_aggregate
Switch to use aggregate file.
logical, public ocean_restart_output
Output restart file?
logical, public atmos_dyn_restart_out_aggregate
Switch to use aggregate 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?
logical, public atmos_phy_ae_restart_in_aggregate
Switch to use aggregate file.
character(len=h_long), public urban_restart_in_basename
Basename of the input file.
logical, public atmos_phy_ch_restart_out_aggregate
Switch to use aggregate 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.
logical, public ocean_restart_out_aggregate
Switch to use aggregate 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 351 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(), scale_landuse::landuse_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_rm_driver::rm_driver(), and mod_rm_prep::rm_prep().

351  use scale_landuse, only: &
353  use mod_admin_time, only: &
358  use mod_atmos_vars, only: &
365  use mod_ocean_vars, only: &
372  use mod_land_vars, only: &
379  use mod_urban_vars, only: &
386  implicit none
387  !---------------------------------------------------------------------------
388 
389  ! restart files can be different for different models
390 
391  ! cread restart netCDF file(s)
396 
397  ! define metadata (dimensions, variables, attributes) in netCDF file
402 
403  ! exit define mode
408 
409  ! write variabes to netCDF file
414 
415  ! clode the restart file
420 
421  ! output landuse data actually used in the simulation
422  call landuse_write
423 
424  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.
module LANDUSE
subroutine, public landuse_write
Write landuse data.
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 430 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::restart_read().

430  use mod_atmos_admin, only: &
431  atmos_do
432  use mod_ocean_admin, only: &
433  ocean_do
434  use mod_land_admin, only: &
435  land_do
436  use mod_urban_admin, only: &
437  urban_do
438  use mod_ocean_vars, only: &
442  use mod_land_vars, only: &
446  use mod_urban_vars, only: &
450  use mod_atmos_vars, only: &
454  implicit none
455 
456  ! restart files can be different for different models
457 
458  ! open restart netCDF file
461  if ( land_do ) call land_vars_restart_open
463 
464  ! read restart data
467  if ( land_do ) call land_vars_restart_read
469 
470  ! clode the restart file
473  if ( land_do ) call land_vars_restart_close
475 
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_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_aggregate

logical, public mod_admin_restart::restart_in_aggregate

Switch to use aggregate file.

Definition at line 45 of file mod_admin_restart.F90.

Referenced by admin_restart_setup().

45  logical, public :: restart_in_aggregate

◆ 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 46 of file mod_admin_restart.F90.

Referenced by admin_restart_setup().

46  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 47 of file mod_admin_restart.F90.

Referenced by admin_restart_setup().

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

◆ restart_out_aggregate

logical, public mod_admin_restart::restart_out_aggregate

Switch to use aggregate file.

Definition at line 48 of file mod_admin_restart.F90.

Referenced by admin_restart_setup().

48  logical, public :: restart_out_aggregate

◆ 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 49 of file mod_admin_restart.F90.

Referenced by admin_restart_setup().

49  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 50 of file mod_admin_restart.F90.

Referenced by admin_restart_setup().

50  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 51 of file mod_admin_restart.F90.

Referenced by admin_restart_setup().

51  character(len=H_SHORT), public :: restart_out_dtype = 'DEFAULT'