Ignore:
Timestamp:
May 4, 2021, 10:23:43 AM (4 years ago)
Author:
romain.vande
Message:

Mars Dynamico : _ update of r2507: correct ztime_fin for dynamico

_ Test for no writting Diagfi for Dynamico
_ Correction for Xios output : Change of calendar : start_date=0 as a diagfi, timestep for output physic=1s, day_length=ndtphys, it is needed to have output in days in the xml to have the correct time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/xios_output_mod.F90

    r2333 r2514  
    104104     write(lunout,*) "initialize_xios_output: build calendar"
    105105    endif
    106     timestep%second=dtphys
     106    timestep%second=1
    107107    if (nint(dtphys).ne.dtphys) then
    108108      write(*,*) "initialize_xios_output: warning physics timestep is not an integer!"
    109       timestep%second=nint(dtphys)
    110109    endif
    111110    if (nint(daysec).ne.daysec) then
     
    116115    CALL xios_define_calendar(type="user_defined", &
    117116                              timestep=timestep, &
    118                               day_length=nint(daysec), &
     117                              day_length=nint(daysec/dtphys), &
    119118                              month_lengths=[61,66,66,65,60,54,50,46,47,47,51,56])
    120119    !NB: it would make more sense to define months and their length in the
     
    130129    ! Now define the start time of this simulation
    131130    ! NB: we substract dtphys because we want to set the origin of the time axis
    132     start_date=time_origin+xios_duration(0,0,day,0,0,timeofday*daysec-dtphys)
     131    start_date=time_origin
    133132    call xios_set_start_date(start_date=start_date)
    134133    if (prt_level>=10) then
Note: See TracChangeset for help on using the changeset viewer.