Changeset 2333


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

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

Location:
trunk/LMDZ.MARS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r2332 r2333  
    30743074- libf/phymars/dyn1d:
    30753075  testphys1d.F: idem (the reading interface for traceur.def has been completed to fill the variables nqperes and nqfils).
     3076
     3077== 29/05/2020 == AD
     3078More outputs with xios from physics
     3079physics is now able to transmit soil fields to xios
  • trunk/LMDZ.MARS/libf/phymars/physiq_mod.F

    r2324 r2333  
    697697        write(*,*) "physiq firstcall: call initialize_xios_output"
    698698        call initialize_xios_output(pday,ptime,ptimestep,daysec,
    699      &                              presnivs,pseudoalt)
     699     &                              presnivs,pseudoalt,mlayer)
    700700#endif
    701701      ENDIF        !  (end of "if firstcall")
     
    37453745      CALL send_xios_field("ps",ps)
    37463746      CALL send_xios_field("area",cell_area)
     3747
     3748      CALL send_xios_field("ISR",fluxtop_sw_tot)
     3749      CALL send_xios_field("OLR",fluxtop_lw)
     3750
     3751      CALL send_xios_field("tsurf",tsurf)
     3752      CALL send_xios_field("inertiedat",inertiedat)
     3753      CALL send_xios_field("tsoil",tsoil)
     3754      CALL send_xios_field("co2ice",co2ice)
    37473755     
    37483756      CALL send_xios_field("temperature",zt)
    37493757      CALL send_xios_field("u",zu)
    37503758      CALL send_xios_field("v",zv)
     3759      !CREATE IF CO2CYCLE
     3760      !if (tracer.and.(igcm_co2.ne.0)) then
     3761      !   CALL send_xios_field("co2",zq(1,1,igcm_co2))
     3762      !endif
     3763
    37513764
    37523765      if (lastcall.and.is_omp_master) then
  • 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.