Changeset 477a094 in flexpart.git


Ignore:
Timestamp:
Jul 27, 2020, 10:52:49 AM (4 years ago)
Author:
pesei <petra.seibert at univie.ac.at>
Branches:
10.4.1_pesei, bugfixes+enhancements, release-10.4.1, scaling-bug
Children:
17c3c47
Parents:
3405994
Message:

Modified caldate.f90 to avoid output of hhmiss as 240000
(will become 000000 with date addjusted), see ticket:281

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/caldate.f90

    r92fab65 r477a094  
    2727  !     igreg          help constant                                           *
    2828  !                                                                            *
     29  !     PS 2020-07-27: add a check to avoid giving back 240000 for hhmiss      *
     30  !                                                                            *
    2931  !*****************************************************************************
    3032
     
    3941
    4042  julday=int(juldate)
     43! PS check to avoid 240000 as hhmiss: 
     44  if ((xjuldate-julday)*86400._dp .ge. 86399.5_dp) then
     45    juldate = juldate + juldate-julday-86399.5_dp/86400._dp
     46    julday=int(juldate)
     47  end
    4148  if(julday.ge.igreg)then
    4249    jalpha=int(((julday-1867216)-0.25)/36524.25)
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG