Definition at line 69 of file mod_time.f90.
◆ modulo_time()
type(time) function mod_time::mod::modulo_time |
( |
type(time), intent(in) |
A, |
|
|
type(time), intent(in) |
B |
|
) |
| |
Definition at line 177 of file mod_time.f90.
179 TYPE(TIME),
INTENT(IN) ::A,B
180 real(DP) :: DPA,DPB,DIV,CNT
192 IF(
abs(div) .GT. 1e5_dp) cnt = log10(
abs(div))
194 IF(
abs(div) .GT. 1e16_dp)
THEN 208 ELSE IF(
abs(a) .LT.
abs(b))
THEN 212 ELSE IF(
abs(a) .EQ.
abs(b))
THEN 216 ELSE IF (a .GT. zt .and. b .GT. zt)
THEN 219 t = b * int((div-cnt),
itime)
220 DO WHILE (a .GE. t+b)
225 ELSE IF(a .LT. zt .and. b .LT. zt)
THEN 228 t = b * int((div-cnt),
itime)
233 ELSE IF (a .LT. zt .and. b .GT. zt)
THEN 236 t = b * int((div+cnt),
itime)
242 ELSE IF (a .GT. zt .and. b .LT. zt)
THEN 245 t = b * int((div+cnt),
itime)
type(time) function modulo_time(A, B)
real(dp) function days(MJD)
The documentation for this interface was generated from the following file: