Ignore:
Timestamp:
May 21, 2025, 6:37:40 PM (3 weeks ago)
Author:
afalco
Message:

Pluto: allow to write controle in XIOS output.
AF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.PLUTO/libf/phypluto/phyetat0_mod.F90

    r3736 r3772  
    33implicit none
    44
    5 real, save :: tab_cntrl_mod(100)
    6 
    75integer,save :: nid_start ! NetCDF file identifier for startfi.nc file
    8 
    9 !$OMP THREADPRIVATE(tab_cntrl_mod)
    10 
    116
    127contains
     
    2621!!
    2722  use comsoil_h, only: nsoilmx,inertiedat
    28   use tabfi_mod, only: tabfi
     23  use tabfi_mod, only: tabfi,ini_tab_controle_dyn_xios,tab_cntrl_mod
    2924  USE tracer_h, ONLY: noms
    3025  USE surfdat_h, only: phisfi, albedodat, zmea, zstd, zsig, zgam, zthe
     
    282277    !AF24
    283278endif ! of if (startphy_file)
     279
     280call ini_tab_controle_dyn_xios(day_ini)
    284281!
    285282! close file:
     
    289286end subroutine phyetat0
    290287
    291 
    292 !======================================================================
    293 subroutine ini_tab_controle_dyn_xios(idayref)
    294 
    295 use comcstfi_mod,        only: g, mugaz, omeg, rad, rcp
    296 use time_phylmdz_mod,  only: daysec, dtphys
    297 use mod_grid_phy_lmdz, only: nbp_lon, nbp_lat, nbp_lev
    298 
    299 implicit none
    300 
    301 integer*4, intent(in) :: idayref ! date (initial date for this run)
    302 
    303 integer :: length, l
    304 parameter (length = 100)
    305 real    :: tab_cntrl(length) ! run parameters are stored in this array
    306 
    307 do l = 1,length
    308     tab_cntrl(l) = 0.
    309 enddo
    310 tab_cntrl(1)  = real(nbp_lon)
    311 tab_cntrl(2)  = real(nbp_lat-1)
    312 tab_cntrl(3)  = real(nbp_lev)
    313 tab_cntrl(4)  = real(idayref)
    314 tab_cntrl(5)  = rad
    315 tab_cntrl(6)  = omeg
    316 tab_cntrl(7)  = g
    317 tab_cntrl(8)  = mugaz
    318 tab_cntrl(9)  = rcp
    319 tab_cntrl(10) = daysec
    320 tab_cntrl(11) = dtphys
    321 
    322 tab_cntrl_mod = tab_cntrl
    323 
    324 end subroutine ini_tab_controle_dyn_xios
    325 
    326 
    327288end module phyetat0_mod
Note: See TracChangeset for help on using the changeset viewer.