SCALE-RM
scale_time.F90
Go to the documentation of this file.
1 !-------------------------------------------------------------------------------
15 module scale_time
16  !-----------------------------------------------------------------------------
17  !
18  !++ used modules
19  !
20  use scale_precision
21  use scale_stdio
22  use scale_prof
23  !-----------------------------------------------------------------------------
24  implicit none
25  private
26  !-----------------------------------------------------------------------------
27  !
28  !++ Public procedure
29  !
30  public :: time_gettimelabel
31 
32  !-----------------------------------------------------------------------------
33  !
34  !++ Public parameters & variables
35  !
36  real(DP), public :: time_dtsec
37 
38  real(DP), public :: time_dtsec_atmos_dyn
39  integer, public :: time_nstep_atmos_dyn
40  real(DP), public :: time_dtsec_atmos_phy_cp
41  real(DP), public :: time_dtsec_atmos_phy_mp
42  real(DP), public :: time_dtsec_atmos_phy_rd
43  real(DP), public :: time_dtsec_atmos_phy_sf
44  real(DP), public :: time_dtsec_atmos_phy_tb
45  real(DP), public :: time_dtsec_atmos_phy_ch
46  real(DP), public :: time_dtsec_atmos_phy_ae
47  real(DP), public :: time_dtsec_ocean
48  real(DP), public :: time_dtsec_land
49  real(DP), public :: time_dtsec_urban
50  real(DP), public :: time_dtsec_wallclock_check
51 
52  integer, public :: time_dstep_atmos_dyn
53  integer, public :: time_dstep_atmos_phy_cp
54  integer, public :: time_dstep_atmos_phy_mp
55  integer, public :: time_dstep_atmos_phy_rd
56  integer, public :: time_dstep_atmos_phy_sf
57  integer, public :: time_dstep_atmos_phy_tb
58  integer, public :: time_dstep_atmos_phy_ch
59  integer, public :: time_dstep_atmos_phy_ae
60  integer, public :: time_dstep_ocean
61  integer, public :: time_dstep_land
62  integer, public :: time_dstep_urban
63  integer, public :: time_dstep_wallclock_check
64 
65  integer, public :: time_nowdate(6)
66  real(DP), public :: time_nowms
67  integer, public :: time_nowday
68  real(DP), public :: time_nowsec
69  real(DP), public :: time_nowdaysec
70  integer, public :: time_nowstep
71  integer, public :: time_nstep
72 
73  integer, public :: time_offset_year
74  real(DP), public :: time_startdaysec
75 
76  !-----------------------------------------------------------------------------
77  !
78  !++ Private procedure
79  !
80  !-----------------------------------------------------------------------------
81  !
82  !++ Private parameters & variables
83  !
84  !-----------------------------------------------------------------------------
85 contains
86  !-----------------------------------------------------------------------------
88  subroutine time_gettimelabel( &
89  timelabel )
90  implicit none
91 
92  character(len=*), intent(out) :: timelabel
93  !---------------------------------------------------------------------------
94 
95  ! YYYYMMDDhhmmss.sss
96  write(timelabel,'(I4.4,I2.2,I2.2,A1,I2.2,I2.2,I2.2,A1,I3.3)') &
97  time_nowdate(1:3), '-', time_nowdate(4:6), '.', int(time_nowms*1000.0_dp)
98 
99  return
100  end subroutine time_gettimelabel
101 
102 end module scale_time
103 !-------------------------------------------------------------------------------
integer, public time_nowstep
current step [number]
Definition: scale_time.F90:70
real(dp), public time_dtsec_ocean
time interval of ocean step [sec]
Definition: scale_time.F90:47
integer, public time_dstep_atmos_phy_mp
step interval of physics(microphysics)
Definition: scale_time.F90:54
real(dp), public time_dtsec_atmos_phy_rd
time interval of physics(radiation ) [sec]
Definition: scale_time.F90:42
integer, public time_nstep_atmos_dyn
small step of dynamics
Definition: scale_time.F90:39
real(dp), public time_nowms
subsecond part of current time [millisec]
Definition: scale_time.F90:66
real(dp), public time_nowsec
subday part of current time [sec]
Definition: scale_time.F90:68
integer, public time_nstep
total steps [number]
Definition: scale_time.F90:71
real(dp), public time_dtsec_atmos_phy_mp
time interval of physics(microphysics) [sec]
Definition: scale_time.F90:41
real(dp), public time_dtsec_atmos_phy_ch
time interval of physics(chemistry ) [sec]
Definition: scale_time.F90:45
integer, public time_dstep_atmos_dyn
step interval of dynamics
Definition: scale_time.F90:52
real(dp), public time_nowdaysec
second of current time [sec]
Definition: scale_time.F90:69
module STDIO
Definition: scale_stdio.F90:12
real(dp), public time_startdaysec
second of start time [sec]
Definition: scale_time.F90:74
integer, public time_nowday
absolute day of current time [day]
Definition: scale_time.F90:67
integer, public time_dstep_urban
step interval of urban step
Definition: scale_time.F90:62
real(dp), public time_dtsec_land
time interval of land step [sec]
Definition: scale_time.F90:48
integer, public time_dstep_wallclock_check
step interval of wallclock terminator
Definition: scale_time.F90:63
integer, public time_dstep_ocean
step interval of ocean step
Definition: scale_time.F90:60
real(dp), public time_dtsec
time interval of model [sec]
Definition: scale_time.F90:36
subroutine, public time_gettimelabel(timelabel)
generate time label
Definition: scale_time.F90:90
integer, public time_dstep_atmos_phy_sf
step interval of physics(surface flux)
Definition: scale_time.F90:56
integer, public time_offset_year
time offset [year]
Definition: scale_time.F90:73
integer, public time_dstep_atmos_phy_tb
step interval of physics(turbulence )
Definition: scale_time.F90:57
real(dp), public time_dtsec_wallclock_check
time interval of wallclock terminator [sec]
Definition: scale_time.F90:50
integer, public time_dstep_atmos_phy_rd
step interval of physics(radiation )
Definition: scale_time.F90:55
module TIME
Definition: scale_time.F90:15
real(dp), public time_dtsec_atmos_dyn
time interval of dynamics [sec]
Definition: scale_time.F90:38
real(dp), public time_dtsec_atmos_phy_sf
time interval of physics(surface flux) [sec]
Definition: scale_time.F90:43
real(dp), public time_dtsec_atmos_phy_tb
time interval of physics(turbulence ) [sec]
Definition: scale_time.F90:44
integer, public time_dstep_land
step interval of land step
Definition: scale_time.F90:61
real(dp), public time_dtsec_atmos_phy_ae
time interval of physics(aerosol ) [sec]
Definition: scale_time.F90:46
integer, public time_dstep_atmos_phy_cp
step interval of physics(cumulus )
Definition: scale_time.F90:53
real(dp), public time_dtsec_atmos_phy_cp
time interval of physics(cumulus ) [sec]
Definition: scale_time.F90:40
integer, public time_dstep_atmos_phy_ae
step interval of physics(aerosol )
Definition: scale_time.F90:59
integer, public time_dstep_atmos_phy_ch
step interval of physics(chemistry )
Definition: scale_time.F90:58
module profiler
Definition: scale_prof.F90:10
module PRECISION
integer, dimension(6), public time_nowdate
current time [YYYY MM DD HH MM SS]
Definition: scale_time.F90:65
real(dp), public time_dtsec_urban
time interval of urban step [sec]
Definition: scale_time.F90:49