61 |
integer ierr |
integer ierr |
62 |
|
|
63 |
c == end of interface == |
c == end of interface == |
64 |
|
c print *,'cal_toseconds: date',date |
65 |
|
c print *,'cal_toseconds: timeint',timeint |
66 |
|
|
67 |
check_sign_1 = sign(1,date(1)) |
check_sign_1 = sign(1,date(1)) |
68 |
check_sign_2 = sign(1,date(2)) |
check_sign_2 = sign(1,date(2)) |
69 |
if ((date(4) .eq. -1) .and. |
if (((date(4) .eq. -1) .and. |
70 |
& (date(3) .eq. 0) .and. |
& (date(3) .eq. 0) .and. |
71 |
& (check_sign_1*check_sign_2 .ge. 0)) then |
& (check_sign_1*check_sign_2 .ge. 0)) .or. |
72 |
|
& usingModelCalendar) then |
73 |
if ((date(1) .lt. 0) .or. |
if ((date(1) .lt. 0) .or. |
74 |
& (date(2) .lt. 0)) then |
& (date(2) .lt. 0)) then |
75 |
ndays = -date(1) |
ndays = -date(1) |