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_landice_mod.F90

    r4245 r4283  
    115115    INTEGER                  :: i,j,nt
    116116    REAL, DIMENSION(klon)    :: fqfonte,ffonte
     117    REAL, DIMENSION(klon)    :: run_off_lic_frac
    117118    REAL, DIMENSION(klon)    :: emis_new                  !Emissivity
    118119    REAL, DIMENSION(klon)    :: swdown,lwdown
     
    361362! Send run-off on land-ice to coupler if coupled ocean.
    362363! run_off_lic has been calculated in fonte_neige or surf_inlandsis
    363 !
    364 !****************************************************************************************
    365     IF (type_ocean=='couple') THEN
    366        CALL cpl_send_landice_fields(itime, knon, knindex, run_off_lic)
     364! If landice_opt>=2, corresponding call is done from surf_land_orchidee
     365!****************************************************************************************
     366    IF (type_ocean=='couple' .AND. landice_opt .LT. 2) THEN
     367       ! Compress fraction where run_off_lic is active (here all pctsrf(is_lic))
     368       run_off_lic_frac(:)=0.0
     369       DO j = 1, knon
     370          i = knindex(j)
     371          run_off_lic_frac(j) = pctsrf(i,is_lic)
     372       ENDDO
     373
     374       CALL cpl_send_landice_fields(itime, knon, knindex, run_off_lic, run_off_lic_frac)
    367375    ENDIF
    368376
Note: See TracChangeset for help on using the changeset viewer.