Ignore:
Timestamp:
Jul 14, 2017, 10:23:40 PM (7 years ago)
Author:
Laurent Fairhead
Message:

Parametrization of drag by copses
Need version 4465 of ORCHIDEE at least

  1. Cheruy
Location:
LMDZ5/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk

  • LMDZ5/trunk/libf/phylmd/surf_land_orchidee_mod.F90

    r2912 r2952  
    33#ifndef ORCHIDEE_NOOPENMP
    44#ifndef ORCHIDEE_NOZ0H
     5#ifndef ORCHIDEE_NOFREIN
    56!
    67! This module controles the interface towards the model ORCHIDEE.
    78!
    89! Compatibility with ORCHIDIEE :
    9 ! The current version can be used with ORCHIDEE/trunk from revision 3525.
    10 ! This interface is used if none of the cpp keys ORCHIDEE_NOOPENMP or ORCHIDEE_NOZ0H is set.
     10! The current version can be used with ORCHIDEE/trunk from revision 4465.
     11! This interface is used if none of the cpp keys ORCHIDEE_NOOPENMP,
     12! ORCHIDEE_NOZ0H or ORCHIDEE_NOFREIN is set.
    1113!
    1214! Subroutines in this module : surf_land_orchidee
     
    4345       evap, fluxsens, fluxlat, &             
    4446       tsol_rad, tsurf_new, alb1_new, alb2_new, &
    45        emis_new, z0m_new, z0h_new, qsurf)
     47       emis_new, z0m_new, z0h_new, qsurf, &
     48       veget, lai, height )
     49
    4650
    4751    USE mod_surf_para
     
    108112!
    109113    INCLUDE "YOMCST.h"
     114    INCLUDE "dimpft.h"
     115
     116
    110117 
    111118!
     
    138145    REAL, DIMENSION(klon), INTENT(OUT)        :: alb1_new, alb2_new
    139146    REAL, DIMENSION(klon), INTENT(OUT)        :: emis_new, z0m_new, z0h_new
     147    REAL, DIMENSION(klon,nvm_lmdz), INTENT(OUT) :: veget
     148    REAL, DIMENSION(klon,nvm_lmdz), INTENT(OUT) :: lai
     149    REAL, DIMENSION(klon,nvm_lmdz), INTENT(OUT) :: height
     150
    140151
    141152! Local
     
    409420               precip_rain, precip_snow, lwdown, swnet, swdown, ps, &
    410421               evap, fluxsens, fluxlat, coastalflow, riverflow, &
    411                tsol_rad, tsurf_new, qsurf, albedo_out, emis_new, z0m_new, &
    412                lon_scat, lat_scat, q2m, t2m, z0h_new)
     422               tsol_rad, tsurf_new, qsurf, albedo_out, emis_new, z0m_new, &   
     423               lon_scat, lat_scat, q2m, t2m, z0h_new, nvm_orch)
    413424#endif         
    414425       ENDIF
     
    426437    IF (knon > 0) THEN
    427438#ifdef CPP_VEGET   
     439       IF (nvm_orch .NE. nvm_lmdz ) THEN
     440          abort_message='Pb de dimensiosn PFT: nvm_orch et nvm_lmdz differents.'
     441          CALL abort_physic(modname,abort_message,1)
     442       ENDIF
     443
    428444       CALL intersurf_main_gathered (itime+itau_phy, nbp_lon, nbp_lat, knon, ktindex, dtime,  &
    429445            lrestart_read, lrestart_write, lalo, &
     
    434450            evap(1:knon), fluxsens(1:knon), fluxlat(1:knon), coastalflow(1:knon), riverflow(1:knon), &
    435451            tsol_rad(1:knon), tsurf_new(1:knon), qsurf(1:knon), albedo_out(1:knon,:), emis_new(1:knon), z0m_new(1:knon), &
    436             lon_scat, lat_scat, q2m, t2m, z0h_new(1:knon), coszang=yrmu0(1:knon))
     452            lon_scat, lat_scat, q2m, t2m, z0h_new(1:knon),&
     453            veget(1:knon,:),lai(1:knon,:),height(1:knon,:),&
     454            coszang=yrmu0(1:knon))
    437455#endif       
    438456    ENDIF
     
    664682#endif
    665683#endif
     684#endif
    666685END MODULE surf_land_orchidee_mod
Note: See TracChangeset for help on using the changeset viewer.