Ignore:
Timestamp:
Mar 1, 2022, 11:52:00 PM (3 years ago)
Author:
dbardet
Message:

adding length of a standard year (in days) as input of xios_output_mod to set an integer timestep for output files writing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/xios_output_mod.F90

    r1760 r2632  
    1818
    1919  SUBROUTINE initialize_xios_output(day,timeofday,dtphys,daysec,&
    20                                     presnivs,pseudoalt)
     20                                    yearday,presnivs,pseudoalt)
    2121!  USE mod_phys_lmdz_para, only: gather, bcast, &
    2222!                                jj_nb, jj_begin, jj_end, ii_begin, ii_end, &
     
    4040  REAL,INTENT(IN) :: timeofday ! "Universal time", given as fraction of sol (e.g.: 0.5 for noon).
    4141  REAL,INTENT(IN) :: dtphys ! physics time step (s)
    42   REAL,INTENT(IN) :: daysec ! lengthof a standard day (s)
     42  REAL,INTENT(IN) :: daysec ! length of a standard day (s)
     43  REAL,INTENT(IN) :: yearday ! length of a standard year (day)
    4344  REAL,INTENT(IN) :: presnivs(:) ! vertical grid approximate pressure (Pa)
    4445  REAL,INTENT(IN) :: pseudoalt(:) ! vertical grid approximate altitude (km)
     
    104105     write(lunout,*) "initialize_xios_output: build calendar"
    105106    endif
    106     timestep%second=dtphys
     107    timestep%second=1 !dtphys
    107108    if (nint(dtphys).ne.dtphys) then
    108109      write(*,*) "initialize_xios_output: warning physics timestep is not an integer!"
     
    115116    CALL xios_define_calendar(type="user_defined", &
    116117                              timestep=timestep, &
    117                               day_length=nint(daysec), &
    118                               month_lengths=[30,30,30,30,30,30,30,30,30,30,30,30])
     118                              day_length=nint(daysec/dtphys), &
     119                              month_lengths=[int(yearday)])
     120                              !month_lengths=[30,30,30,30,30,30,30,30,30,30,30,30])
    119121    !NB: it would make more sense to define months and their length in the
    120122    ! xml files and not to have them hard coded here.... to be improved...
Note: See TracChangeset for help on using the changeset viewer.