SCALE-RM
mod_atmos_phy_rd_vars.F90
Go to the documentation of this file.
1 !-------------------------------------------------------------------------------
10 !-------------------------------------------------------------------------------
11 #include "scalelib.h"
13  !-----------------------------------------------------------------------------
14  !
15  !++ used modules
16  !
17  use scale_precision
18  use scale_io
19  use scale_prof
20  use scale_debug
22  use scale_tracer
24  !-----------------------------------------------------------------------------
25  implicit none
26  private
27  !-----------------------------------------------------------------------------
28  !
29  !++ Public procedure
30  !
31  public :: atmos_phy_rd_vars_setup
36 
42 
43  !-----------------------------------------------------------------------------
44  !
45  !++ Public parameters & variables
46  !
47  logical, public :: atmos_phy_rd_restart_output = .false.
48 
49  character(len=H_LONG), public :: atmos_phy_rd_restart_in_basename = ''
51  logical, public :: atmos_phy_rd_restart_in_postfix_timelabel = .false.
52  character(len=H_LONG), public :: atmos_phy_rd_restart_out_basename = ''
54  logical, public :: atmos_phy_rd_restart_out_postfix_timelabel = .true.
55  character(len=H_MID), public :: atmos_phy_rd_restart_out_title = 'ATMOS_PHY_RD restart'
56  character(len=H_SHORT), public :: atmos_phy_rd_restart_out_dtype = 'DEFAULT'
57 
58  real(rp), public, allocatable :: atmos_phy_rd_rhoh(:,:,:) ! diavatic heating rate [J/m3/s]
59 
60  ! surface
61  real(rp), public, allocatable :: atmos_phy_rd_sflx_lw_up (:,:) ! upward longwave flux [J/m2/s]
62  real(rp), public, allocatable :: atmos_phy_rd_sflx_lw_dn (:,:) ! downward longwave flux [J/m2/s]
63  real(rp), public, allocatable :: atmos_phy_rd_sflx_sw_up (:,:) ! upward shortwave flux [J/m2/s]
64  real(rp), public, allocatable :: atmos_phy_rd_sflx_sw_dn (:,:) ! downward shortwave flux [J/m2/s]
65 
66  ! TOM (top of the model)
67  real(rp), public, allocatable :: atmos_phy_rd_tomflx_lw_up(:,:) ! upward longwave flux [J/m2/s]
68  real(rp), public, allocatable :: atmos_phy_rd_tomflx_lw_dn(:,:) ! downward longwave flux [J/m2/s]
69  real(rp), public, allocatable :: atmos_phy_rd_tomflx_sw_up(:,:) ! upward shortwave flux [J/m2/s]
70  real(rp), public, allocatable :: atmos_phy_rd_tomflx_sw_dn(:,:) ! downward shortwave flux [J/m2/s]
71 
72  real(rp), public, allocatable :: atmos_phy_rd_sflx_down (:,:,:,:) ! surface downward flux (LW/SW,direct/diffuse) [J/m2/s]
73 
74  real(rp), public, allocatable :: atmos_phy_rd_solins (:,:) ! solar insolation flux [J/m2/s]
75  real(rp), public, allocatable :: atmos_phy_rd_cossza (:,:) ! cos(solar zenith angle) (0-1)
76 
77  !-----------------------------------------------------------------------------
78  !
79  !++ Private procedure
80  !
81  !-----------------------------------------------------------------------------
82  !
83  !++ Private parameters & variables
84  !
85 
86  ! restart variables
87  integer, private, parameter :: vmax = 4
88  integer, private, parameter :: i_sflx_lw_up = 1
89  integer, private, parameter :: i_sflx_lw_dn = 2
90  integer, private, parameter :: i_sflx_sw_up = 3
91  integer, private, parameter :: i_sflx_sw_dn = 4
92 
93  character(len=H_SHORT), private :: var_name(vmax)
94  character(len=H_MID), private :: var_desc(vmax)
95  character(len=H_MID), private :: var_stdn(vmax)
96  character(len=H_SHORT), private :: var_unit(vmax)
97  integer, private :: var_id(vmax)
98  integer, private :: restart_fid = -1 ! file ID
99 
100  data var_name / 'SFLX_LW_up', &
101  'SFLX_LW_dn', &
102  'SFLX_SW_up', &
103  'SFLX_SW_dn' /
104  data var_desc / 'surface upward longwave flux', &
105  'surface downward longwave flux', &
106  'surface upward shortwave flux', &
107  'surface downward shortwave flux' /
108  data var_stdn / 'surface_upwelling_longwave_flux_in_air', &
109  'surface_downwelling_longwave_flux_in_air', &
110  'surface_upwelling_shortwave_flux_in_air', &
111  'surface_downwelling_shortwave_flux_in_air' /
112  data var_unit / 'W/m2', &
113  'W/m2', &
114  'W/m2', &
115  'W/m2' /
116 
117  !-----------------------------------------------------------------------------
118 contains
119  !-----------------------------------------------------------------------------
121  subroutine atmos_phy_rd_vars_setup
122  use scale_prc, only: &
123  prc_abort
124  use scale_const, only: &
125  undef => const_undef
126  implicit none
127 
128  namelist / param_atmos_phy_rd_vars / &
138 
139  integer :: ierr
140  integer :: iv
141  !---------------------------------------------------------------------------
142 
143  log_newline
144  log_info("ATMOS_PHY_RD_vars_setup",*) 'Setup'
145 
146  allocate( atmos_phy_rd_rhoh(ka,ia,ja) )
147  atmos_phy_rd_rhoh(:,:,:) = undef
148  !$acc enter data create(ATMOS_PHY_RD_RHOH)
149 
150  allocate( atmos_phy_rd_sflx_lw_up(ia,ja) )
151  allocate( atmos_phy_rd_sflx_lw_dn(ia,ja) )
152  allocate( atmos_phy_rd_sflx_sw_up(ia,ja) )
153  allocate( atmos_phy_rd_sflx_sw_dn(ia,ja) )
154  atmos_phy_rd_sflx_lw_up(:,:) = undef
155  atmos_phy_rd_sflx_lw_dn(:,:) = undef
156  atmos_phy_rd_sflx_sw_up(:,:) = undef
157  atmos_phy_rd_sflx_sw_dn(:,:) = undef
158  !$acc enter data create(ATMOS_PHY_RD_SFLX_LW_up,ATMOS_PHY_RD_SFLX_LW_dn,ATMOS_PHY_RD_SFLX_SW_up,ATMOS_PHY_RD_SFLX_SW_dn)
159 
160  allocate( atmos_phy_rd_tomflx_lw_up(ia,ja) )
161  allocate( atmos_phy_rd_tomflx_lw_dn(ia,ja) )
162  allocate( atmos_phy_rd_tomflx_sw_up(ia,ja) )
163  allocate( atmos_phy_rd_tomflx_sw_dn(ia,ja) )
164  atmos_phy_rd_tomflx_lw_up(:,:) = undef
165  atmos_phy_rd_tomflx_lw_dn(:,:) = undef
166  atmos_phy_rd_tomflx_sw_up(:,:) = undef
167  atmos_phy_rd_tomflx_sw_dn(:,:) = undef
168  !$acc enter data create(ATMOS_PHY_RD_TOMFLX_LW_up,ATMOS_PHY_RD_TOMFLX_LW_dn,ATMOS_PHY_RD_TOMFLX_SW_up,ATMOS_PHY_RD_TOMFLX_SW_dn)
169 
171  atmos_phy_rd_sflx_down(:,:,:,:) = undef
172  !$acc enter data create(ATMOS_PHY_RD_SFLX_down)
173 
174  allocate( atmos_phy_rd_solins(ia,ja) )
175  allocate( atmos_phy_rd_cossza(ia,ja) )
176  atmos_phy_rd_solins(:,:) = undef
177  atmos_phy_rd_cossza(:,:) = undef
178  !$acc enter data create(ATMOS_PHY_RD_solins,ATMOS_PHY_RD_cosSZA)
179 
180  !--- read namelist
181  rewind(io_fid_conf)
182  read(io_fid_conf,nml=param_atmos_phy_rd_vars,iostat=ierr)
183  if( ierr < 0 ) then !--- missing
184  log_info("ATMOS_PHY_RD_vars_setup",*) 'Not found namelist. Default used.'
185  elseif( ierr > 0 ) then !--- fatal error
186  log_error("ATMOS_PHY_RD_vars_setup",*) 'Not appropriate names in namelist PARAM_ATMOS_PHY_RD_VARS. Check!'
187  call prc_abort
188  endif
189  log_nml(param_atmos_phy_rd_vars)
190 
191  log_newline
192  log_info("ATMOS_PHY_RD_vars_setup",*) '[ATMOS_PHY_RD] prognostic/diagnostic variables'
193  log_info_cont('(1x,A,A24,A,A48,A,A12,A)') &
194  ' |', 'VARNAME ','|', &
195  'DESCRIPTION ', '[', 'UNIT ', ']'
196  do iv = 1, vmax
197  log_info_cont('(1x,A,I3,A,A24,A,A48,A,A12,A)') &
198  'NO.',iv,'|',var_name(iv),'|',var_desc(iv),'[',var_unit(iv),']'
199  enddo
200 
201  log_newline
202  if ( atmos_phy_rd_restart_in_basename /= '' ) then
203  log_info("ATMOS_PHY_RD_vars_setup",*) 'Restart input? : YES, file = ', trim(atmos_phy_rd_restart_in_basename)
204  log_info("ATMOS_PHY_RD_vars_setup",*) 'Add timelabel? : ', atmos_phy_rd_restart_in_postfix_timelabel
205  else
206  log_info("ATMOS_PHY_RD_vars_setup",*) 'Restart input? : NO'
207  endif
209  .AND. atmos_phy_rd_restart_out_basename /= '' ) then
210  log_info("ATMOS_PHY_RD_vars_setup",*) 'Restart output? : YES, file = ', trim(atmos_phy_rd_restart_out_basename)
211  log_info("ATMOS_PHY_RD_vars_setup",*) 'Add timelabel? : ', atmos_phy_rd_restart_out_postfix_timelabel
212  else
213  log_info("ATMOS_PHY_RD_vars_setup",*) 'Restart output? : NO'
215  endif
216 
217  return
218  end subroutine atmos_phy_rd_vars_setup
219 
220  !-----------------------------------------------------------------------------
222  subroutine atmos_phy_rd_vars_finalize
223  implicit none
224  !---------------------------------------------------------------------------
225 
226  log_newline
227  log_info("ATMOS_PHY_RD_vars_finalize",*) 'Finalize'
228 
229  !$acc exit data delete(ATMOS_PHY_RD_RHOH)
230  deallocate( atmos_phy_rd_rhoh )
231 
232  !$acc exit data delete(ATMOS_PHY_RD_SFLX_LW_up,ATMOS_PHY_RD_SFLX_LW_dn,ATMOS_PHY_RD_SFLX_SW_up,ATMOS_PHY_RD_SFLX_SW_dn)
233  deallocate( atmos_phy_rd_sflx_lw_up )
234  deallocate( atmos_phy_rd_sflx_lw_dn )
235  deallocate( atmos_phy_rd_sflx_sw_up )
236  deallocate( atmos_phy_rd_sflx_sw_dn )
237 
238  !$acc exit data delete(ATMOS_PHY_RD_TOMFLX_LW_up,ATMOS_PHY_RD_TOMFLX_LW_dn,ATMOS_PHY_RD_TOMFLX_SW_up,ATMOS_PHY_RD_TOMFLX_SW_dn)
239  deallocate( atmos_phy_rd_tomflx_lw_up )
240  deallocate( atmos_phy_rd_tomflx_lw_dn )
241  deallocate( atmos_phy_rd_tomflx_sw_up )
242  deallocate( atmos_phy_rd_tomflx_sw_dn )
243 
244  !$acc exit data delete(ATMOS_PHY_RD_SFLX_down)
245  deallocate( atmos_phy_rd_sflx_down )
246 
247  !$acc exit data delete(ATMOS_PHY_RD_solins,ATMOS_PHY_RD_cosSZA)
248  deallocate( atmos_phy_rd_solins )
249  deallocate( atmos_phy_rd_cossza )
250 
251  return
252  end subroutine atmos_phy_rd_vars_finalize
253 
254  !-----------------------------------------------------------------------------
256  subroutine atmos_phy_rd_vars_fillhalo
257  use scale_comm_cartesc, only: &
258  comm_vars8, &
259  comm_wait
260  implicit none
261 
262  integer :: n ,idir, irgn
263  !---------------------------------------------------------------------------
264 
265  call comm_vars8( atmos_phy_rd_sflx_lw_up(:,:), 1 )
266  call comm_vars8( atmos_phy_rd_sflx_lw_dn(:,:), 2 )
267  call comm_vars8( atmos_phy_rd_sflx_sw_up(:,:), 3 )
268  call comm_vars8( atmos_phy_rd_sflx_sw_dn(:,:), 4 )
269  call comm_vars8( atmos_phy_rd_tomflx_lw_up(:,:), 5 )
270  call comm_vars8( atmos_phy_rd_tomflx_lw_dn(:,:), 6 )
271  call comm_vars8( atmos_phy_rd_tomflx_sw_up(:,:), 7 )
272  call comm_vars8( atmos_phy_rd_tomflx_sw_dn(:,:), 8 )
273 
274  n = 8
275  do irgn = i_r_ir, i_r_vis
276  do idir = i_r_direct, i_r_diffuse
277  n = n + 1
278  call comm_vars8( atmos_phy_rd_sflx_down(:,:,idir,irgn), n )
279  enddo
280  enddo
281 
282  call comm_wait ( atmos_phy_rd_sflx_lw_up(:,:), 1 )
283  call comm_wait ( atmos_phy_rd_sflx_lw_dn(:,:), 2 )
284  call comm_wait ( atmos_phy_rd_sflx_sw_up(:,:), 3 )
285  call comm_wait ( atmos_phy_rd_sflx_sw_dn(:,:), 4 )
286  call comm_wait ( atmos_phy_rd_tomflx_lw_up(:,:), 5 )
287  call comm_wait ( atmos_phy_rd_tomflx_lw_dn(:,:), 6 )
288  call comm_wait ( atmos_phy_rd_tomflx_sw_up(:,:), 7 )
289  call comm_wait ( atmos_phy_rd_tomflx_sw_dn(:,:), 8 )
290 
291  n = 8
292  do irgn = i_r_ir, i_r_vis
293  do idir = i_r_direct, i_r_diffuse
294  n = n + 1
295  call comm_wait ( atmos_phy_rd_sflx_down(:,:,idir,irgn), n )
296  enddo
297  enddo
298 
299  return
300  end subroutine atmos_phy_rd_vars_fillhalo
301 
302  !-----------------------------------------------------------------------------
305  use scale_time, only: &
307  use scale_file_cartesc, only: &
309  implicit none
310 
311  character(len=19) :: timelabel
312  character(len=H_LONG) :: basename
313  !---------------------------------------------------------------------------
314 
315  log_newline
316  log_info("ATMOS_PHY_RD_vars_restart_open",*) 'Open restart file (ATMOS_PHY_RD) '
317 
318  if ( atmos_phy_rd_restart_in_basename /= '' ) then
319 
321  call time_gettimelabel( timelabel )
322  basename = trim(atmos_phy_rd_restart_in_basename)//'_'//trim(timelabel)
323  else
324  basename = trim(atmos_phy_rd_restart_in_basename)
325  endif
326 
327  log_info("ATMOS_PHY_RD_vars_restart_open",*) 'basename: ', trim(basename)
328 
329  call file_cartesc_open( basename, restart_fid, aggregate=atmos_phy_rd_restart_in_aggregate )
330  else
331  log_info("ATMOS_PHY_RD_vars_restart_open",*) 'restart file for ATMOS_PHY_RD is not specified.'
332  endif
333 
334  return
335  end subroutine atmos_phy_rd_vars_restart_open
336 
337  !-----------------------------------------------------------------------------
340  use scale_file, only: &
342  use scale_file_cartesc, only: &
343  file_cartesc_read, &
345  implicit none
346  !---------------------------------------------------------------------------
347 
348  if ( restart_fid /= -1 ) then
349  log_newline
350  log_info("ATMOS_PHY_RD_vars_restart_read",*) 'Read from restart file (ATMOS_PHY_RD) '
351 
352  call file_cartesc_read( restart_fid, var_name(i_sflx_lw_up), 'XY', & ! [IN]
353  atmos_phy_rd_sflx_lw_up(:,:) ) ! [OUT]
354  call file_cartesc_read( restart_fid, var_name(i_sflx_lw_dn), 'XY', & ! [IN]
355  atmos_phy_rd_sflx_lw_dn(:,:) ) ! [OUT]
356  call file_cartesc_read( restart_fid, var_name(i_sflx_sw_up), 'XY', & ! [IN]
357  atmos_phy_rd_sflx_sw_up(:,:) ) ! [OUT]
358  call file_cartesc_read( restart_fid, var_name(i_sflx_sw_dn), 'XY', & ! [IN]
359  atmos_phy_rd_sflx_sw_dn(:,:) ) ! [OUT]
360 
361  if ( file_get_aggregate(restart_fid) ) then
362  call file_cartesc_flush( restart_fid ) ! X/Y halos have been read from file
363  !$acc update device(ATMOS_PHY_RD_SFLX_LW_up,ATMOS_PHY_RD_SFLX_LW_dn,ATMOS_PHY_RD_SFLX_SW_up,ATMOS_PHY_RD_SFLX_SW_dn)
364  else
366  end if
367 
369 
370  else
371  log_info("ATMOS_PHY_RD_vars_restart_read",*) 'invalid restart file ID for ATMOS_PHY_RD.'
372  endif
373 
374  return
375  end subroutine atmos_phy_rd_vars_restart_read
376 
377  !-----------------------------------------------------------------------------
380  use scale_time, only: &
382  use scale_file_cartesc, only: &
384  implicit none
385 
386  character(len=19) :: timelabel
387  character(len=H_LONG) :: basename
388  !---------------------------------------------------------------------------
389 
390  if ( atmos_phy_rd_restart_out_basename /= '' ) then
391 
392  log_newline
393  log_info("ATMOS_PHY_RD_vars_restart_create",*) 'Create restart file (ATMOS_PHY_AE) '
394 
396  call time_gettimelabel( timelabel )
397  basename = trim(atmos_phy_rd_restart_out_basename)//'_'//trim(timelabel)
398  else
399  basename = trim(atmos_phy_rd_restart_out_basename)
400  endif
401 
402  log_info("ATMOS_PHY_RD_vars_restart_create",*) 'basename: ', trim(basename)
403 
404  call file_cartesc_create( &
406  restart_fid, & ! [OUT]
407  aggregate=atmos_phy_rd_restart_out_aggregate ) ! [IN]
408 
409  endif
410 
411  return
412  end subroutine atmos_phy_rd_vars_restart_create
413 
414  !-----------------------------------------------------------------------------
417  use scale_file_cartesc, only: &
419  implicit none
420 
421  if ( restart_fid /= -1 ) then
422  call file_cartesc_enddef( restart_fid ) ! [IN]
423  endif
424 
425  return
426  end subroutine atmos_phy_rd_vars_restart_enddef
427 
428  !-----------------------------------------------------------------------------
431  use scale_file_cartesc, only: &
433  implicit none
434  !---------------------------------------------------------------------------
435 
436  if ( restart_fid /= -1 ) then
437  log_newline
438  log_info("ATMOS_PHY_RD_vars_restart_close",*) 'Close restart file (ATMOS_PHY_RD) '
439 
440  call file_cartesc_close( restart_fid ) ! [IN]
441 
442  restart_fid = -1
443  endif
444 
445  return
446  end subroutine atmos_phy_rd_vars_restart_close
447 
448  !-----------------------------------------------------------------------------
451  use scale_file_cartesc, only: &
453  implicit none
454 
455  integer :: i
456  !---------------------------------------------------------------------------
457 
458  if ( restart_fid /= -1 ) then
459 
460  do i = 1, vmax
461  call file_cartesc_def_var( restart_fid, & ! [IN]
462  var_name(i), var_desc(i), var_unit(i), & ! [IN]
463  'XY', atmos_phy_rd_restart_out_dtype, & ! [IN]
464  var_id(i), & ! [OUT]
465  standard_name=var_stdn(i) ) ! [IN]
466  end do
467  endif
468 
469  return
470  end subroutine atmos_phy_rd_vars_restart_def_var
471 
472  !-----------------------------------------------------------------------------
475  use scale_file_cartesc, only: &
476  file_cartesc_write_var
477  implicit none
478  !---------------------------------------------------------------------------
479 
480  if ( restart_fid /= -1 ) then
481 
483 
485 
486  call file_cartesc_write_var( restart_fid, var_id(i_sflx_lw_up), & ! [IN]
487  atmos_phy_rd_sflx_lw_up(:,:), & ! [IN]
488  var_name(i_sflx_lw_up), 'XY' ) ! [IN]
489  call file_cartesc_write_var( restart_fid, var_id(i_sflx_lw_dn), & ! [IN]
490  atmos_phy_rd_sflx_lw_dn(:,:), & ! [IN]
491  var_name(i_sflx_lw_dn), 'XY' ) ! [IN]
492  call file_cartesc_write_var( restart_fid, var_id(i_sflx_sw_up), & ! [IN]
493  atmos_phy_rd_sflx_sw_up(:,:), & ! [IN]
494  var_name(i_sflx_sw_up), 'XY' ) ! [IN]
495  call file_cartesc_write_var( restart_fid, var_id(i_sflx_sw_dn), & ! [IN]
496  atmos_phy_rd_sflx_sw_dn(:,:), & ! [IN]
497  var_name(i_sflx_sw_dn), 'XY' ) ! [IN]
498 
499  endif
500 
501  return
502  end subroutine atmos_phy_rd_vars_restart_write
503 
504  !-----------------------------------------------------------------------------
505  subroutine atmos_phy_rd_vars_check
506  use scale_statistics, only: &
507  statistics_total
508  use scale_atmos_grid_cartesc_real, only: &
511  implicit none
512  !---------------------------------------------------------------------------
513 
514  call valcheck( ia, is, ie, ja, js, je, &
515  atmos_phy_rd_sflx_lw_up(:,:), & ! (in)
516  0.0_rp, 1.0e4_rp, var_name(i_sflx_lw_up), & ! (in)
517  __file__, __line__ ) ! (in)
518  call valcheck( ia, is, ie, ja, js, je, &
519  atmos_phy_rd_sflx_lw_dn(:,:), & ! (in)
520  0.0_rp, 1.0e4_rp, var_name(i_sflx_lw_dn), & ! (in)
521  __file__, __line__ ) ! (in)
522  call valcheck( ia, is, ie, ja, js, je, &
523  atmos_phy_rd_sflx_sw_up(:,:), & ! (in)
524  0.0_rp, 1.0e4_rp, var_name(i_sflx_sw_up), & ! (in)
525  __file__, __line__ ) ! (in)
526  call valcheck( ia, is, ie, ja, js, je, &
527  atmos_phy_rd_sflx_sw_dn(:,:), & ! (in)
528  0.0_rp, 1.0e4_rp, var_name(i_sflx_sw_dn), & ! (in)
529  __file__, __line__ ) ! (in)
530 
531  call statistics_total( ia, is, ie, ja, js, je, & ! [IN]
532  atmos_phy_rd_sflx_lw_up(:,:), & ! [IN]
533  var_name(i_sflx_lw_up), & ! [IN]
534  atmos_grid_cartesc_real_area(:,:), & ! [IN]
536  call statistics_total( ia, is, ie, ja, js, je, & ! [IN]
537  atmos_phy_rd_sflx_lw_dn(:,:), & ! [IN]
538  var_name(i_sflx_lw_dn), & ! [IN]
539  atmos_grid_cartesc_real_area(:,:), & ! [IN]
541  call statistics_total( ia, is, ie, ja, js, je, & ! [IN]
542  atmos_phy_rd_sflx_sw_up(:,:), & ! [IN]
543  var_name(i_sflx_sw_up), & ! [IN]
544  atmos_grid_cartesc_real_area(:,:), & ! [IN]
546  call statistics_total( ia, is, ie, ja, js, je, & ! [IN]
547  atmos_phy_rd_sflx_sw_dn(:,:), & ! [IN]
548  var_name(i_sflx_sw_dn), & ! [IN]
549  atmos_grid_cartesc_real_area(:,:), & ! [IN]
551 
552  return
553  end subroutine atmos_phy_rd_vars_check
554 
555 end module mod_atmos_phy_rd_vars
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:72
scale_cpl_sfc_index::n_rad_dir
integer, parameter, public n_rad_dir
Definition: scale_cpl_sfc_index.F90:36
scale_statistics
module Statistics
Definition: scale_statistics.F90:11
mod_atmos_phy_rd_vars::atmos_phy_rd_vars_restart_create
subroutine, public atmos_phy_rd_vars_restart_create
Create restart file.
Definition: mod_atmos_phy_rd_vars.F90:380
mod_atmos_phy_rd_vars::atmos_phy_rd_restart_out_postfix_timelabel
logical, public atmos_phy_rd_restart_out_postfix_timelabel
Add timelabel to the basename of output file?
Definition: mod_atmos_phy_rd_vars.F90:54
scale_prc::prc_abort
subroutine, public prc_abort
Abort Process.
Definition: scale_prc.F90:350
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:58
scale_cpl_sfc_index::i_r_direct
integer, parameter, public i_r_direct
Definition: scale_cpl_sfc_index.F90:37
mod_atmos_phy_rd_vars::atmos_phy_rd_restart_in_postfix_timelabel
logical, public atmos_phy_rd_restart_in_postfix_timelabel
Add timelabel to the basename of input file?
Definition: mod_atmos_phy_rd_vars.F90:51
mod_atmos_phy_rd_vars::atmos_phy_rd_vars_restart_close
subroutine, public atmos_phy_rd_vars_restart_close
Close restart file.
Definition: mod_atmos_phy_rd_vars.F90:431
scale_file_cartesc::file_cartesc_enddef
subroutine, public file_cartesc_enddef(fid)
Exit netCDF file define mode.
Definition: scale_file_cartesC.F90:964
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:3360
scale_cpl_sfc_index::i_r_diffuse
integer, parameter, public i_r_diffuse
Definition: scale_cpl_sfc_index.F90:38
scale_precision
module PRECISION
Definition: scale_precision.F90:14
scale_atmos_grid_cartesc_index::ka
integer, public ka
Definition: scale_atmos_grid_cartesC_index.F90:47
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:68
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:78
mod_atmos_phy_rd_vars::atmos_phy_rd_restart_in_basename
character(len=h_long), public atmos_phy_rd_restart_in_basename
Basename of the input file.
Definition: mod_atmos_phy_rd_vars.F90:49
scale_cpl_sfc_index::i_r_ir
integer, parameter, public i_r_ir
Definition: scale_cpl_sfc_index.F90:29
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:75
mod_atmos_phy_rd_vars::atmos_phy_rd_vars_restart_open
subroutine, public atmos_phy_rd_vars_restart_open
Open restart file for read.
Definition: mod_atmos_phy_rd_vars.F90:305
mod_atmos_phy_rd_vars::atmos_phy_rd_restart_out_title
character(len=h_mid), public atmos_phy_rd_restart_out_title
title of the output file
Definition: mod_atmos_phy_rd_vars.F90:55
mod_atmos_phy_rd_vars
module Atmosphere / Physics Radiation
Definition: mod_atmos_phy_rd_vars.F90:12
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:69
mod_atmos_phy_rd_vars::atmos_phy_rd_vars_check
subroutine atmos_phy_rd_vars_check
Definition: mod_atmos_phy_rd_vars.F90:506
scale_atmos_grid_cartesc_real
module Atmosphere GRID CartesC Real(real space)
Definition: scale_atmos_grid_cartesC_real.F90:11
mod_atmos_phy_rd_vars::atmos_phy_rd_vars_finalize
subroutine, public atmos_phy_rd_vars_finalize
Finalize.
Definition: mod_atmos_phy_rd_vars.F90:223
scale_file
module file
Definition: scale_file.F90:15
mod_atmos_phy_rd_vars::atmos_phy_rd_restart_out_aggregate
logical, public atmos_phy_rd_restart_out_aggregate
Switch to use aggregate file.
Definition: mod_atmos_phy_rd_vars.F90:53
scale_prc
module PROCESS
Definition: scale_prc.F90:11
scale_precision::rp
integer, parameter, public rp
Definition: scale_precision.F90:41
scale_atmos_grid_cartesc_index::ie
integer, public ie
end point of inner domain: x, local
Definition: scale_atmos_grid_cartesC_index.F90:54
scale_io
module STDIO
Definition: scale_io.F90:10
mod_atmos_phy_rd_vars::atmos_phy_rd_restart_in_aggregate
logical, public atmos_phy_rd_restart_in_aggregate
Switch to use aggregate file.
Definition: mod_atmos_phy_rd_vars.F90:50
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:62
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:64
mod_atmos_phy_rd_vars::atmos_phy_rd_restart_out_basename
character(len=h_long), public atmos_phy_rd_restart_out_basename
Basename of the output file.
Definition: mod_atmos_phy_rd_vars.F90:52
scale_atmos_grid_cartesc_index
module atmosphere / grid / cartesC index
Definition: scale_atmos_grid_cartesC_index.F90:12
scale_const
module CONSTANT
Definition: scale_const.F90:11
scale_atmos_grid_cartesc_index::ia
integer, public ia
Definition: scale_atmos_grid_cartesC_index.F90:48
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:63
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:61
mod_atmos_phy_rd_vars::atmos_phy_rd_vars_restart_def_var
subroutine, public atmos_phy_rd_vars_restart_def_var
Define variables in restart file.
Definition: mod_atmos_phy_rd_vars.F90:451
mod_atmos_phy_rd_vars::atmos_phy_rd_vars_restart_write
subroutine, public atmos_phy_rd_vars_restart_write
Write variables to restart file.
Definition: mod_atmos_phy_rd_vars.F90:475
scale_file_cartesc::file_cartesc_close
subroutine, public file_cartesc_close(fid)
Close a netCDF file.
Definition: scale_file_cartesC.F90:1044
mod_atmos_phy_rd_vars::atmos_phy_rd_restart_output
logical, public atmos_phy_rd_restart_output
output restart file?
Definition: mod_atmos_phy_rd_vars.F90:47
scale_prof
module profiler
Definition: scale_prof.F90:11
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:66
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:70
scale_atmos_grid_cartesc_index::is
integer, public is
start point of inner domain: x, local
Definition: scale_atmos_grid_cartesC_index.F90:53
scale_atmos_grid_cartesc_index::ja
integer, public ja
Definition: scale_atmos_grid_cartesC_index.F90:49
scale_time
module TIME
Definition: scale_time.F90:11
scale_tracer
module TRACER
Definition: scale_tracer.F90:12
mod_atmos_phy_rd_vars::atmos_phy_rd_vars_setup
subroutine, public atmos_phy_rd_vars_setup
Setup.
Definition: mod_atmos_phy_rd_vars.F90:122
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:67
mod_atmos_phy_rd_vars::atmos_phy_rd_vars_restart_read
subroutine, public atmos_phy_rd_vars_restart_read
Read restart.
Definition: mod_atmos_phy_rd_vars.F90:340
scale_debug
module DEBUG
Definition: scale_debug.F90:11
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:796
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:1018
scale_time::time_gettimelabel
subroutine, public time_gettimelabel(timelabel)
generate time label
Definition: scale_time.F90:93
scale_comm_cartesc
module COMMUNICATION
Definition: scale_comm_cartesC.F90:11
scale_cpl_sfc_index
module coupler / surface-atmospehre
Definition: scale_cpl_sfc_index.F90:11
scale_atmos_grid_cartesc_index::js
integer, public js
start point of inner domain: y, local
Definition: scale_atmos_grid_cartesC_index.F90:55
scale_cpl_sfc_index::i_r_vis
integer, parameter, public i_r_vis
Definition: scale_cpl_sfc_index.F90:31
scale_file::file_get_aggregate
logical function, public file_get_aggregate(fid)
Definition: scale_file.F90:6316
scale_file_cartesc::file_cartesc_open
subroutine, public file_cartesc_open(basename, fid, single, aggregate)
open a netCDF file for read
Definition: scale_file_cartesC.F90:760
mod_atmos_phy_rd_vars::atmos_phy_rd_restart_out_dtype
character(len=h_short), public atmos_phy_rd_restart_out_dtype
REAL4 or REAL8.
Definition: mod_atmos_phy_rd_vars.F90:56
mod_atmos_phy_rd_vars::atmos_phy_rd_vars_restart_enddef
subroutine, public atmos_phy_rd_vars_restart_enddef
Exit netCDF define mode.
Definition: mod_atmos_phy_rd_vars.F90:417
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:74
mod_atmos_phy_rd_vars::atmos_phy_rd_vars_fillhalo
subroutine, public atmos_phy_rd_vars_fillhalo
HALO Communication.
Definition: mod_atmos_phy_rd_vars.F90:257
scale_cpl_sfc_index::n_rad_rgn
integer, parameter, public n_rad_rgn
Definition: scale_cpl_sfc_index.F90:28
scale_const::const_undef
real(rp), public const_undef
Definition: scale_const.F90:43
scale_io::io_fid_conf
integer, public io_fid_conf
Config file ID.
Definition: scale_io.F90:57
scale_atmos_grid_cartesc_index::je
integer, public je
end point of inner domain: y, local
Definition: scale_atmos_grid_cartesC_index.F90:56
scale_file_cartesc
module file / cartesianC
Definition: scale_file_cartesC.F90:11