Ignore:
Timestamp:
Jul 5, 2024, 4:38:48 PM (2 months ago)
Author:
Sebastien Nguyen
Message:

include ISO keys in pbl_surface and associated routines in phylmd

File:
1 edited

Legend:

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

    r3815 r5022  
    2121       z0m, z0h, SFRWL, alb_dir_new, alb_dif_new, evap, fluxsens, fluxlat, & 
    2222       tsurf_new, dflux_s, dflux_l, &
    23        flux_u1, flux_v1)
     23       flux_u1, flux_v1 &
     24#ifdef ISO
     25         &      ,xtprecip_rain, xtprecip_snow,xtspechum,Roce, &
     26         &      xtsnow,xtsol,xtevap,Rland_ice &
     27#endif               
     28         &      )
    2429
    2530  USE dimphy
     
    2934  USE ocean_slab_mod, ONLY   : ocean_slab_ice
    3035  USE indice_sol_mod
     36#ifdef ISO
     37  USE infotrac_phy, ONLY : ntiso,niso
     38#endif
    3139
    3240!
     
    6270    REAL, DIMENSION(klon), INTENT(IN)        :: u1, v1, gustiness
    6371    REAL, DIMENSION(klon,nbsrf), INTENT(IN)  :: pctsrf
     72#ifdef ISO
     73    REAL, DIMENSION(ntiso,klon), INTENT(IN)  :: xtprecip_rain, xtprecip_snow
     74    REAL, DIMENSION(klon),       INTENT(IN)  :: xtspechum
     75    REAL, DIMENSION(niso,klon),  INTENT(IN)  :: Roce
     76    REAL, DIMENSION(niso,klon),  INTENT(IN)  :: Rland_ice
     77#endif
    6478
    6579! In/Output arguments
     
    6882    REAL, DIMENSION(klon), INTENT(INOUT)          :: agesno
    6983    REAL, DIMENSION(klon, nsoilmx), INTENT(INOUT) :: tsoil
     84#ifdef ISO
     85    REAL, DIMENSION(niso,klon), INTENT(INOUT)     :: xtsnow 
     86    REAL, DIMENSION(niso,klon), INTENT(IN)        :: xtsol
     87#endif
    7088
    7189! Output arguments
     
    82100    REAL, DIMENSION(klon), INTENT(OUT)       :: dflux_s, dflux_l     
    83101    REAL, DIMENSION(klon), INTENT(OUT)       :: flux_u1, flux_v1
     102#ifdef ISO
     103    REAL, DIMENSION(ntiso,klon), INTENT(OUT) :: xtevap
     104#endif
    84105
    85106! Local arguments
    86107!****************************************************************************************
    87108    REAL, DIMENSION(klon)  :: radsol
     109#ifdef ISO
     110#ifdef ISOVERIF
     111    INTEGER :: j
     112#endif
     113#endif
    88114
    89115!albedo SB >>>
     
    145171            radsol, snow, qsol, agesno, tsoil, &
    146172            qsurf, alb1_new, alb2_new, evap, fluxsens, fluxlat, flux_u1, flux_v1, &
    147             tsurf_new, dflux_s, dflux_l, rhoa)
     173            tsurf_new, dflux_s, dflux_l, rhoa &
     174#ifdef ISO
     175            ,xtprecip_rain, xtprecip_snow, xtspechum,Roce, &
     176            xtsnow, xtsol,xtevap,Rland_ice & 
     177#endif           
     178            )
    148179
    149180    END IF
Note: See TracChangeset for help on using the changeset viewer.