Changeset 5629 for LMDZ6


Ignore:
Timestamp:
Apr 25, 2025, 4:25:24 PM (6 weeks ago)
Author:
Laurent Fairhead
Message:

Adaptation of heterogeneous continental surfaces to isotopes

Location:
LMDZ6/trunk/libf
Files:
2 edited

Legend:

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

    r5628 r5629  
    4242    USE cdrag_mod
    4343
     44#ifdef ISO
     45    use infotrac_phy, ONLY: niso
     46#endif
     47
    4448!****************************************************************************************
    4549! Bucket calculations for surface.
     
    9094    REAL, DIMENSION(klon, nbtersrf), INTENT(OUT) :: fluxsens_tersrf, fluxlat_tersrf
    9195
     96#ifdef ISO
     97!    REAL, DIMENSION(ntiso,klon), INTENT(OUT) :: xtevap
     98!    REAL, DIMENSION(klon),       INTENT(OUT) :: h1
     99!    REAL, DIMENSION(niso,klon),  INTENT(OUT) :: xtrunoff_diag
     100    REAL, DIMENSION(klon)  :: runoff_diag
     101!    REAL, DIMENSION(niso,klon),  INTENT(IN)  :: Rland_ice
     102#endif
    92103! Local variables
    93104!****************************************************************************************
     
    100111    REAL, DIMENSION(klon) :: dummy_riverflow,dummy_coastalflow
    101112    INTEGER               :: i, j, k
     113#ifdef ISO
     114    INTEGER               :: ixt
     115    REAL, PARAMETER       :: t_coup = 273.15
     116    REAL, DIMENSION(klon) :: fq_fonte_diag
     117    REAL, DIMENSION(klon) :: fqfonte_diag
     118    REAL, DIMENSION(klon) :: snow_evap_diag
     119    REAL, DIMENSION(klon) :: fqcalving_diag
     120    REAL                  :: max_eau_sol_diag 
     121    REAL, DIMENSION(klon) :: run_off_lic_diag
     122    REAL :: coeff_rel_diag
     123#endif
    102124    !
    103125    REAL, DIMENSION(klon)           :: zlev, geop1, speed, pblh, ri_in, sst
     
    203225     
    204226      !* Calculate snow height, run_off, age of snow
     227#ifdef ISO
     228    DO i=1,knon
     229      ! initialisation:
     230      fqfonte_diag(i)  =0.0
     231      fq_fonte_diag(i) =0.0
     232      snow_evap_diag(i)=0.0
     233    ENDDO !DO i=1,knon
     234#endif   
    205235
    206236      CALL fonte_neige( knon, is_ter, knindex, dtime, &
    207237           tsurf, precip_rain, precip_snow, &
    208            snow, qsol, tsurf_new, evap, icesub)
     238           snow, qsol, tsurf_new, evap, icesub &
     239#ifdef ISO   
     240     & ,fq_fonte_diag,fqfonte_diag,snow_evap_diag,fqcalving_diag   &
     241     & ,max_eau_sol_diag,runoff_diag,run_off_lic_diag,coeff_rel_diag   &
     242#endif
     243     &  )
    209244   
    210245      ! calculate the age of snow
     
    325360        CALL fonte_neige( knon, is_ter, knindex, dtime, &
    326361             tsurf_tersrf(:,j), precip_rain, precip_snow, &
    327              snow, qsol, tsurf_new_tersrf(:,j), evap_tersrf(:,j), icesub)
     362             snow, qsol, tsurf_new_tersrf(:,j), evap_tersrf(:,j), icesub &
     363#ifdef ISO   
     364     & ,fq_fonte_diag,fqfonte_diag,snow_evap_diag,fqcalving_diag   &
     365     & ,max_eau_sol_diag,runoff_diag,run_off_lic_diag,coeff_rel_diag   &
     366#endif
     367     &  )
    328368
    329369      ENDDO ! loop on sub-surfaces
  • LMDZ6/trunk/libf/phylmdiso/physiq_mod.F90

    r5614 r5629  
    33423342                                !>nrlmd+jyg
    33433343             treedrg &           
     3344!AM
     3345            , tsurf_tersrf, tsoil_tersrf, qsurf_tersrf, tsurf_new_tersrf, &
     3346            cdragm_tersrf, cdragh_tersrf, &
     3347            swnet_tersrf, lwnet_tersrf, fluxsens_tersrf, fluxlat_tersrf &
    33443348#ifdef ISO
    33453349     &   ,xtrain_fall, xtsnow_fall,xt_seri, &
Note: See TracChangeset for help on using the changeset viewer.