Ignore:
Timestamp:
Apr 5, 2016, 4:29:27 PM (8 years ago)
Author:
Ehouarn Millour
Message:

Fix calendar issue in outputs when in 1D.
EM+MPL+LF

File:
1 edited

Legend:

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

    r2380 r2491  
    3939    USE ioipsl
    4040    USE phys_cal_mod, only : hour, calend
     41    USE time_phylmdz_mod   : pdtphys
    4142    USE mod_phys_lmdz_para
    4243    USE aero_mod, only : naero_spc,name_aero
     
    255256     idayref = day_ref
    256257     IF (klon_glo==1) THEN
    257          CALL ymds2ju(annee_ref, 1, idayref, hour, zjulian)     !jyg
     258       ! current_time (used to compute hour) is updated at the begining of
     259       ! the physics; to set the correct outputs "initial time" we thus
     260       ! have to use (hour-dtphys).
     261         CALL ymds2ju(annee_ref, 1, idayref, hour-pdtphys, zjulian)
     262         print *,'phys_output_mod: annee,iday,hour,zjulian=',annee_ref,idayref, hour, zjulian
    258263     ELSE
    259264         CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian)
Note: See TracChangeset for help on using the changeset viewer.