SCALE-RM
Functions/Subroutines | Variables
mod_atmos_phy_rd_vars Module Reference

module Atmosphere / Physics Radiation More...

Functions/Subroutines

subroutine, public atmos_phy_rd_vars_setup
 Setup. More...
 
subroutine, public atmos_phy_rd_vars_fillhalo
 HALO Communication. More...
 
subroutine, public atmos_phy_rd_vars_restart_open
 Open restart file for read. More...
 
subroutine, public atmos_phy_rd_vars_restart_read
 Read restart. More...
 
subroutine, public atmos_phy_rd_vars_restart_create
 Create restart file. More...
 
subroutine, public atmos_phy_rd_vars_restart_enddef
 Exit netCDF define mode. More...
 
subroutine, public atmos_phy_rd_vars_restart_close
 Close restart file. More...
 
subroutine, public atmos_phy_rd_vars_restart_def_var
 Define variables in restart file. More...
 
subroutine, public atmos_phy_rd_vars_restart_write
 Write variables to restart file. More...
 
subroutine atmos_phy_rd_vars_check
 

Variables

logical, public atmos_phy_rd_restart_output = .false.
 output restart file? More...
 
character(len=h_long), public atmos_phy_rd_restart_in_basename = ''
 Basename of the input file. More...
 
logical, public atmos_phy_rd_restart_in_aggregate
 Switch to use aggregate file. More...
 
logical, public atmos_phy_rd_restart_in_postfix_timelabel = .false.
 Add timelabel to the basename of input file? More...
 
character(len=h_long), public atmos_phy_rd_restart_out_basename = ''
 Basename of the output file. More...
 
logical, public atmos_phy_rd_restart_out_aggregate
 Switch to use aggregate file. More...
 
logical, public atmos_phy_rd_restart_out_postfix_timelabel = .true.
 Add timelabel to the basename of output file? More...
 
character(len=h_mid), public atmos_phy_rd_restart_out_title = 'ATMOS_PHY_RD restart'
 title of the output file More...
 
character(len=h_short), public atmos_phy_rd_restart_out_dtype = 'DEFAULT'
 REAL4 or REAL8. More...
 
real(rp), dimension(:,:,:), allocatable, public atmos_phy_rd_rhoh
 
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_sflx_lw_up
 
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_sflx_lw_dn
 
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_sflx_sw_up
 
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_sflx_sw_dn
 
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_tomflx_lw_up
 
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_tomflx_lw_dn
 
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_tomflx_sw_up
 
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_tomflx_sw_dn
 
real(rp), dimension(:,:,:,:), allocatable, public atmos_phy_rd_sflx_down
 
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_solins
 
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_cossza
 

Detailed Description

module Atmosphere / Physics Radiation

Description
Container for mod_atmos_phy_rd
Author
Team SCALE
NAMELIST
  • PARAM_ATMOS_PHY_RD_VARS
    nametypedefault valuecomment
    ATMOS_PHY_RD_RESTART_IN_BASENAME character(len=H_LONG) '' Basename of the input file
    ATMOS_PHY_RD_RESTART_IN_AGGREGATE logical Switch to use aggregate file
    ATMOS_PHY_RD_RESTART_IN_POSTFIX_TIMELABEL logical .false. Add timelabel to the basename of input file?
    ATMOS_PHY_RD_RESTART_OUTPUT logical .false. output restart file?
    ATMOS_PHY_RD_RESTART_OUT_BASENAME character(len=H_LONG) '' Basename of the output file
    ATMOS_PHY_RD_RESTART_OUT_AGGREGATE logical Switch to use aggregate file
    ATMOS_PHY_RD_RESTART_OUT_POSTFIX_TIMELABEL logical .true. Add timelabel to the basename of output file?
    ATMOS_PHY_RD_RESTART_OUT_TITLE character(len=H_MID) 'ATMOS_PHY_RD restart' title of the output file
    ATMOS_PHY_RD_RESTART_OUT_DTYPE character(len=H_SHORT) 'DEFAULT' REAL4 or REAL8

History Output
No history output

Function/Subroutine Documentation

◆ atmos_phy_rd_vars_setup()

subroutine, public mod_atmos_phy_rd_vars::atmos_phy_rd_vars_setup

Setup.

Definition at line 121 of file mod_atmos_phy_rd_vars.F90.

121  use scale_prc, only: &
122  prc_abort
123  use scale_const, only: &
124  undef => const_undef
125  implicit none
126 
127  namelist / param_atmos_phy_rd_vars / &
128  atmos_phy_rd_restart_in_basename, &
129  atmos_phy_rd_restart_in_aggregate, &
130  atmos_phy_rd_restart_in_postfix_timelabel, &
131  atmos_phy_rd_restart_output, &
132  atmos_phy_rd_restart_out_basename, &
133  atmos_phy_rd_restart_out_aggregate, &
134  atmos_phy_rd_restart_out_postfix_timelabel, &
135  atmos_phy_rd_restart_out_title, &
136  atmos_phy_rd_restart_out_dtype
137 
138  integer :: ierr
139  integer :: iv
140  !---------------------------------------------------------------------------
141 
142  log_newline
143  log_info("ATMOS_PHY_RD_vars_setup",*) 'Setup'
144 
145  allocate( atmos_phy_rd_rhoh(ka,ia,ja) )
146  atmos_phy_rd_rhoh(:,:,:) = undef
147 
148  allocate( atmos_phy_rd_sflx_lw_up(ia,ja) )
149  allocate( atmos_phy_rd_sflx_lw_dn(ia,ja) )
150  allocate( atmos_phy_rd_sflx_sw_up(ia,ja) )
151  allocate( atmos_phy_rd_sflx_sw_dn(ia,ja) )
152  atmos_phy_rd_sflx_lw_up(:,:) = undef
153  atmos_phy_rd_sflx_lw_dn(:,:) = undef
154  atmos_phy_rd_sflx_sw_up(:,:) = undef
155  atmos_phy_rd_sflx_sw_dn(:,:) = undef
156 
157  allocate( atmos_phy_rd_tomflx_lw_up(ia,ja) )
158  allocate( atmos_phy_rd_tomflx_lw_dn(ia,ja) )
159  allocate( atmos_phy_rd_tomflx_sw_up(ia,ja) )
160  allocate( atmos_phy_rd_tomflx_sw_dn(ia,ja) )
161  atmos_phy_rd_tomflx_lw_up(:,:) = undef
162  atmos_phy_rd_tomflx_lw_dn(:,:) = undef
163  atmos_phy_rd_tomflx_sw_up(:,:) = undef
164  atmos_phy_rd_tomflx_sw_dn(:,:) = undef
165 
166  allocate( atmos_phy_rd_sflx_down(ia,ja,n_rad_dir,n_rad_rgn) )
167  atmos_phy_rd_sflx_down(:,:,:,:) = undef
168 
169  allocate( atmos_phy_rd_solins(ia,ja) )
170  allocate( atmos_phy_rd_cossza(ia,ja) )
171  atmos_phy_rd_solins(:,:) = undef
172  atmos_phy_rd_cossza(:,:) = undef
173 
174  !--- read namelist
175  rewind(io_fid_conf)
176  read(io_fid_conf,nml=param_atmos_phy_rd_vars,iostat=ierr)
177  if( ierr < 0 ) then !--- missing
178  log_info("ATMOS_PHY_RD_vars_setup",*) 'Not found namelist. Default used.'
179  elseif( ierr > 0 ) then !--- fatal error
180  log_error("ATMOS_PHY_RD_vars_setup",*) 'Not appropriate names in namelist PARAM_ATMOS_PHY_RD_VARS. Check!'
181  call prc_abort
182  endif
183  log_nml(param_atmos_phy_rd_vars)
184 
185  log_newline
186  log_info("ATMOS_PHY_RD_vars_setup",*) '[ATMOS_PHY_RD] prognostic/diagnostic variables'
187  log_info_cont('(1x,A,A24,A,A48,A,A12,A)') &
188  ' |', 'VARNAME ','|', &
189  'DESCRIPTION ', '[', 'UNIT ', ']'
190  do iv = 1, vmax
191  log_info_cont('(1x,A,I3,A,A24,A,A48,A,A12,A)') &
192  'NO.',iv,'|',var_name(iv),'|',var_desc(iv),'[',var_unit(iv),']'
193  enddo
194 
195  log_newline
196  if ( atmos_phy_rd_restart_in_basename /= '' ) then
197  log_info("ATMOS_PHY_RD_vars_setup",*) 'Restart input? : YES, file = ', trim(atmos_phy_rd_restart_in_basename)
198  log_info("ATMOS_PHY_RD_vars_setup",*) 'Add timelabel? : ', atmos_phy_rd_restart_in_postfix_timelabel
199  else
200  log_info("ATMOS_PHY_RD_vars_setup",*) 'Restart input? : NO'
201  endif
202  if ( atmos_phy_rd_restart_output &
203  .AND. atmos_phy_rd_restart_out_basename /= '' ) then
204  log_info("ATMOS_PHY_RD_vars_setup",*) 'Restart output? : YES, file = ', trim(atmos_phy_rd_restart_out_basename)
205  log_info("ATMOS_PHY_RD_vars_setup",*) 'Add timelabel? : ', atmos_phy_rd_restart_out_postfix_timelabel
206  else
207  log_info("ATMOS_PHY_RD_vars_setup",*) 'Restart output? : NO'
208  atmos_phy_rd_restart_output = .false.
209  endif
210 
211  return

References atmos_phy_rd_cossza, atmos_phy_rd_restart_in_aggregate, atmos_phy_rd_restart_in_basename, atmos_phy_rd_restart_in_postfix_timelabel, atmos_phy_rd_restart_out_aggregate, atmos_phy_rd_restart_out_basename, atmos_phy_rd_restart_out_dtype, atmos_phy_rd_restart_out_postfix_timelabel, atmos_phy_rd_restart_out_title, atmos_phy_rd_restart_output, atmos_phy_rd_rhoh, atmos_phy_rd_sflx_down, atmos_phy_rd_sflx_lw_dn, atmos_phy_rd_sflx_lw_up, atmos_phy_rd_sflx_sw_dn, atmos_phy_rd_sflx_sw_up, atmos_phy_rd_solins, atmos_phy_rd_tomflx_lw_dn, atmos_phy_rd_tomflx_lw_up, atmos_phy_rd_tomflx_sw_dn, atmos_phy_rd_tomflx_sw_up, scale_const::const_undef, scale_atmos_grid_cartesc_index::ia, scale_io::io_fid_conf, scale_atmos_grid_cartesc_index::ja, scale_atmos_grid_cartesc_index::ka, scale_cpl_sfc_index::n_rad_dir, scale_cpl_sfc_index::n_rad_rgn, and scale_prc::prc_abort().

Referenced by mod_atmos_vars::atmos_vars_setup().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atmos_phy_rd_vars_fillhalo()

subroutine, public mod_atmos_phy_rd_vars::atmos_phy_rd_vars_fillhalo

HALO Communication.

Definition at line 217 of file mod_atmos_phy_rd_vars.F90.

217  use scale_comm_cartesc, only: &
218  comm_vars8, &
219  comm_wait
220  implicit none
221 
222  integer :: n ,idir, irgn
223  !---------------------------------------------------------------------------
224 
225  call comm_vars8( atmos_phy_rd_sflx_lw_up(:,:), 1 )
226  call comm_vars8( atmos_phy_rd_sflx_lw_dn(:,:), 2 )
227  call comm_vars8( atmos_phy_rd_sflx_sw_up(:,:), 3 )
228  call comm_vars8( atmos_phy_rd_sflx_sw_dn(:,:), 4 )
229  call comm_vars8( atmos_phy_rd_tomflx_lw_up(:,:), 5 )
230  call comm_vars8( atmos_phy_rd_tomflx_lw_dn(:,:), 6 )
231  call comm_vars8( atmos_phy_rd_tomflx_sw_up(:,:), 7 )
232  call comm_vars8( atmos_phy_rd_tomflx_sw_dn(:,:), 8 )
233 
234  n = 8
235  do irgn = i_r_ir, i_r_vis
236  do idir = i_r_direct, i_r_diffuse
237  n = n + 1
238  call comm_vars8( atmos_phy_rd_sflx_down(:,:,idir,irgn), n )
239  enddo
240  enddo
241 
242  call comm_wait ( atmos_phy_rd_sflx_lw_up(:,:), 1 )
243  call comm_wait ( atmos_phy_rd_sflx_lw_dn(:,:), 2 )
244  call comm_wait ( atmos_phy_rd_sflx_sw_up(:,:), 3 )
245  call comm_wait ( atmos_phy_rd_sflx_sw_dn(:,:), 4 )
246  call comm_wait ( atmos_phy_rd_tomflx_lw_up(:,:), 5 )
247  call comm_wait ( atmos_phy_rd_tomflx_lw_dn(:,:), 6 )
248  call comm_wait ( atmos_phy_rd_tomflx_sw_up(:,:), 7 )
249  call comm_wait ( atmos_phy_rd_tomflx_sw_dn(:,:), 8 )
250 
251  n = 8
252  do irgn = i_r_ir, i_r_vis
253  do idir = i_r_direct, i_r_diffuse
254  n = n + 1
255  call comm_wait ( atmos_phy_rd_sflx_down(:,:,idir,irgn), n )
256  enddo
257  enddo
258 
259  return

References atmos_phy_rd_sflx_down, atmos_phy_rd_sflx_lw_dn, atmos_phy_rd_sflx_lw_up, atmos_phy_rd_sflx_sw_dn, atmos_phy_rd_sflx_sw_up, atmos_phy_rd_tomflx_lw_dn, atmos_phy_rd_tomflx_lw_up, atmos_phy_rd_tomflx_sw_dn, atmos_phy_rd_tomflx_sw_up, scale_cpl_sfc_index::i_r_diffuse, scale_cpl_sfc_index::i_r_direct, scale_cpl_sfc_index::i_r_ir, and scale_cpl_sfc_index::i_r_vis.

Referenced by atmos_phy_rd_vars_restart_read(), and atmos_phy_rd_vars_restart_write().

Here is the caller graph for this function:

◆ atmos_phy_rd_vars_restart_open()

subroutine, public mod_atmos_phy_rd_vars::atmos_phy_rd_vars_restart_open

Open restart file for read.

Definition at line 265 of file mod_atmos_phy_rd_vars.F90.

265  use scale_time, only: &
267  use scale_file_cartesc, only: &
269  implicit none
270 
271  character(len=19) :: timelabel
272  character(len=H_LONG) :: basename
273  !---------------------------------------------------------------------------
274 
275  log_newline
276  log_info("ATMOS_PHY_RD_vars_restart_open",*) 'Open restart file (ATMOS_PHY_RD) '
277 
278  if ( atmos_phy_rd_restart_in_basename /= '' ) then
279 
280  if ( atmos_phy_rd_restart_in_postfix_timelabel ) then
281  call time_gettimelabel( timelabel )
282  basename = trim(atmos_phy_rd_restart_in_basename)//'_'//trim(timelabel)
283  else
284  basename = trim(atmos_phy_rd_restart_in_basename)
285  endif
286 
287  log_info("ATMOS_PHY_RD_vars_restart_open",*) 'basename: ', trim(basename)
288 
289  call file_cartesc_open( basename, restart_fid, aggregate=atmos_phy_rd_restart_in_aggregate )
290  else
291  log_info("ATMOS_PHY_RD_vars_restart_open",*) 'restart file for ATMOS_PHY_RD is not specified.'
292  endif
293 
294  return

References atmos_phy_rd_restart_in_aggregate, atmos_phy_rd_restart_in_basename, atmos_phy_rd_restart_in_postfix_timelabel, scale_file_cartesc::file_cartesc_open(), and scale_time::time_gettimelabel().

Referenced by mod_atmos_vars::atmos_vars_restart_open().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atmos_phy_rd_vars_restart_read()

subroutine, public mod_atmos_phy_rd_vars::atmos_phy_rd_vars_restart_read

Read restart.

Definition at line 300 of file mod_atmos_phy_rd_vars.F90.

300  use scale_file, only: &
302  use scale_file_cartesc, only: &
303  file_cartesc_read, &
305  implicit none
306  !---------------------------------------------------------------------------
307 
308  if ( restart_fid /= -1 ) then
309  log_newline
310  log_info("ATMOS_PHY_RD_vars_restart_read",*) 'Read from restart file (ATMOS_PHY_RD) '
311 
312  call file_cartesc_read( restart_fid, var_name(i_sflx_lw_up), 'XY', & ! [IN]
313  atmos_phy_rd_sflx_lw_up(:,:) ) ! [OUT]
314  call file_cartesc_read( restart_fid, var_name(i_sflx_lw_dn), 'XY', & ! [IN]
315  atmos_phy_rd_sflx_lw_dn(:,:) ) ! [OUT]
316  call file_cartesc_read( restart_fid, var_name(i_sflx_sw_up), 'XY', & ! [IN]
317  atmos_phy_rd_sflx_sw_up(:,:) ) ! [OUT]
318  call file_cartesc_read( restart_fid, var_name(i_sflx_sw_dn), 'XY', & ! [IN]
319  atmos_phy_rd_sflx_sw_dn(:,:) ) ! [OUT]
320 
321  if ( file_get_aggregate(restart_fid) ) then
322  call file_cartesc_flush( restart_fid ) ! X/Y halos have been read from file
323  else
324  call atmos_phy_rd_vars_fillhalo
325  end if
326 
327  call atmos_phy_rd_vars_check
328 
329  else
330  log_info("ATMOS_PHY_RD_vars_restart_read",*) 'invalid restart file ID for ATMOS_PHY_RD.'
331  endif
332 
333  return

References atmos_phy_rd_sflx_lw_dn, atmos_phy_rd_sflx_lw_up, atmos_phy_rd_sflx_sw_dn, atmos_phy_rd_sflx_sw_up, atmos_phy_rd_vars_check(), atmos_phy_rd_vars_fillhalo(), scale_file_cartesc::file_cartesc_flush(), and scale_file::file_get_aggregate().

Referenced by mod_atmos_vars::atmos_vars_restart_read().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atmos_phy_rd_vars_restart_create()

subroutine, public mod_atmos_phy_rd_vars::atmos_phy_rd_vars_restart_create

Create restart file.

Definition at line 339 of file mod_atmos_phy_rd_vars.F90.

339  use scale_time, only: &
341  use scale_file_cartesc, only: &
343  implicit none
344 
345  character(len=19) :: timelabel
346  character(len=H_LONG) :: basename
347  !---------------------------------------------------------------------------
348 
349  if ( atmos_phy_rd_restart_out_basename /= '' ) then
350 
351  log_newline
352  log_info("ATMOS_PHY_RD_vars_restart_create",*) 'Create restart file (ATMOS_PHY_AE) '
353 
354  if ( atmos_phy_rd_restart_out_postfix_timelabel ) then
355  call time_gettimelabel( timelabel )
356  basename = trim(atmos_phy_rd_restart_out_basename)//'_'//trim(timelabel)
357  else
358  basename = trim(atmos_phy_rd_restart_out_basename)
359  endif
360 
361  log_info("ATMOS_PHY_RD_vars_restart_create",*) 'basename: ', trim(basename)
362 
363  call file_cartesc_create( &
364  basename, atmos_phy_rd_restart_out_title, atmos_phy_rd_restart_out_dtype, & ! [IN]
365  restart_fid, & ! [OUT]
366  aggregate=atmos_phy_rd_restart_out_aggregate ) ! [IN]
367 
368  endif
369 
370  return

References atmos_phy_rd_restart_out_aggregate, atmos_phy_rd_restart_out_basename, atmos_phy_rd_restart_out_dtype, atmos_phy_rd_restart_out_postfix_timelabel, atmos_phy_rd_restart_out_title, scale_file_cartesc::file_cartesc_create(), and scale_time::time_gettimelabel().

Referenced by mod_atmos_vars::atmos_vars_restart_create().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atmos_phy_rd_vars_restart_enddef()

subroutine, public mod_atmos_phy_rd_vars::atmos_phy_rd_vars_restart_enddef

Exit netCDF define mode.

Definition at line 376 of file mod_atmos_phy_rd_vars.F90.

376  use scale_file_cartesc, only: &
378  implicit none
379 
380  if ( restart_fid /= -1 ) then
381  call file_cartesc_enddef( restart_fid ) ! [IN]
382  endif
383 
384  return

References scale_file_cartesc::file_cartesc_enddef().

Referenced by mod_atmos_vars::atmos_vars_restart_enddef().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atmos_phy_rd_vars_restart_close()

subroutine, public mod_atmos_phy_rd_vars::atmos_phy_rd_vars_restart_close

Close restart file.

Definition at line 390 of file mod_atmos_phy_rd_vars.F90.

390  use scale_file_cartesc, only: &
392  implicit none
393  !---------------------------------------------------------------------------
394 
395  if ( restart_fid /= -1 ) then
396  log_newline
397  log_info("ATMOS_PHY_RD_vars_restart_close",*) 'Close restart file (ATMOS_PHY_RD) '
398 
399  call file_cartesc_close( restart_fid ) ! [IN]
400 
401  restart_fid = -1
402  endif
403 
404  return

References scale_file_cartesc::file_cartesc_close().

Referenced by mod_atmos_vars::atmos_vars_restart_close().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atmos_phy_rd_vars_restart_def_var()

subroutine, public mod_atmos_phy_rd_vars::atmos_phy_rd_vars_restart_def_var

Define variables in restart file.

Definition at line 410 of file mod_atmos_phy_rd_vars.F90.

410  use scale_file_cartesc, only: &
412  implicit none
413 
414  integer :: i
415  !---------------------------------------------------------------------------
416 
417  if ( restart_fid /= -1 ) then
418 
419  do i = 1, vmax
420  call file_cartesc_def_var( restart_fid, & ! [IN]
421  var_name(i), var_desc(i), var_unit(i), & ! [IN]
422  'XY', atmos_phy_rd_restart_out_dtype, & ! [IN]
423  var_id(i), & ! [OUT]
424  standard_name=var_stdn(i) ) ! [IN]
425  end do
426  endif
427 
428  return

References atmos_phy_rd_restart_out_dtype, and scale_file_cartesc::file_cartesc_def_var().

Referenced by mod_atmos_vars::atmos_vars_restart_def_var().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atmos_phy_rd_vars_restart_write()

subroutine, public mod_atmos_phy_rd_vars::atmos_phy_rd_vars_restart_write

Write variables to restart file.

Definition at line 434 of file mod_atmos_phy_rd_vars.F90.

434  use scale_file_cartesc, only: &
435  file_cartesc_write_var
436  implicit none
437  !---------------------------------------------------------------------------
438 
439  if ( restart_fid /= -1 ) then
440 
441  call atmos_phy_rd_vars_fillhalo
442 
443  call atmos_phy_rd_vars_check
444 
445  call file_cartesc_write_var( restart_fid, var_id(i_sflx_lw_up), & ! [IN]
446  atmos_phy_rd_sflx_lw_up(:,:), & ! [IN]
447  var_name(i_sflx_lw_up), 'XY' ) ! [IN]
448  call file_cartesc_write_var( restart_fid, var_id(i_sflx_lw_dn), & ! [IN]
449  atmos_phy_rd_sflx_lw_dn(:,:), & ! [IN]
450  var_name(i_sflx_lw_dn), 'XY' ) ! [IN]
451  call file_cartesc_write_var( restart_fid, var_id(i_sflx_sw_up), & ! [IN]
452  atmos_phy_rd_sflx_sw_up(:,:), & ! [IN]
453  var_name(i_sflx_sw_up), 'XY' ) ! [IN]
454  call file_cartesc_write_var( restart_fid, var_id(i_sflx_sw_dn), & ! [IN]
455  atmos_phy_rd_sflx_sw_dn(:,:), & ! [IN]
456  var_name(i_sflx_sw_dn), 'XY' ) ! [IN]
457 
458  endif
459 
460  return

References atmos_phy_rd_sflx_lw_dn, atmos_phy_rd_sflx_lw_up, atmos_phy_rd_sflx_sw_dn, atmos_phy_rd_sflx_sw_up, atmos_phy_rd_vars_check(), and atmos_phy_rd_vars_fillhalo().

Referenced by mod_atmos_vars::atmos_vars_restart_write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atmos_phy_rd_vars_check()

subroutine mod_atmos_phy_rd_vars::atmos_phy_rd_vars_check

Definition at line 465 of file mod_atmos_phy_rd_vars.F90.

465  use scale_statistics, only: &
466  statistics_total
467  use scale_atmos_grid_cartesc_real, only: &
470  implicit none
471  !---------------------------------------------------------------------------
472 
473  call valcheck( ia, is, ie, ja, js, je, &
474  atmos_phy_rd_sflx_lw_up(:,:), & ! (in)
475  0.0_rp, 1.0e4_rp, var_name(i_sflx_lw_up), & ! (in)
476  __file__, __line__ ) ! (in)
477  call valcheck( ia, is, ie, ja, js, je, &
478  atmos_phy_rd_sflx_lw_dn(:,:), & ! (in)
479  0.0_rp, 1.0e4_rp, var_name(i_sflx_lw_dn), & ! (in)
480  __file__, __line__ ) ! (in)
481  call valcheck( ia, is, ie, ja, js, je, &
482  atmos_phy_rd_sflx_sw_up(:,:), & ! (in)
483  0.0_rp, 1.0e4_rp, var_name(i_sflx_sw_up), & ! (in)
484  __file__, __line__ ) ! (in)
485  call valcheck( ia, is, ie, ja, js, je, &
486  atmos_phy_rd_sflx_sw_dn(:,:), & ! (in)
487  0.0_rp, 1.0e4_rp, var_name(i_sflx_sw_dn), & ! (in)
488  __file__, __line__ ) ! (in)
489 
490  call statistics_total( ia, is, ie, ja, js, je, & ! [IN]
491  atmos_phy_rd_sflx_lw_up(:,:), & ! [IN]
492  var_name(i_sflx_lw_up), & ! [IN]
493  atmos_grid_cartesc_real_area(:,:), & ! [IN]
495  call statistics_total( ia, is, ie, ja, js, je, & ! [IN]
496  atmos_phy_rd_sflx_lw_dn(:,:), & ! [IN]
497  var_name(i_sflx_lw_dn), & ! [IN]
498  atmos_grid_cartesc_real_area(:,:), & ! [IN]
500  call statistics_total( ia, is, ie, ja, js, je, & ! [IN]
501  atmos_phy_rd_sflx_sw_up(:,:), & ! [IN]
502  var_name(i_sflx_sw_up), & ! [IN]
503  atmos_grid_cartesc_real_area(:,:), & ! [IN]
505  call statistics_total( ia, is, ie, ja, js, je, & ! [IN]
506  atmos_phy_rd_sflx_sw_dn(:,:), & ! [IN]
507  var_name(i_sflx_sw_dn), & ! [IN]
508  atmos_grid_cartesc_real_area(:,:), & ! [IN]
510 
511  return

References scale_atmos_grid_cartesc_real::atmos_grid_cartesc_real_area, scale_atmos_grid_cartesc_real::atmos_grid_cartesc_real_totarea, atmos_phy_rd_sflx_lw_dn, atmos_phy_rd_sflx_lw_up, atmos_phy_rd_sflx_sw_dn, atmos_phy_rd_sflx_sw_up, scale_atmos_grid_cartesc_index::ia, scale_atmos_grid_cartesc_index::ie, scale_atmos_grid_cartesc_index::is, scale_atmos_grid_cartesc_index::ja, scale_atmos_grid_cartesc_index::je, and scale_atmos_grid_cartesc_index::js.

Referenced by atmos_phy_rd_vars_restart_read(), and atmos_phy_rd_vars_restart_write().

Here is the caller graph for this function:

Variable Documentation

◆ atmos_phy_rd_restart_output

logical, public mod_atmos_phy_rd_vars::atmos_phy_rd_restart_output = .false.

output restart file?

Definition at line 46 of file mod_atmos_phy_rd_vars.F90.

46  logical, public :: ATMOS_PHY_RD_RESTART_OUTPUT = .false.

Referenced by mod_admin_restart::admin_restart_setup(), and atmos_phy_rd_vars_setup().

◆ atmos_phy_rd_restart_in_basename

character(len=h_long), public mod_atmos_phy_rd_vars::atmos_phy_rd_restart_in_basename = ''

Basename of the input file.

Definition at line 48 of file mod_atmos_phy_rd_vars.F90.

48  character(len=H_LONG), public :: ATMOS_PHY_RD_RESTART_IN_BASENAME = ''

Referenced by mod_admin_restart::admin_restart_setup(), atmos_phy_rd_vars_restart_open(), and atmos_phy_rd_vars_setup().

◆ atmos_phy_rd_restart_in_aggregate

logical, public mod_atmos_phy_rd_vars::atmos_phy_rd_restart_in_aggregate

Switch to use aggregate file.

Definition at line 49 of file mod_atmos_phy_rd_vars.F90.

49  logical, public :: ATMOS_PHY_RD_RESTART_IN_AGGREGATE

Referenced by mod_admin_restart::admin_restart_setup(), atmos_phy_rd_vars_restart_open(), and atmos_phy_rd_vars_setup().

◆ atmos_phy_rd_restart_in_postfix_timelabel

logical, public mod_atmos_phy_rd_vars::atmos_phy_rd_restart_in_postfix_timelabel = .false.

Add timelabel to the basename of input file?

Definition at line 50 of file mod_atmos_phy_rd_vars.F90.

50  logical, public :: ATMOS_PHY_RD_RESTART_IN_POSTFIX_TIMELABEL = .false.

Referenced by mod_admin_restart::admin_restart_setup(), atmos_phy_rd_vars_restart_open(), and atmos_phy_rd_vars_setup().

◆ atmos_phy_rd_restart_out_basename

character(len=h_long), public mod_atmos_phy_rd_vars::atmos_phy_rd_restart_out_basename = ''

Basename of the output file.

Definition at line 51 of file mod_atmos_phy_rd_vars.F90.

51  character(len=H_LONG), public :: ATMOS_PHY_RD_RESTART_OUT_BASENAME = ''

Referenced by mod_admin_restart::admin_restart_setup(), atmos_phy_rd_vars_restart_create(), and atmos_phy_rd_vars_setup().

◆ atmos_phy_rd_restart_out_aggregate

logical, public mod_atmos_phy_rd_vars::atmos_phy_rd_restart_out_aggregate

Switch to use aggregate file.

Definition at line 52 of file mod_atmos_phy_rd_vars.F90.

52  logical, public :: ATMOS_PHY_RD_RESTART_OUT_AGGREGATE

Referenced by mod_admin_restart::admin_restart_setup(), atmos_phy_rd_vars_restart_create(), and atmos_phy_rd_vars_setup().

◆ atmos_phy_rd_restart_out_postfix_timelabel

logical, public mod_atmos_phy_rd_vars::atmos_phy_rd_restart_out_postfix_timelabel = .true.

Add timelabel to the basename of output file?

Definition at line 53 of file mod_atmos_phy_rd_vars.F90.

53  logical, public :: ATMOS_PHY_RD_RESTART_OUT_POSTFIX_TIMELABEL = .true.

Referenced by mod_admin_restart::admin_restart_setup(), atmos_phy_rd_vars_restart_create(), and atmos_phy_rd_vars_setup().

◆ atmos_phy_rd_restart_out_title

character(len=h_mid), public mod_atmos_phy_rd_vars::atmos_phy_rd_restart_out_title = 'ATMOS_PHY_RD restart'

title of the output file

Definition at line 54 of file mod_atmos_phy_rd_vars.F90.

54  character(len=H_MID), public :: ATMOS_PHY_RD_RESTART_OUT_TITLE = 'ATMOS_PHY_RD restart'

Referenced by mod_admin_restart::admin_restart_setup(), atmos_phy_rd_vars_restart_create(), and atmos_phy_rd_vars_setup().

◆ atmos_phy_rd_restart_out_dtype

character(len=h_short), public mod_atmos_phy_rd_vars::atmos_phy_rd_restart_out_dtype = 'DEFAULT'

REAL4 or REAL8.

Definition at line 55 of file mod_atmos_phy_rd_vars.F90.

55  character(len=H_SHORT), public :: ATMOS_PHY_RD_RESTART_OUT_DTYPE = 'DEFAULT'

Referenced by mod_admin_restart::admin_restart_setup(), atmos_phy_rd_vars_restart_create(), atmos_phy_rd_vars_restart_def_var(), and atmos_phy_rd_vars_setup().

◆ atmos_phy_rd_rhoh

real(rp), dimension(:,:,:), allocatable, public mod_atmos_phy_rd_vars::atmos_phy_rd_rhoh

Definition at line 57 of file mod_atmos_phy_rd_vars.F90.

57  real(RP), public, allocatable :: ATMOS_PHY_RD_RHOH(:,:,:) ! diavatic heating rate [J/m3/s]

Referenced by mod_atmos_phy_rd_driver::atmos_phy_rd_driver_calc_tendency(), and atmos_phy_rd_vars_setup().

◆ atmos_phy_rd_sflx_lw_up

real(rp), dimension (:,:), allocatable, public mod_atmos_phy_rd_vars::atmos_phy_rd_sflx_lw_up

◆ atmos_phy_rd_sflx_lw_dn

real(rp), dimension (:,:), allocatable, public mod_atmos_phy_rd_vars::atmos_phy_rd_sflx_lw_dn

◆ atmos_phy_rd_sflx_sw_up

real(rp), dimension (:,:), allocatable, public mod_atmos_phy_rd_vars::atmos_phy_rd_sflx_sw_up

◆ atmos_phy_rd_sflx_sw_dn

real(rp), dimension (:,:), allocatable, public mod_atmos_phy_rd_vars::atmos_phy_rd_sflx_sw_dn

◆ atmos_phy_rd_tomflx_lw_up

real(rp), dimension(:,:), allocatable, public mod_atmos_phy_rd_vars::atmos_phy_rd_tomflx_lw_up

Definition at line 66 of file mod_atmos_phy_rd_vars.F90.

66  real(RP), public, allocatable :: ATMOS_PHY_RD_TOMFLX_LW_up(:,:) ! upward longwave flux [J/m2/s]

Referenced by mod_atmos_phy_rd_driver::atmos_phy_rd_driver_calc_tendency(), mod_atmos_phy_rd_driver::atmos_phy_rd_driver_setup(), atmos_phy_rd_vars_fillhalo(), atmos_phy_rd_vars_setup(), and mod_atmos_vars::atmos_vars_monitor().

◆ atmos_phy_rd_tomflx_lw_dn

real(rp), dimension(:,:), allocatable, public mod_atmos_phy_rd_vars::atmos_phy_rd_tomflx_lw_dn

Definition at line 67 of file mod_atmos_phy_rd_vars.F90.

67  real(RP), public, allocatable :: ATMOS_PHY_RD_TOMFLX_LW_dn(:,:) ! downward longwave flux [J/m2/s]

Referenced by mod_atmos_phy_rd_driver::atmos_phy_rd_driver_calc_tendency(), mod_atmos_phy_rd_driver::atmos_phy_rd_driver_setup(), atmos_phy_rd_vars_fillhalo(), atmos_phy_rd_vars_setup(), and mod_atmos_vars::atmos_vars_monitor().

◆ atmos_phy_rd_tomflx_sw_up

real(rp), dimension(:,:), allocatable, public mod_atmos_phy_rd_vars::atmos_phy_rd_tomflx_sw_up

Definition at line 68 of file mod_atmos_phy_rd_vars.F90.

68  real(RP), public, allocatable :: ATMOS_PHY_RD_TOMFLX_SW_up(:,:) ! upward shortwave flux [J/m2/s]

Referenced by mod_atmos_phy_rd_driver::atmos_phy_rd_driver_calc_tendency(), mod_atmos_phy_rd_driver::atmos_phy_rd_driver_setup(), atmos_phy_rd_vars_fillhalo(), atmos_phy_rd_vars_setup(), and mod_atmos_vars::atmos_vars_monitor().

◆ atmos_phy_rd_tomflx_sw_dn

real(rp), dimension(:,:), allocatable, public mod_atmos_phy_rd_vars::atmos_phy_rd_tomflx_sw_dn

Definition at line 69 of file mod_atmos_phy_rd_vars.F90.

69  real(RP), public, allocatable :: ATMOS_PHY_RD_TOMFLX_SW_dn(:,:) ! downward shortwave flux [J/m2/s]

Referenced by mod_atmos_phy_rd_driver::atmos_phy_rd_driver_calc_tendency(), mod_atmos_phy_rd_driver::atmos_phy_rd_driver_setup(), atmos_phy_rd_vars_fillhalo(), atmos_phy_rd_vars_setup(), and mod_atmos_vars::atmos_vars_monitor().

◆ atmos_phy_rd_sflx_down

real(rp), dimension (:,:,:,:), allocatable, public mod_atmos_phy_rd_vars::atmos_phy_rd_sflx_down

Definition at line 71 of file mod_atmos_phy_rd_vars.F90.

71  real(RP), public, allocatable :: ATMOS_PHY_RD_SFLX_down (:,:,:,:) ! surface downward flux (LW/SW,direct/diffuse) [J/m2/s]

Referenced by mod_atmos_phy_rd_driver::atmos_phy_rd_driver_calc_tendency(), mod_atmos_phy_rd_driver::atmos_phy_rd_driver_setup(), atmos_phy_rd_vars_fillhalo(), atmos_phy_rd_vars_setup(), and mod_atmos_driver::atmos_surface_set().

◆ atmos_phy_rd_solins

real(rp), dimension (:,:), allocatable, public mod_atmos_phy_rd_vars::atmos_phy_rd_solins

Definition at line 73 of file mod_atmos_phy_rd_vars.F90.

73  real(RP), public, allocatable :: ATMOS_PHY_RD_solins (:,:) ! solar insolation flux [J/m2/s]

Referenced by mod_atmos_phy_rd_driver::atmos_phy_rd_driver_calc_tendency(), mod_atmos_phy_rd_driver::atmos_phy_rd_driver_setup(), and atmos_phy_rd_vars_setup().

◆ atmos_phy_rd_cossza

real(rp), dimension (:,:), allocatable, public mod_atmos_phy_rd_vars::atmos_phy_rd_cossza

Definition at line 74 of file mod_atmos_phy_rd_vars.F90.

74  real(RP), public, allocatable :: ATMOS_PHY_RD_cosSZA (:,:) ! cos(solar zenith angle) (0-1)

Referenced by mod_atmos_phy_rd_driver::atmos_phy_rd_driver_calc_tendency(), mod_atmos_phy_rd_driver::atmos_phy_rd_driver_setup(), atmos_phy_rd_vars_setup(), and mod_atmos_driver::atmos_surface_set().

mod_atmos_phy_rd_vars::atmos_phy_rd_sflx_down
real(rp), dimension(:,:,:,:), allocatable, public atmos_phy_rd_sflx_down
Definition: mod_atmos_phy_rd_vars.F90:71
scale_statistics
module Statistics
Definition: scale_statistics.F90:11
scale_prc::prc_abort
subroutine, public prc_abort
Abort Process.
Definition: scale_prc.F90:342
mod_atmos_phy_rd_vars::atmos_phy_rd_rhoh
real(rp), dimension(:,:,:), allocatable, public atmos_phy_rd_rhoh
Definition: mod_atmos_phy_rd_vars.F90:57
scale_file_cartesc::file_cartesc_enddef
subroutine, public file_cartesc_enddef(fid)
Exit netCDF file define mode.
Definition: scale_file_cartesC.F90:943
scale_file_cartesc::file_cartesc_def_var
subroutine, public file_cartesc_def_var(fid, varname, desc, unit, dim_type, datatype, vid, standard_name, timeintv, nsteps, cell_measures)
Define a variable to file.
Definition: scale_file_cartesC.F90:3307
mod_atmos_phy_rd_vars::atmos_phy_rd_tomflx_lw_dn
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_tomflx_lw_dn
Definition: mod_atmos_phy_rd_vars.F90:67
scale_atmos_grid_cartesc_real::atmos_grid_cartesc_real_totarea
real(rp), public atmos_grid_cartesc_real_totarea
total area (xy, local) [m2]
Definition: scale_atmos_grid_cartesC_real.F90:77
mod_atmos_phy_rd_vars::atmos_phy_rd_cossza
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_cossza
Definition: mod_atmos_phy_rd_vars.F90:74
mod_atmos_phy_rd_vars::atmos_phy_rd_tomflx_sw_up
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_tomflx_sw_up
Definition: mod_atmos_phy_rd_vars.F90:68
scale_atmos_grid_cartesc_real
module Atmosphere GRID CartesC Real(real space)
Definition: scale_atmos_grid_cartesC_real.F90:11
scale_file
module file
Definition: scale_file.F90:15
scale_prc
module PROCESS
Definition: scale_prc.F90:11
mod_atmos_phy_rd_vars::atmos_phy_rd_sflx_lw_dn
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_sflx_lw_dn
Definition: mod_atmos_phy_rd_vars.F90:61
mod_atmos_phy_rd_vars::atmos_phy_rd_sflx_sw_dn
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_sflx_sw_dn
Definition: mod_atmos_phy_rd_vars.F90:63
scale_const
module CONSTANT
Definition: scale_const.F90:11
mod_atmos_phy_rd_vars::atmos_phy_rd_sflx_sw_up
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_sflx_sw_up
Definition: mod_atmos_phy_rd_vars.F90:62
mod_atmos_phy_rd_vars::atmos_phy_rd_sflx_lw_up
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_sflx_lw_up
Definition: mod_atmos_phy_rd_vars.F90:60
scale_file_cartesc::file_cartesc_close
subroutine, public file_cartesc_close(fid)
Close a netCDF file.
Definition: scale_file_cartesC.F90:1023
scale_atmos_grid_cartesc_real::atmos_grid_cartesc_real_area
real(rp), dimension(:,:), allocatable, public atmos_grid_cartesc_real_area
horizontal area ( xy, normal z) [m2]
Definition: scale_atmos_grid_cartesC_real.F90:65
mod_atmos_phy_rd_vars::atmos_phy_rd_tomflx_sw_dn
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_tomflx_sw_dn
Definition: mod_atmos_phy_rd_vars.F90:69
scale_time
module TIME
Definition: scale_time.F90:11
mod_atmos_phy_rd_vars::atmos_phy_rd_tomflx_lw_up
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_tomflx_lw_up
Definition: mod_atmos_phy_rd_vars.F90:66
scale_file_cartesc::file_cartesc_create
subroutine, public file_cartesc_create(basename, title, datatype, fid, date, subsec, haszcoord, append, aggregate, single)
Create/open a netCDF file.
Definition: scale_file_cartesC.F90:780
scale_file_cartesc::file_cartesc_open
subroutine, public file_cartesc_open(basename, fid, aggregate)
open a netCDF file for read
Definition: scale_file_cartesC.F90:746
scale_file_cartesc::file_cartesc_flush
subroutine, public file_cartesc_flush(fid)
Flush all pending requests to a netCDF file (PnetCDF only)
Definition: scale_file_cartesC.F90:997
scale_time::time_gettimelabel
subroutine, public time_gettimelabel(timelabel)
generate time label
Definition: scale_time.F90:91
scale_comm_cartesc
module COMMUNICATION
Definition: scale_comm_cartesC.F90:11
scale_file::file_get_aggregate
logical function, public file_get_aggregate(fid)
Definition: scale_file.F90:4844
mod_atmos_phy_rd_vars::atmos_phy_rd_solins
real(rp), dimension(:,:), allocatable, public atmos_phy_rd_solins
Definition: mod_atmos_phy_rd_vars.F90:73
scale_const::const_undef
real(rp), public const_undef
Definition: scale_const.F90:41
scale_file_cartesc
module file / cartesianC
Definition: scale_file_cartesC.F90:11