Ignore:
Timestamp:
Jan 6, 2016, 12:37:41 PM (9 years ago)
Author:
Ehouarn Millour
Message:

Small modification in the way time and calendar are handled: Now all the time keeping is done in the physics and only the timestep is transfered from the dynamics to the physics. Due to changes in computations and roundoffs this will change reference bench results.
The implementation of this change in phymar is left as future work.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/phys_cal_mod.F90

    r2358 r2422  
    5252  END SUBROUTINE  phys_cal_init
    5353
    54   SUBROUTINE phys_cal_update(jD_cur, jH_cur)
     54  SUBROUTINE phys_cal_update(julian_date)
    5555    ! This subroutine updates the module saved variables.
    5656
    5757    USE IOIPSL, only: ju2ymds, ymds2ju, ioget_mon_len, ioget_year_len
    58    
    59     REAL, INTENT(IN) :: jD_cur ! jour courant a l'appel de la physique (jour julien)
    60     REAL, INTENT(IN) :: jH_cur ! heure courante a l'appel de la physique (jour julien)
     58    IMPLICIT NONE
     59    REAL, INTENT(IN) :: julian_date
     60
     61    jD_cur=INT(julian_date)
     62    jH_cur=julian_date-jD_cur
    6163   
    6264    CALL ju2ymds(jD_cur+jH_cur, year_cur, mth_cur, day_cur, hour)
     
    6870    days_elapsed = jD_cur - jD_1jan
    6971
    70     ! Get lenght of acutual month
     72    ! Get lenght of current month
    7173    mth_len = ioget_mon_len(year_cur,mth_cur)
    7274
     75    ! Get length of current year
    7376    year_len = ioget_year_len(year_cur)
    7477
Note: See TracChangeset for help on using the changeset viewer.