Ignore:
Timestamp:
Oct 14, 2016, 2:57:28 PM (8 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes r2640:2664 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/libf/phylmd/phys_output_write_mod.F90

    r2641 r2669  
    2424    ! defined and initialised in phys_output_mod.F90
    2525
    26     USE dimphy, only: klon, klev, klevp1, nslay
     26    USE dimphy, only: klon, klev, klevp1
    2727    USE mod_phys_lmdz_para, ONLY: is_north_pole_phy,is_south_pole_phy
    2828    USE mod_grid_phy_lmdz, ONLY : nbp_lon, nbp_lat
     
    8989         o_slab_qflux, o_tslab, o_slab_bils, &
    9090         o_slab_bilg, o_slab_sic, o_slab_tice, &
     91         o_slab_hdiff, o_slab_ekman, &
    9192         o_weakinv, o_dthmin, o_cldtau, &
    9293         o_cldemi, o_pr_con_l, o_pr_con_i, &
     
    291292 
    292293
    293     USE ocean_slab_mod, only: tslab, slab_bils, slab_bilg, tice, seaice
     294    USE ocean_slab_mod, only: nslay, tslab, slab_bils, slab_bilg, tice, &
     295        seaice, slab_ekman,slab_hdiff, dt_ekman, dt_hdiff
    294296    USE pbl_surface_mod, only: snow
    295297    USE indice_sol_mod, only: nbsrf
     
    312314    USE phys_cal_mod, only : mth_len
    313315
     316#ifdef CPP_RRTM
     317    USE YOESW, ONLY : RSUN
     318#endif
    314319
    315320    IMPLICIT NONE
     
    355360#endif
    356361    REAL, PARAMETER :: un_jour=86400.
     362    INTEGER ISW
     363    CHARACTER*1 ch1
    357364
    358365    ! On calcul le nouveau tau:
     
    403410       CALL histwrite_phy(o_contfracOR, pctsrf(:,is_ter))
    404411       CALL histwrite_phy(o_aireTER, paire_ter)
     412!
     413#ifdef CPP_XIOS
     414       CALL histwrite_phy("R_ecc",R_ecc)
     415       CALL histwrite_phy("R_peri",R_peri)
     416       CALL histwrite_phy("R_incl",R_incl)
     417       CALL histwrite_phy("solaire",solaire)
     418!
     419#ifdef CPP_RRTM
     420      IF (iflag_rrtm.EQ.1) THEN
     421        DO ISW=1, NSW
     422          WRITE(ch1,'(i1)') ISW
     423!         zx_tmp_0d=RSUN(ISW)
     424!         CALL histwrite_phy("rsun"//ch1,zx_tmp_0d)
     425          CALL histwrite_phy("rsun"//ch1,RSUN(ISW))
     426        ENDDO
     427      ENDIF
     428#endif
     429!
     430       CALL histwrite_phy("co2_ppm",co2_ppm)
     431       CALL histwrite_phy("CH4_ppb",CH4_ppb)
     432       CALL histwrite_phy("N2O_ppb",N2O_ppb)
     433       CALL histwrite_phy("CFC11_ppt",CFC11_ppt)
     434       CALL histwrite_phy("CFC12_ppt",CFC12_ppt)
     435!
     436#endif
     437
    405438!!! Champs 2D !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    406439! Simulateur AIRS
     
    951984              CALL histwrite_phy(o_tslab, zx_tmp_fi2d)
    952985          ELSE
    953               CALL histwrite_phy(o_tslab, tslab)
     986              CALL histwrite_phy(o_tslab, tslab(:,1:nslay))
    954987          END IF
    955988          IF (version_ocean=='sicINT') THEN
     
    957990              CALL histwrite_phy(o_slab_tice, tice)
    958991              CALL histwrite_phy(o_slab_sic, seaice)
     992          END IF
     993          IF (slab_hdiff) THEN
     994            IF (nslay.EQ.1) THEN
     995                zx_tmp_fi2d(:)=dt_hdiff(:,1)
     996                CALL histwrite_phy(o_slab_hdiff, zx_tmp_fi2d)
     997            ELSE
     998                CALL histwrite_phy(o_slab_hdiff, dt_hdiff(:,1:nslay))
     999            END IF
     1000          END IF
     1001          IF (slab_ekman.GT.0) THEN
     1002            IF (nslay.EQ.1) THEN
     1003                zx_tmp_fi2d(:)=dt_ekman(:,1)
     1004                CALL histwrite_phy(o_slab_ekman, zx_tmp_fi2d)
     1005            ELSE
     1006                CALL histwrite_phy(o_slab_ekman, dt_ekman(:,1:nslay))
     1007            END IF
    9591008          END IF
    9601009       ENDIF !type_ocean == force/slab
Note: See TracChangeset for help on using the changeset viewer.