Ignore:
Timestamp:
May 29, 2020, 9:46:23 AM (4 years ago)
Author:
adelavois
Message:

More outputs with xios from physics
physics is now able to transmit soil fields to xios

File:
1 edited

Legend:

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

    r2223 r2333  
    1818
    1919  SUBROUTINE initialize_xios_output(day,timeofday,dtphys,daysec,&
    20                                     presnivs,pseudoalt)
     20                                    presnivs,pseudoalt,mlayer)
    2121  USE mod_phys_lmdz_para, ONLY: jj_nb, jj_begin, jj_end, ii_begin, ii_end, &
    2222                                mpi_size, mpi_rank, klon_mpi, &
     
    3939  REAL,INTENT(IN) :: presnivs(:) ! vertical grid approximate pressure (Pa)
    4040  REAL,INTENT(IN) :: pseudoalt(:) ! vertical grid approximate altitude (km)
     41  REAL,INTENT(IN) :: mlayer(:) ! soil layer depth at intermediate level (m)
    4142 
    4243 
     
    5657    CALL xios_set_axis_attr("altitude", n_glo=size(pseudoalt), value=pseudoalt,&
    5758                            unit="km",positive="up")
     59    IF (prt_level>=10) WRITE(lunout,*) "initialize_xios_output: call xios_set_axis_attr for soil"
     60    CALL xios_set_axis_attr("soil_layers", n_glo=size(mlayer), value=mlayer,&
     61                            unit="m",positive="down")
    5862   
    5963    ! 2. Declare horizontal domain
Note: See TracChangeset for help on using the changeset viewer.