Ignore:
Timestamp:
Sep 26, 2022, 2:43:00 PM (19 months ago)
Author:
jghattas
Message:

Added landice_opt=2 : Treat continental land ice fractions in ORCHIDEE => pctsrf(:,is_lic) = 0.0 in LMDZ.

For this option, some more variables are needed from ORCHIDEE. Therfor change in the interface LMDZ-ORCHIDEE in surf_land_orchidee_mod is done. Previous interface is moved to surf_land_orchidee_nolic_mod.f90. To compile with previous interface, cpp key ORCHIDEE_NOLIC is added. Previous interface is compiled with argument orchidee2.1 in makelmdz and makelmdz_fcm.

At the same time, when the interface was changed, the variable yrmu0(coszang) was added in the call to intersurf_initialize_gathered. This is needed in ORCHIDEE to better initialize the model.

Modifications done by Etienne Vignon and Josefine Ghattas

File:
1 edited

Legend:

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

    r3551 r4283  
    55#ifndef ORCHIDEE_NOFREIN
    66#ifndef ORCHIDEE_NOUNSTRUCT
     7#ifndef ORCHIDEE_NOLIC
    78!
    89! This module controles the interface towards the model ORCHIDEE.
    910!
    1011! Compatibility with ORCHIDIEE :
    11 ! The current version can be used with ORCHIDEE/trunk from revision 4465.
     12! The current version can be used with ORCHIDEE/trunk from revision 7757.
    1213! This interface is used if none of the cpp keys ORCHIDEE_NOOPENMP,
    13 ! ORCHIDEE_NOZ0H or ORCHIDEE_NOFREIN is set.
     14! ORCHIDEE_NOZ0H, ORCHIDEE_NOFREIN or ORCHIDEE_NOLIC is set.
    1415!
    1516! Subroutines in this module : surf_land_orchidee
     
    2021  USE dimphy
    2122#ifdef CPP_VEGET
    22   USE intersurf     ! module d'ORCHIDEE
    23 #endif
    24   USE cpl_mod,      ONLY : cpl_send_land_fields
    25   USE surface_data, ONLY : type_ocean
     23  USE intersurf     ! module in ORCHIDEE
     24#endif
     25  USE cpl_mod,      ONLY : cpl_send_land_fields, cpl_send_landice_fields
     26  USE surface_data, ONLY : type_ocean, landice_opt
    2627  USE geometry_mod, ONLY : dx, dy, boundslon, boundslat,longitude, latitude, cell_area,  ind_cell_glo
    2728  USE mod_grid_phy_lmdz
     
    152153    INTEGER                                   :: error
    153154    REAL, DIMENSION(klon)                     :: swdown_vrai
     155    REAL, DIMENSION(klon)                     :: run_off_lic        !! run off from land ice defined in ORCHIDEE, contains calving, melting and liquid precipitation
     156    REAL, DIMENSION(klon)                     :: run_off_lic_frac   !! cell fraction corresponding to run_off_lic
     157    REAL, DIMENSION(klon)                     :: blowingsnow_flux   !! blowing snow flux
    154158    CHARACTER (len = 20)                      :: modname = 'surf_land_orchidee'
    155159    CHARACTER (len = 80)                      :: abort_message
     
    570574               lon_scat, lat_scat, q2m(1:knon), t2m(1:knon), z0h_new(1:knon), nvm_orch, &
    571575               grid=grid_type, bounds_latlon=bounds_lalo, cell_area=area, ind_cell_glo=ind_cell, &
    572                field_out_names=cfname_out, field_in_names=cfname_in(1:nbcf_in_orc))
     576               field_out_names=cfname_out, field_in_names=cfname_in(1:nbcf_in_orc), &
     577               coszang=yrmu0(1:knon))
    573578#endif         
    574579       ENDIF
     
    603608            fields_out=yfields_out(1:knon,1:nbcf_out),  &
    604609            fields_in=yfields_in(1:knon,1:nbcf_in_orc), &
    605             coszang=yrmu0(1:knon))
     610            coszang=yrmu0(1:knon), run_off_lic=run_off_lic(1:knon), run_off_lic_frac=run_off_lic_frac(1:knon), blowingsnow_flux=blowingsnow_flux(1:knon))
    606611#endif       
    607612    ENDIF
     
    616621       CALL cpl_send_land_fields(itime, knon, knindex, &
    617622            riverflow, coastalflow)
     623       IF (landice_opt .GE. 2) THEN
     624          CALL cpl_send_landice_fields(itime, knon, knindex, run_off_lic, run_off_lic_frac)
     625       END IF
    618626    ENDIF
    619627
     
    850858#endif
    851859#endif
     860#endif
    852861END MODULE surf_land_orchidee_mod
Note: See TracChangeset for help on using the changeset viewer.