Ignore:
Timestamp:
Jun 11, 2014, 3:46:46 PM (10 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes r1997:2055 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

    r1999 r2056  
    1919       ok_ade, ok_aie, ivap, new_aod, ok_sync, &
    2020       ptconv, read_climoz, clevSTD, ptconvth, &
    21        d_t, qx, d_qx, zmasse, flag_aerosol_strat)
     21       d_t, qx, d_qx, zmasse, flag_aerosol, flag_aerosol_strat, ok_cdnc)
    2222
    2323    ! This subroutine does the actual writing of diagnostics that were
     
    4545         o_LWupSFC, o_LWdnSFC, o_LWupSFCclr, &
    4646         o_LWdnSFCclr, o_bils, o_bils_diss, &
    47          o_bils_ec, o_bils_tke, o_bils_kinetic, &
     47         o_bils_ec,o_bils_ech, o_bils_tke, o_bils_kinetic, &
    4848         o_bils_latent, o_bils_enthalp, o_sens, &
    4949         o_fder, o_ffonte, o_fqcalving, o_fqfonte, &
     
    217217
    218218    USE phys_output_var_mod, only: vars_defined, snow_o, zfra_o, bils_diss, &
    219          bils_ec, bils_tke, bils_kinetic, bils_latent, bils_enthalp, &
     219         bils_ec,bils_ech, bils_tke, bils_kinetic, bils_latent, bils_enthalp, &
    220220         itau_con, nfiles, clef_files, nid_files, zvstr_gwd_rando
    221221    USE indice_sol_mod, only: nbsrf
     
    223223    USE comgeomphy, only: airephy
    224224    USE surface_data, only: type_ocean, ok_veget, ok_snow
    225     USE aero_mod, only: naero_spc
     225!    USE aero_mod, only: naero_spc
     226    USE aero_mod, only: naero_tot
    226227    USE ioipsl, only: histend, histsync
    227228    USE iophy, only: set_itau_iophy, histwrite_phy
     
    230231#ifdef CPP_XIOS
    231232    ! ug Pour les sorties XIOS
    232     USE wxios, only: wxios_update_calendar, wxios_closedef
     233    USE xios, ONLY: xios_update_calendar
     234    USE wxios, only: wxios_closedef
    233235#endif
    234236    USE phys_cal_mod, only : mth_len
     
    259261    REAL, DIMENSION(klon, llm) :: zmasse
    260262    LOGICAL :: flag_aerosol_strat
     263    INTEGER :: flag_aerosol
     264    LOGICAL :: ok_cdnc
    261265    REAL, DIMENSION(3) :: freq_moyNMC
    262266
     
    292296       IF (vars_defined) THEN
    293297          if (prt_level >= 10) then
    294              write(lunout,*)"phys_output_write: call wxios_update_calendar, itau_w=",itau_w
     298             write(lunout,*)"phys_output_write: call xios_update_calendar, itau_w=",itau_w
    295299          endif
    296           CALL wxios_update_calendar(itau_w)
     300          CALL xios_update_calendar(itau_w)
    297301       END IF
    298302       !$OMP END MASTER
     
    463467       CALL histwrite_phy(o_bils_diss, bils_diss)
    464468       CALL histwrite_phy(o_bils_ec, bils_ec)
     469       IF (iflag_ener_conserv>=1) THEN
     470         CALL histwrite_phy(o_bils_ech, bils_ech)
     471       ENDIF
    465472       CALL histwrite_phy(o_bils_tke, bils_tke)
    466473       CALL histwrite_phy(o_bils_kinetic, bils_kinetic)
     
    770777       ! OD550 per species
    771778       IF (new_aod .and. (.not. aerosol_couple)) THEN
    772           IF (ok_ade.OR.ok_aie) THEN
     779          IF (flag_aerosol.GT.0) THEN
    773780             CALL histwrite_phy(o_od550aer, od550aer)
    774781             CALL histwrite_phy(o_od865aer, od865aer)
     
    792799             !--STRAT AER
    793800          ENDIF
    794           IF (ok_ade.OR.ok_aie.OR.flag_aerosol_strat) THEN
    795              DO naero = 1, naero_spc
     801          IF (flag_aerosol.GT.0.OR.flag_aerosol_strat) THEN
     802!             DO naero = 1, naero_spc
     803!--correction mini bug OB
     804             DO naero = 1, naero_tot
    796805                CALL histwrite_phy(o_tausumaero(naero), &
    797806                     tausum_aero(:,2,naero) )
     
    830839          CALL histwrite_phy(o_topswai, topswai_aero)
    831840          CALL histwrite_phy(o_solswai, solswai_aero)
     841       ENDIF
     842       IF (flag_aerosol.GT.0.AND.ok_cdnc) THEN
    832843          CALL histwrite_phy(o_scdnc, scdnc)
    833844          CALL histwrite_phy(o_cldncl, cldncl)
Note: See TracChangeset for help on using the changeset viewer.