Ignore:
Timestamp:
Jan 28, 2019, 7:31:11 PM (5 years ago)
Author:
oboucher
Message:

Adding some diagnostics for type_trac=co2i

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/phys_output_write_mod.F90

    r3435 r3453  
    196196! Tropopause
    197197         o_p_tropopause, o_z_tropopause, o_t_tropopause,  &
    198          o_col_O3_strato, o_col_O3_tropo               ! Added ThL
     198         o_col_O3_strato, o_col_O3_tropo,                 &
     199!--interactive CO2
     200         o_flx_co2_ocean, o_flx_co2_land, o_flx_co2_ff, o_flx_co2_bb
    199201
    200202
     
    327329    USE CHEM_REP, ONLY : nas, nbnas, tnamenas, ttextnas
    328330#endif
     331
     332    USE carbon_cycle_mod, ONLY: fco2_ff, fco2_bb, fco2_land, fco2_ocean
    329333
    330334    USE phys_output_var_mod, ONLY: vars_defined, snow_o, zfra_o, bils_diss, &
     
    12531257          IF (slab_gm) THEN
    12541258             CALL histwrite_phy(o_slab_gm, dt_gm(:,1:nslay))
    1255           END IF
     1259          ENDIF
    12561260          IF (slab_hdiff) THEN
    12571261            IF (nslay.EQ.1) THEN
     
    16631667       ENDIF
    16641668       CALL histwrite_phy(o_dtcon, zx_tmp_fi3d)
    1665        if(iflag_thermals.eq.0)then
     1669       IF (iflag_thermals.EQ.0) THEN
    16661670          IF (vars_defined) THEN
    16671671             zx_tmp_fi3d(1:klon,1:klev)=d_t_con(1:klon,1:klev)/pdtphys + &
     
    16691673          ENDIF
    16701674          CALL histwrite_phy(o_tntc, zx_tmp_fi3d)
    1671        else if(iflag_thermals.ge.1.and.iflag_wake.EQ.1)then
     1675       ELSE IF(iflag_thermals.GE.1.AND.iflag_wake.EQ.1) THEN
    16721676          IF (vars_defined) THEN
    16731677             zx_tmp_fi3d(1:klon,1:klev)=d_t_con(1:klon,1:klev)/pdtphys + &
     
    16761680          ENDIF
    16771681          CALL histwrite_phy(o_tntc, zx_tmp_fi3d)
    1678        endif
     1682       ENDIF
    16791683       IF (vars_defined) zx_tmp_fi3d(1:klon,1:klev)=d_u_con(1:klon,1:klev)/pdtphys
    16801684       CALL histwrite_phy(o_ducon, zx_tmp_fi3d)
     
    17271731          CALL histwrite_phy(o_plulst, plul_st)
    17281732          IF (vars_defined) THEN
    1729              do i=1,klon
     1733             DO i=1,klon
    17301734                zx_tmp_fi2d(1:klon)=lmax_th(:)
    1731              enddo
     1735             ENDDO
    17321736          ENDIF
    17331737          CALL histwrite_phy(o_lmaxth, zx_tmp_fi2d)
     
    21922196            IF (type_trac == 'lmdz' .OR. type_trac == 'repr' .OR. type_trac == 'coag') THEN
    21932197             !--3D fields
    2194 !             CALL histwrite_phy(o_trac(iq-nqo), tr_seri(:,:,iq-nqo))
    2195 !             CALL histwrite_phy(o_dtr_vdf(iq-nqo),d_tr_cl(:,:,iq-nqo))
    2196 !             CALL histwrite_phy(o_dtr_the(iq-nqo),d_tr_th(:,:,iq-nqo))
    2197 !             CALL histwrite_phy(o_dtr_con(iq-nqo),d_tr_cv(:,:,iq-nqo))
    2198 !             CALL histwrite_phy(o_dtr_lessi_impa(iq-nqo),d_tr_lessi_impa(:,:,iq-nqo))
    2199 !             CALL histwrite_phy(o_dtr_lessi_nucl(iq-nqo),d_tr_lessi_nucl(:,:,iq-nqo))
    2200 !             CALL histwrite_phy(o_dtr_insc(iq-nqo),d_tr_insc(:,:,iq-nqo))
    2201 !             CALL histwrite_phy(o_dtr_bcscav(iq-nqo),d_tr_bcscav(:,:,iq-nqo))
    2202 !             CALL histwrite_phy(o_dtr_evapls(iq-nqo),d_tr_evapls(:,:,iq-nqo))
    2203 !             CALL histwrite_phy(o_dtr_ls(iq-nqo),d_tr_ls(:,:,iq-nqo))
    2204 !             CALL histwrite_phy(o_dtr_trsp(iq-nqo),d_tr_trsp(:,:,iq-nqo))
    2205 !             CALL histwrite_phy(o_dtr_sscav(iq-nqo),d_tr_sscav(:,:,iq-nqo))
    2206 !             CALL histwrite_phy(o_dtr_sat(iq-nqo),d_tr_sat(:,:,iq-nqo))
    2207 !             CALL histwrite_phy(o_dtr_uscav(iq-nqo),d_tr_uscav(:,:,iq-nqo))
    2208              !--2D fields
    2209 !             CALL histwrite_phy(o_dtr_dry(iq-nqo), flux_tr_dry(:,iq-nqo))
     2198             CALL histwrite_phy(o_trac(iq-nqo), tr_seri(:,:,iq-nqo))
     2199             CALL histwrite_phy(o_dtr_vdf(iq-nqo),d_tr_cl(:,:,iq-nqo))
     2200             CALL histwrite_phy(o_dtr_the(iq-nqo),d_tr_th(:,:,iq-nqo))
     2201             CALL histwrite_phy(o_dtr_con(iq-nqo),d_tr_cv(:,:,iq-nqo))
     2202             CALL histwrite_phy(o_dtr_lessi_impa(iq-nqo),d_tr_lessi_impa(:,:,iq-nqo))
     2203             CALL histwrite_phy(o_dtr_lessi_nucl(iq-nqo),d_tr_lessi_nucl(:,:,iq-nqo))
     2204             CALL histwrite_phy(o_dtr_insc(iq-nqo),d_tr_insc(:,:,iq-nqo))
     2205             CALL histwrite_phy(o_dtr_bcscav(iq-nqo),d_tr_bcscav(:,:,iq-nqo))
     2206             CALL histwrite_phy(o_dtr_evapls(iq-nqo),d_tr_evapls(:,:,iq-nqo))
     2207             CALL histwrite_phy(o_dtr_ls(iq-nqo),d_tr_ls(:,:,iq-nqo))
     2208             CALL histwrite_phy(o_dtr_trsp(iq-nqo),d_tr_trsp(:,:,iq-nqo))
     2209             CALL histwrite_phy(o_dtr_sscav(iq-nqo),d_tr_sscav(:,:,iq-nqo))
     2210             CALL histwrite_phy(o_dtr_sat(iq-nqo),d_tr_sat(:,:,iq-nqo))
     2211             CALL histwrite_phy(o_dtr_uscav(iq-nqo),d_tr_uscav(:,:,iq-nqo))
     2212            !--2D fields
     2213             CALL histwrite_phy(o_dtr_dry(iq-nqo), flux_tr_dry(:,iq-nqo))
    22102214             zx_tmp_fi2d=0.
    22112215             IF (vars_defined) THEN
     
    22172221             CALL histwrite_phy(o_trac_cum(iq-nqo), zx_tmp_fi2d)
    22182222#endif
    2219             ENDIF
    2220           ENDDO
    2221        ENDIF
     2223            ENDIF   !--type_trac
     2224!
     2225            IF (type_trac == 'co2i') THEN
     2226             !--3D fields
     2227             CALL histwrite_phy(o_trac(iq-nqo), tr_seri(:,:,iq-nqo))
     2228             CALL histwrite_phy(o_dtr_vdf(iq-nqo),d_tr_cl(:,:,iq-nqo))
     2229             CALL histwrite_phy(o_dtr_the(iq-nqo),d_tr_th(:,:,iq-nqo))
     2230             CALL histwrite_phy(o_dtr_con(iq-nqo),d_tr_cv(:,:,iq-nqo))
     2231             !--2D fields
     2232             !--CO2 burden
     2233             zx_tmp_fi2d=0.
     2234             IF (vars_defined) THEN
     2235                DO k=1,klev
     2236                   zx_tmp_fi2d(:)=zx_tmp_fi2d(:)+zmasse(:,k)*tr_seri(:,k,iq-nqo)
     2237                ENDDO
     2238             ENDIF
     2239             CALL histwrite_phy(o_trac_cum(iq-nqo), zx_tmp_fi2d)
     2240             !--CO2 net fluxes
     2241             CALL histwrite_phy(o_flx_co2_land,  fco2_land)
     2242             CALL histwrite_phy(o_flx_co2_ocean, fco2_ocean)
     2243             CALL histwrite_phy(o_flx_co2_ff,    fco2_ff)
     2244             CALL histwrite_phy(o_flx_co2_bb,    fco2_bb)
     2245            ENDIF !--type_trac co2i
     2246
     2247          ENDDO !--iq
     2248       ENDIF !--nqtot > nqo+1
    22222249
    22232250       IF (type_trac == 'repr') THEN
     
    22302257
    22312258       ENDIF   !(iflag_phytrac==1)
    2232 
    22332259
    22342260       IF (.NOT.vars_defined) THEN
Note: See TracChangeset for help on using the changeset viewer.