Changeset 2632 for trunk/LMDZ.GENERIC/libf/phystd/xios_output_mod.F90
- Timestamp:
- Mar 1, 2022, 11:52:00 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/xios_output_mod.F90
r1760 r2632 18 18 19 19 SUBROUTINE initialize_xios_output(day,timeofday,dtphys,daysec,& 20 presnivs,pseudoalt)20 yearday,presnivs,pseudoalt) 21 21 ! USE mod_phys_lmdz_para, only: gather, bcast, & 22 22 ! jj_nb, jj_begin, jj_end, ii_begin, ii_end, & … … 40 40 REAL,INTENT(IN) :: timeofday ! "Universal time", given as fraction of sol (e.g.: 0.5 for noon). 41 41 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) 43 44 REAL,INTENT(IN) :: presnivs(:) ! vertical grid approximate pressure (Pa) 44 45 REAL,INTENT(IN) :: pseudoalt(:) ! vertical grid approximate altitude (km) … … 104 105 write(lunout,*) "initialize_xios_output: build calendar" 105 106 endif 106 timestep%second= dtphys107 timestep%second=1 !dtphys 107 108 if (nint(dtphys).ne.dtphys) then 108 109 write(*,*) "initialize_xios_output: warning physics timestep is not an integer!" … … 115 116 CALL xios_define_calendar(type="user_defined", & 116 117 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]) 119 121 !NB: it would make more sense to define months and their length in the 120 122 ! xml files and not to have them hard coded here.... to be improved...
Note: See TracChangeset
for help on using the changeset viewer.