Ignore:
Timestamp:
Jan 30, 2017, 5:54:45 PM (8 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes r2727:2785 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

    r2720 r2787  
    2525
    2626    USE dimphy, ONLY: klon, klev, klevp1
    27     USE infotrac, ONLY: nbtr
     27    USE infotrac_phy, ONLY: nbtr
    2828    USE mod_phys_lmdz_para, ONLY: is_north_pole_phy,is_south_pole_phy
    2929    USE mod_grid_phy_lmdz, ONLY : nbp_lon, nbp_lat
     
    115115         o_swsrfcs_nat, o_swsrfcf_ant, &
    116116         o_swtoacf_zero, o_swsrfcf_zero, &
    117          o_topswai, o_solswai, o_scdnc, &
     117         o_topswai, o_solswai, o_toplwai, o_sollwai, o_scdnc, &
    118118         o_cldncl, o_reffclws, o_reffclwc, o_stratomask,&
    119119         o_cldnvi, o_lcc, o_lcc3d, o_lcc3dcon, &
     
    185185#ifdef CPP_StratAer
    186186    USE phys_output_ctrlout_mod, ONLY:  &
    187          o_sulf_convert, o_sulf_nucl, o_sulf_cond_evap, o_ocs_convert, &
    188          o_sfluxaer, o_R2SO4, o_OCS_lifetime, o_SO2_lifetime, &
    189          o_OCS_backgr_tend, o_SO2_backgr_tend, o_sulf_dep_dry, o_sulf_dep_wet, &
     187         o_budg_3D_nucl, o_budg_3D_cond_evap, o_budg_3D_ocs_to_so2, o_budg_3D_so2_to_h2so4, &
     188         o_budg_sed_part, o_R2SO4, o_OCS_lifetime, o_SO2_lifetime, &
     189         o_budg_3D_backgr_ocs, o_budg_3D_backgr_so2, &
     190         o_budg_dep_dry_h2so4, o_budg_dep_wet_h2so4, &
     191         o_budg_dep_dry_part, o_budg_dep_wet_part, &
     192         o_budg_emi_ocs, o_budg_emi_so2, o_budg_emi_h2so4, o_budg_emi_part, &
     193         o_budg_ocs_to_so2, o_budg_so2_to_h2so4, o_budg_h2so4_to_part, &
    190194         o_surf_PM25_sulf, o_ext_strat_550, o_tau_strat_550, &
    191195         o_p_tropopause, o_vsed_aer, o_tau_strat_1020, o_ext_strat_1020, o_f_r_wet
     
    284288#ifdef CPP_StratAer
    285289    USE phys_local_var_mod, ONLY:  &
    286          sulf_convert, sulf_nucl, sulf_cond_evap, ocs_convert, &
    287          sfluxaer, R2SO4, OCS_lifetime, SO2_lifetime, &
    288          OCS_backgr_tend, SO2_backgr_tend, sulf_dep_dry, sulf_dep_wet, &
     290         budg_3D_nucl, budg_3D_cond_evap, budg_3D_ocs_to_so2, budg_3D_so2_to_h2so4, &
     291         budg_sed_part, R2SO4, OCS_lifetime, SO2_lifetime, &
     292         budg_3D_backgr_ocs, budg_3D_backgr_so2, &
     293         budg_dep_dry_h2so4, budg_dep_wet_h2so4, &
     294         budg_dep_dry_part, budg_dep_wet_part, &
     295         budg_emi_ocs, budg_emi_so2, budg_emi_h2so4, budg_emi_part, &
     296         budg_ocs_to_so2, budg_so2_to_h2so4, budg_h2so4_to_part, &
    289297         surf_PM25_sulf, tau_strat_550, p_tropopause, tausum_strat, &
    290298         vsed_aer, tau_strat_1020, f_r_wet
     
    385393    TYPE(xios_field) :: child
    386394#endif
     395#ifdef CPP_StratAer
     396    LOGICAL, PARAMETER :: debug_strataer=.FALSE.
     397#endif
    387398
    388399    ! On calcul le nouveau tau:
     
    406417            iiq=niadv(iq)
    407418            varname=trim(tname(iiq))
    408             WRITE (lunout,*) 'XIOS var=', nqo, iq, varname
     419            WRITE (lunout,*) 'XIOS var=', nqo, iq, nqtot, varname
    409420            CALL xios_add_child(group_handle, child, varname)
    410421            CALL xios_set_attr(child, name=varname, unit="kg kg-1")
     
    455466            iiq=niadv(iq)
    456467            varname='cum'//trim(tname(iiq))
    457             WRITE (lunout,*) 'XIOS var=', iq, varname
     468            WRITE (lunout,*) 'XIOS var=', iq, nqtot, varname
    458469            CALL xios_add_child(group_handle, child, varname)
    459470            CALL xios_set_attr(child, name=varname, unit="kg m-2")
     
    468479    ! ug la boucle qui suit ne sert qu'une fois, pour l'initialisation, sinon il n'y a toujours qu'un seul passage:
    469480    DO iinit=1, iinitend
     481!      print *,'IFF iinit=', iinit, iinitend
    470482#ifdef CPP_XIOS
    471483       !$OMP MASTER
     
    11941206#ifdef CPP_StratAer
    11951207       IF (type_trac=='coag') THEN
    1196           CALL histwrite_phy(o_sulf_convert, sulf_convert)
    1197           CALL histwrite_phy(o_sulf_nucl, sulf_nucl)
    1198           CALL histwrite_phy(o_sulf_cond_evap, sulf_cond_evap)
    1199           CALL histwrite_phy(o_ocs_convert, ocs_convert)
    12001208          CALL histwrite_phy(o_R2SO4, R2SO4)
    12011209          CALL histwrite_phy(o_OCS_lifetime, OCS_lifetime)
    12021210          CALL histwrite_phy(o_SO2_lifetime, SO2_lifetime)
    1203           CALL histwrite_phy(o_OCS_backgr_tend, OCS_backgr_tend)
    1204           CALL histwrite_phy(o_SO2_backgr_tend, SO2_backgr_tend)
    1205           CALL histwrite_phy(o_sulf_dep_dry, sulf_dep_dry)
    1206           CALL histwrite_phy(o_sulf_dep_wet, sulf_dep_wet)
     1211          CALL histwrite_phy(o_budg_3D_backgr_ocs,   budg_3D_backgr_ocs)
     1212          CALL histwrite_phy(o_budg_3D_backgr_so2,   budg_3D_backgr_so2)
     1213          CALL histwrite_phy(o_budg_3D_ocs_to_so2,   budg_3D_ocs_to_so2)
     1214          CALL histwrite_phy(o_budg_3D_so2_to_h2so4, budg_3D_so2_to_h2so4)
     1215          CALL histwrite_phy(o_budg_3D_nucl,         budg_3D_nucl)
     1216          CALL histwrite_phy(o_budg_3D_cond_evap,    budg_3D_cond_evap)
     1217          CALL histwrite_phy(o_budg_dep_dry_h2so4,   budg_dep_dry_h2so4)
     1218          CALL histwrite_phy(o_budg_dep_wet_h2so4,   budg_dep_wet_h2so4)
     1219          CALL histwrite_phy(o_budg_dep_dry_part,    budg_dep_dry_part)
     1220          CALL histwrite_phy(o_budg_dep_wet_part,    budg_dep_wet_part)
     1221          CALL histwrite_phy(o_budg_emi_ocs,         budg_emi_ocs)
     1222          CALL histwrite_phy(o_budg_emi_so2,         budg_emi_so2)
     1223          CALL histwrite_phy(o_budg_emi_h2so4,       budg_emi_h2so4)
     1224          CALL histwrite_phy(o_budg_emi_part,        budg_emi_part)
     1225          CALL histwrite_phy(o_budg_ocs_to_so2,      budg_ocs_to_so2)
     1226          CALL histwrite_phy(o_budg_so2_to_h2so4,    budg_so2_to_h2so4)
     1227          CALL histwrite_phy(o_budg_h2so4_to_part,   budg_h2so4_to_part)
     1228          CALL histwrite_phy(o_budg_sed_part,        budg_sed_part)
    12071229          CALL histwrite_phy(o_surf_PM25_sulf, surf_PM25_sulf)
    12081230          CALL histwrite_phy(o_p_tropopause, p_tropopause)
    1209           CALL histwrite_phy(o_sfluxaer, sfluxaer)
    12101231          CALL histwrite_phy(o_vsed_aer, vsed_aer)
    12111232          CALL histwrite_phy(o_f_r_wet, f_r_wet)
     
    12641285       IF (ok_aie) THEN
    12651286          CALL histwrite_phy(o_topswai, topswai_aero*swradcorr)
     1287          CALL histwrite_phy(o_toplwai, toplwai_aero*swradcorr)
    12661288          CALL histwrite_phy(o_solswai, solswai_aero*swradcorr)
     1289          CALL histwrite_phy(o_sollwai, sollwai_aero*swradcorr)
    12671290       ENDIF
    12681291       IF (flag_aerosol.GT.0.AND.ok_cdnc) THEN
     
    17261749       ! Champs interpolles sur des niveaux de pression
    17271750       missing_val=missing_val_nf90
    1728        DO iff=7, nfiles
     1751       DO iff=7, nfiles-1 !--OB: here we deal with files 7,8,9
    17291752
    17301753          CALL histwrite_phy(o_tnondef,tnondef(:,:,iff-6),iff)
Note: See TracChangeset for help on using the changeset viewer.