Ignore:
Timestamp:
Jul 24, 2024, 11:16:13 AM (8 weeks ago)
Author:
Sebastien Nguyen
Message:

added runoffland (bucket runoff) to outputs and automatic output for water isotopes defined in tracer.def

File:
1 edited

Legend:

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

    r5084 r5109  
    6464         o_fder, o_ffonte, o_fqcalving, o_fqfonte, o_mrroli, o_runofflic, &
    6565         o_taux, o_tauy, o_snowsrf, o_qsnow, &
    66          o_snowhgt, o_toice, o_sissnow, o_runoff, &
     66! SN runoff_diag
     67         o_snowhgt, o_toice, o_sissnow, o_runoff, o_runoff_diag, &
    6768         o_albslw3, o_pourc_srf, o_fract_srf, &
    6869         o_taux_srf, o_tauy_srf, o_tsol_srf, &
     
    207208! Isotopes
    208209         o_xtprecip,o_xtplul,o_xtpluc,o_xtovap,o_xtoliq,o_xtcond, &
    209          o_runoff_diag, o_xtrunoff_diag, &
     210         o_xtrunoff_diag, &
    210211         o_xtevap,o_dxtdyn,o_dxtldyn,o_dxtcon,o_dxtlsc,o_dxteva, &
    211212         o_dxtajs,o_dxtvdf,o_dxtthe, o_dxtch4, &
     
    319320         zxffonte, zxfqcalving, zxfqfonte, zxrunofflic, fluxu, &
    320321         fluxv, zxsnow, qsnow, snowhgt, to_ice, &
    321          sissnow, runoff, albsol3_lic, evap_pot, &
     322! SN runoff_diag
     323         sissnow, runoff, runoff_diag, albsol3_lic, evap_pot, &
    322324         t2m, fluxt, fluxlat, fsollw, fsolsw, &
    323325         wfbils, wfevap, &
     
    393395        d_xt_ajs, d_xt_ajsb, &
    394396        d_xt_prod_nucl,d_xt_cosmo,d_xt_decroiss, &
    395         runoff_diag, xtrunoff_diag, &
     397        xtrunoff_diag, &
    396398#endif
    397399         ep, epmax_diag, &  ! epmax_cape
     
    449451    USE indice_sol_mod, ONLY: nbsrf
    450452#ifdef ISO
    451     USE isotopes_mod, ONLY: iso_HTO
     453    USE isotopes_mod, ONLY: iso_HTO, isoName
    452454#endif
    453455    USE geometry_mod, ONLY: cell_area, latitude_deg, longitude_deg
     
    530532    CHARACTER(LEN=maxlen) :: unt
    531533#endif
     534
     535#ifdef ISO
     536    CHARACTER(LEN=maxlen) :: outiso
     537#endif
     538
    532539    REAL,DIMENSION(klon,klev) :: z, dz
    533540    REAL,DIMENSION(klon)      :: zrho, zt
     
    28372844       end if
    28382845
     2846    !! runoff land bucket - ajout S. Nguyen 23 07 2024
     2847    CALL histwrite_phy(o_runoff_diag, runoff_diag)
     2848
    28392849#ifdef ISO
    28402850    !write(*,*) 'tmp phys_output_write: ntiso=',ntiso
    2841     !! runoff land bucket - ajout S. Nguyen 25 avril 2024
    2842     CALL histwrite_phy(o_runoff_diag, runoff_diag)
    2843 
    2844     do ixt=1,ntiso
     2851
     2852    DO ixt = 1, ntiso
    28452853        !write(*,*) 'ixt,o_xtovap(ixt)=',ixt,o_xtovap(ixt)
    28462854        IF (vars_defined) zx_tmp_fi2d(:) = xtrain_fall(ixt,:) + xtsnow_fall(ixt,:)
     
    29192927          ENDDO !  iff
    29202928#endif
     2929
     2930!SN activate water isotopes present in tracer.def
     2931#ifdef ISO
     2932          DO ixt = 1, ntiso
     2933            outiso = TRIM(isoName(ixt))
     2934            i = INDEX(outiso, '_', .TRUE.)
     2935            outiso = outiso(1:i-1)//outiso(i+1:LEN_TRIM(outiso))
     2936            ! dayly
     2937            CALL xios_set_fieldgroup_attr("dd_2D_"//TRIM(outiso), enabled=.TRUE.)
     2938            CALL xios_set_fieldgroup_attr("dd_3D_"//TRIM(outiso), enabled=.TRUE.)
     2939            ! monthly
     2940            CALL xios_set_fieldgroup_attr("mm_2D_"//TRIM(outiso), enabled=.TRUE.)
     2941            CALL xios_set_fieldgroup_attr("mm_3D_"//TRIM(outiso), enabled=.TRUE.)
     2942
     2943          ENDDO
     2944#endif
    29212945          !On finalise l'initialisation:
    29222946          IF (using_xios) CALL wxios_closedef()
Note: See TracChangeset for help on using the changeset viewer.