SCALE-RM
Functions/Subroutines | Variables
scale_time Module Reference

module TIME More...

Functions/Subroutines

subroutine, public time_gettimelabel (timelabel)
 generate time label More...
 
subroutine, public time_time2label (date, subsec, timelabel)
 generate time label More...
 

Variables

real(dp), public time_dtsec
 time interval of model [sec] More...
 
real(dp), public time_dtsec_atmos_dyn
 time interval of dynamics [sec] More...
 
integer, public time_nstep_atmos_dyn
 small step of dynamics More...
 
real(dp), public time_dtsec_atmos_phy_cp
 time interval of physics(cumulus ) [sec] More...
 
real(dp), public time_dtsec_atmos_phy_mp
 time interval of physics(microphysics) [sec] More...
 
real(dp), public time_dtsec_atmos_phy_rd
 time interval of physics(radiation ) [sec] More...
 
real(dp), public time_dtsec_atmos_phy_sf
 time interval of physics(surface flux) [sec] More...
 
real(dp), public time_dtsec_atmos_phy_tb
 time interval of physics(turbulence ) [sec] More...
 
real(dp), public time_dtsec_atmos_phy_bl
 time interval of physics(pbl ) [sec] More...
 
real(dp), public time_dtsec_atmos_phy_ch
 time interval of physics(chemistry ) [sec] More...
 
real(dp), public time_dtsec_atmos_phy_ae
 time interval of physics(aerosol ) [sec] More...
 
real(dp), public time_dtsec_atmos_phy_lt
 time interval of physics(lightning ) [sec] More...
 
real(dp), public time_dtsec_ocean
 time interval of ocean step [sec] More...
 
real(dp), public time_dtsec_land
 time interval of land step [sec] More...
 
real(dp), public time_dtsec_urban
 time interval of urban step [sec] More...
 
real(dp), public time_dtsec_wallclock_check
 time interval of wallclock terminator [sec] More...
 
integer, public time_dstep_atmos_dyn
 step interval of dynamics More...
 
integer, public time_dstep_atmos_phy_cp
 step interval of physics(cumulus ) More...
 
integer, public time_dstep_atmos_phy_mp
 step interval of physics(microphysics) More...
 
integer, public time_dstep_atmos_phy_rd
 step interval of physics(radiation ) More...
 
integer, public time_dstep_atmos_phy_sf
 step interval of physics(surface flux) More...
 
integer, public time_dstep_atmos_phy_tb
 step interval of physics(turbulence ) More...
 
integer, public time_dstep_atmos_phy_bl
 step interval of physics(pbl ) More...
 
integer, public time_dstep_atmos_phy_ch
 step interval of physics(chemistry ) More...
 
integer, public time_dstep_atmos_phy_ae
 step interval of physics(aerosol ) More...
 
integer, public time_dstep_atmos_phy_lt
 step interval of physics(lightning ) More...
 
integer, public time_dstep_ocean
 step interval of ocean step More...
 
integer, public time_dstep_land
 step interval of land step More...
 
integer, public time_dstep_urban
 step interval of urban step More...
 
integer, public time_dstep_wallclock_check
 step interval of wallclock terminator More...
 
integer, dimension(6), public time_nowdate
 current time [YYYY MM DD HH MM SS] More...
 
integer, public time_nowday
 absolute day of current time [day] More...
 
real(dp), public time_nowsec
 subday part of current time [sec] More...
 
real(dp), public time_nowsubsec
 subsecond part of current time [sec] More...
 
real(dp), public time_nowdaysec
 second of current time [sec] More...
 
integer, public time_nowstep
 current step [number] More...
 
integer, public time_nstep
 total steps [number] More...
 
integer, public time_offset_year
 time offset [year] More...
 
real(dp), public time_startdaysec
 second of start time [sec] More...
 

Detailed Description

module TIME

Description
general module for date/time
Author
Team SCALE

Function/Subroutine Documentation

◆ time_gettimelabel()

subroutine, public scale_time::time_gettimelabel ( character(len=19), intent(out)  timelabel)

generate time label

Definition at line 91 of file scale_time.F90.

91  implicit none
92 
93  character(len=19), intent(out) :: timelabel
94  !---------------------------------------------------------------------------
95 
96  ! YYYYMMDD-hhmmss.sss
97  call time_time2label( time_nowdate(:), time_nowsubsec, & ! [IN]
98  timelabel ) ! [OUT]
99 
100  return

References time_nowdate, time_nowsubsec, and time_time2label().

Referenced by mod_atmos_dyn_vars::atmos_dyn_vars_restart_create(), mod_atmos_dyn_vars::atmos_dyn_vars_restart_open(), mod_atmos_phy_ae_vars::atmos_phy_ae_vars_restart_create(), mod_atmos_phy_ae_vars::atmos_phy_ae_vars_restart_open(), mod_atmos_phy_bl_vars::atmos_phy_bl_vars_restart_create(), mod_atmos_phy_bl_vars::atmos_phy_bl_vars_restart_open(), mod_atmos_phy_ch_vars::atmos_phy_ch_vars_restart_create(), mod_atmos_phy_ch_vars::atmos_phy_ch_vars_restart_open(), mod_atmos_phy_cp_vars::atmos_phy_cp_vars_restart_create(), mod_atmos_phy_cp_vars::atmos_phy_cp_vars_restart_open(), mod_atmos_phy_lt_vars::atmos_phy_lt_vars_restart_create(), mod_atmos_phy_lt_vars::atmos_phy_lt_vars_restart_open(), mod_atmos_phy_mp_vars::atmos_phy_mp_vars_restart_create(), mod_atmos_phy_mp_vars::atmos_phy_mp_vars_restart_open(), mod_atmos_phy_rd_vars::atmos_phy_rd_vars_restart_create(), mod_atmos_phy_rd_vars::atmos_phy_rd_vars_restart_open(), mod_atmos_phy_sf_vars::atmos_phy_sf_vars_restart_create(), mod_atmos_phy_sf_vars::atmos_phy_sf_vars_restart_open(), mod_atmos_phy_tb_vars::atmos_phy_tb_vars_restart_create(), mod_atmos_phy_tb_vars::atmos_phy_tb_vars_restart_open(), mod_atmos_vars::atmos_vars_restart_create(), mod_atmos_vars::atmos_vars_restart_open(), mod_land_vars::land_vars_restart_create(), mod_land_vars::land_vars_restart_open(), mod_ocean_vars::ocean_vars_restart_create(), mod_ocean_vars::ocean_vars_restart_open(), mod_realinput::realinput_atmos(), mod_realinput::realinput_surface(), mod_urban_vars::urban_vars_restart_create(), and mod_urban_vars::urban_vars_restart_open().

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

◆ time_time2label()

subroutine, public scale_time::time_time2label ( integer, dimension(6), intent(in)  date,
real(dp), intent(in)  subsec,
character(len=*), intent(out)  timelabel 
)

generate time label

Definition at line 107 of file scale_time.F90.

107  implicit none
108 
109  integer, intent(in) :: date(6)
110  real(DP), intent(in) :: subsec
111 
112  character(len=*), intent(out) :: timelabel
113  !---------------------------------------------------------------------------
114 
115  ! YYYYMMDD-hhmmss.sss
116  write(timelabel,'(I4.4,I2.2,I2.2,A1,I2.2,I2.2,I2.2,A1,I3.3)') &
117  date(1:3), '-', date(4:6), '.', int(subsec*1000.0_dp)
118 
119  return

Referenced by scale_file_history::file_history_finalize(), and time_gettimelabel().

Here is the caller graph for this function:

Variable Documentation

◆ time_dtsec

real(dp), public scale_time::time_dtsec

◆ time_dtsec_atmos_dyn

real(dp), public scale_time::time_dtsec_atmos_dyn

time interval of dynamics [sec]

Definition at line 35 of file scale_time.F90.

35  real(DP), public :: TIME_DTSEC_ATMOS_DYN

Referenced by mod_admin_time::admin_time_setup(), mod_atmos_dyn_driver::atmos_dyn_driver(), mod_atmos_dyn_driver::atmos_dyn_driver_setup(), and mod_atmos_vars::atmos_vars_check().

◆ time_nstep_atmos_dyn

integer, public scale_time::time_nstep_atmos_dyn

small step of dynamics

Definition at line 36 of file scale_time.F90.

36  integer, public :: TIME_NSTEP_ATMOS_DYN

Referenced by mod_admin_time::admin_time_setup().

◆ time_dtsec_atmos_phy_cp

real(dp), public scale_time::time_dtsec_atmos_phy_cp

time interval of physics(cumulus ) [sec]

Definition at line 37 of file scale_time.F90.

37  real(DP), public :: TIME_DTSEC_ATMOS_PHY_CP

Referenced by mod_admin_time::admin_time_setup(), mod_atmos_phy_cp_driver::atmos_phy_cp_driver_calc_tendency(), and mod_atmos_phy_cp_driver::atmos_phy_cp_driver_setup().

◆ time_dtsec_atmos_phy_mp

real(dp), public scale_time::time_dtsec_atmos_phy_mp

time interval of physics(microphysics) [sec]

Definition at line 38 of file scale_time.F90.

38  real(DP), public :: TIME_DTSEC_ATMOS_PHY_MP

Referenced by mod_admin_time::admin_time_setup(), mod_atmos_phy_mp_driver::atmos_phy_mp_driver_calc_tendency(), and mod_atmos_phy_mp_driver::atmos_phy_mp_driver_setup().

◆ time_dtsec_atmos_phy_rd

real(dp), public scale_time::time_dtsec_atmos_phy_rd

time interval of physics(radiation ) [sec]

Definition at line 39 of file scale_time.F90.

39  real(DP), public :: TIME_DTSEC_ATMOS_PHY_RD

Referenced by mod_admin_time::admin_time_setup().

◆ time_dtsec_atmos_phy_sf

real(dp), public scale_time::time_dtsec_atmos_phy_sf

time interval of physics(surface flux) [sec]

Definition at line 40 of file scale_time.F90.

40  real(DP), public :: TIME_DTSEC_ATMOS_PHY_SF

Referenced by mod_admin_time::admin_time_setup(), and mod_atmos_phy_sf_driver::atmos_phy_sf_driver_calc_tendency().

◆ time_dtsec_atmos_phy_tb

real(dp), public scale_time::time_dtsec_atmos_phy_tb

time interval of physics(turbulence ) [sec]

Definition at line 41 of file scale_time.F90.

41  real(DP), public :: TIME_DTSEC_ATMOS_PHY_TB

Referenced by mod_admin_time::admin_time_setup(), and mod_atmos_phy_tb_driver::atmos_phy_tb_driver_calc_tendency().

◆ time_dtsec_atmos_phy_bl

real(dp), public scale_time::time_dtsec_atmos_phy_bl

time interval of physics(pbl ) [sec]

Definition at line 42 of file scale_time.F90.

42  real(DP), public :: TIME_DTSEC_ATMOS_PHY_BL

Referenced by mod_admin_time::admin_time_setup(), and mod_atmos_phy_bl_driver::atmos_phy_bl_driver_calc_tendency().

◆ time_dtsec_atmos_phy_ch

real(dp), public scale_time::time_dtsec_atmos_phy_ch

time interval of physics(chemistry ) [sec]

Definition at line 43 of file scale_time.F90.

43  real(DP), public :: TIME_DTSEC_ATMOS_PHY_CH

Referenced by mod_admin_time::admin_time_setup(), and mod_atmos_phy_ch_driver::atmos_phy_ch_driver_calc_tendency().

◆ time_dtsec_atmos_phy_ae

real(dp), public scale_time::time_dtsec_atmos_phy_ae

time interval of physics(aerosol ) [sec]

Definition at line 44 of file scale_time.F90.

44  real(DP), public :: TIME_DTSEC_ATMOS_PHY_AE

Referenced by mod_admin_time::admin_time_setup(), and mod_atmos_phy_ae_driver::atmos_phy_ae_driver_calc_tendency().

◆ time_dtsec_atmos_phy_lt

real(dp), public scale_time::time_dtsec_atmos_phy_lt

time interval of physics(lightning ) [sec]

Definition at line 45 of file scale_time.F90.

45  real(DP), public :: TIME_DTSEC_ATMOS_PHY_LT

Referenced by mod_admin_time::admin_time_setup(), mod_atmos_phy_lt_driver::atmos_phy_lt_driver_adjustment(), and mod_atmos_phy_mp_driver::atmos_phy_mp_driver_calc_tendency().

◆ time_dtsec_ocean

real(dp), public scale_time::time_dtsec_ocean

time interval of ocean step [sec]

Definition at line 46 of file scale_time.F90.

46  real(DP), public :: TIME_DTSEC_OCEAN

Referenced by mod_admin_time::admin_time_setup(), mod_ocean_driver::ocean_driver_calc_tendency(), and mod_ocean_driver::ocean_driver_update().

◆ time_dtsec_land

real(dp), public scale_time::time_dtsec_land

time interval of land step [sec]

Definition at line 47 of file scale_time.F90.

47  real(DP), public :: TIME_DTSEC_LAND

Referenced by mod_admin_time::admin_time_setup(), mod_land_driver::land_driver_calc_tendency(), and mod_land_driver::land_driver_update().

◆ time_dtsec_urban

real(dp), public scale_time::time_dtsec_urban

time interval of urban step [sec]

Definition at line 48 of file scale_time.F90.

48  real(DP), public :: TIME_DTSEC_URBAN

Referenced by mod_admin_time::admin_time_setup(), mod_urban_driver::urban_driver_calc_tendency(), and mod_urban_driver::urban_driver_update().

◆ time_dtsec_wallclock_check

real(dp), public scale_time::time_dtsec_wallclock_check

time interval of wallclock terminator [sec]

Definition at line 49 of file scale_time.F90.

49  real(DP), public :: TIME_DTSEC_WALLCLOCK_CHECK

Referenced by mod_admin_time::admin_time_setup().

◆ time_dstep_atmos_dyn

integer, public scale_time::time_dstep_atmos_dyn

step interval of dynamics

Definition at line 51 of file scale_time.F90.

51  integer, public :: TIME_DSTEP_ATMOS_DYN

Referenced by mod_admin_time::admin_time_checkstate(), and mod_admin_time::admin_time_setup().

◆ time_dstep_atmos_phy_cp

integer, public scale_time::time_dstep_atmos_phy_cp

step interval of physics(cumulus )

Definition at line 52 of file scale_time.F90.

52  integer, public :: TIME_DSTEP_ATMOS_PHY_CP

Referenced by mod_admin_time::admin_time_checkstate(), and mod_admin_time::admin_time_setup().

◆ time_dstep_atmos_phy_mp

integer, public scale_time::time_dstep_atmos_phy_mp

step interval of physics(microphysics)

Definition at line 53 of file scale_time.F90.

53  integer, public :: TIME_DSTEP_ATMOS_PHY_MP

Referenced by mod_admin_time::admin_time_checkstate(), and mod_admin_time::admin_time_setup().

◆ time_dstep_atmos_phy_rd

integer, public scale_time::time_dstep_atmos_phy_rd

step interval of physics(radiation )

Definition at line 54 of file scale_time.F90.

54  integer, public :: TIME_DSTEP_ATMOS_PHY_RD

Referenced by mod_admin_time::admin_time_checkstate(), and mod_admin_time::admin_time_setup().

◆ time_dstep_atmos_phy_sf

integer, public scale_time::time_dstep_atmos_phy_sf

step interval of physics(surface flux)

Definition at line 55 of file scale_time.F90.

55  integer, public :: TIME_DSTEP_ATMOS_PHY_SF

Referenced by mod_admin_time::admin_time_checkstate(), and mod_admin_time::admin_time_setup().

◆ time_dstep_atmos_phy_tb

integer, public scale_time::time_dstep_atmos_phy_tb

step interval of physics(turbulence )

Definition at line 56 of file scale_time.F90.

56  integer, public :: TIME_DSTEP_ATMOS_PHY_TB

Referenced by mod_admin_time::admin_time_checkstate(), and mod_admin_time::admin_time_setup().

◆ time_dstep_atmos_phy_bl

integer, public scale_time::time_dstep_atmos_phy_bl

step interval of physics(pbl )

Definition at line 57 of file scale_time.F90.

57  integer, public :: TIME_DSTEP_ATMOS_PHY_BL

Referenced by mod_admin_time::admin_time_checkstate(), and mod_admin_time::admin_time_setup().

◆ time_dstep_atmos_phy_ch

integer, public scale_time::time_dstep_atmos_phy_ch

step interval of physics(chemistry )

Definition at line 58 of file scale_time.F90.

58  integer, public :: TIME_DSTEP_ATMOS_PHY_CH

Referenced by mod_admin_time::admin_time_checkstate(), and mod_admin_time::admin_time_setup().

◆ time_dstep_atmos_phy_ae

integer, public scale_time::time_dstep_atmos_phy_ae

step interval of physics(aerosol )

Definition at line 59 of file scale_time.F90.

59  integer, public :: TIME_DSTEP_ATMOS_PHY_AE

Referenced by mod_admin_time::admin_time_checkstate(), and mod_admin_time::admin_time_setup().

◆ time_dstep_atmos_phy_lt

integer, public scale_time::time_dstep_atmos_phy_lt

step interval of physics(lightning )

Definition at line 60 of file scale_time.F90.

60  integer, public :: TIME_DSTEP_ATMOS_PHY_LT

Referenced by mod_admin_time::admin_time_checkstate(), and mod_admin_time::admin_time_setup().

◆ time_dstep_ocean

integer, public scale_time::time_dstep_ocean

step interval of ocean step

Definition at line 61 of file scale_time.F90.

61  integer, public :: TIME_DSTEP_OCEAN

Referenced by mod_admin_time::admin_time_checkstate(), and mod_admin_time::admin_time_setup().

◆ time_dstep_land

integer, public scale_time::time_dstep_land

step interval of land step

Definition at line 62 of file scale_time.F90.

62  integer, public :: TIME_DSTEP_LAND

Referenced by mod_admin_time::admin_time_checkstate(), and mod_admin_time::admin_time_setup().

◆ time_dstep_urban

integer, public scale_time::time_dstep_urban

step interval of urban step

Definition at line 63 of file scale_time.F90.

63  integer, public :: TIME_DSTEP_URBAN

Referenced by mod_admin_time::admin_time_checkstate(), and mod_admin_time::admin_time_setup().

◆ time_dstep_wallclock_check

integer, public scale_time::time_dstep_wallclock_check

step interval of wallclock terminator

Definition at line 64 of file scale_time.F90.

64  integer, public :: TIME_DSTEP_WALLCLOCK_CHECK

Referenced by mod_admin_time::admin_time_advance(), and mod_admin_time::admin_time_setup().

◆ time_nowdate

integer, dimension(6), public scale_time::time_nowdate

◆ time_nowday

integer, public scale_time::time_nowday

absolute day of current time [day]

Definition at line 67 of file scale_time.F90.

67  integer, public :: TIME_NOWDAY

Referenced by mod_admin_time::admin_time_advance(), and mod_admin_time::admin_time_setup().

◆ time_nowsec

real(dp), public scale_time::time_nowsec

subday part of current time [sec]

Definition at line 68 of file scale_time.F90.

68  real(DP), public :: TIME_NOWSEC

Referenced by mod_admin_time::admin_time_advance(), mod_admin_time::admin_time_setup(), and scale_atmos_phy_sf_const::atmos_phy_sf_const_flux().

◆ time_nowsubsec

real(dp), public scale_time::time_nowsubsec

◆ time_nowdaysec

real(dp), public scale_time::time_nowdaysec

◆ time_nowstep

integer, public scale_time::time_nowstep

◆ time_nstep

integer, public scale_time::time_nstep

◆ time_offset_year

integer, public scale_time::time_offset_year

◆ time_startdaysec

real(dp), public scale_time::time_startdaysec
scale_time::time_nowsubsec
real(dp), public time_nowsubsec
subsecond part of current time [sec]
Definition: scale_time.F90:69
scale_time::time_nowdate
integer, dimension(6), public time_nowdate
current time [YYYY MM DD HH MM SS]
Definition: scale_time.F90:66