Ignore:
Timestamp:
Jul 7, 2017, 10:38:35 AM (7 years ago)
Author:
jghattas
Message:

Amelioration/correction pour retro-compatiblite avec different version de ORHCIDEE. Ajoute de test de coherence.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/LMDZ_tree_FC/libf/phylmd/surf_land_orchidee_nofrein_mod.F90

    r2933 r2934  
    11!
    22MODULE surf_land_orchidee_mod
    3 #ifndef ORCHIDEE_NOOPENMP
    4 #ifndef ORCHIDEE_NOZ0H
    5 #ifndef ORCHIDEE_NOFREIN
    6 !FC la derniere ligne et la fin
     3#ifdef ORCHIDEE_NOFREIN
    74!
    85! This module controles the interface towards the model ORCHIDEE.
    96!
    107! Compatibility with ORCHIDIEE :
    11 ! The current version can be used with ORCHIDEE/trunk from revision 3525.
    12 ! This interface is used if none of the cpp keys ORCHIDEE_NOOPENMP or ORCHIDEE_NOZ0H is set.
     8! This module is compiled only if cpp key ORCHIDEE_NOFREIN is defined.
     9! The current version can be used with ORCHIDEE/trunk from revision 3525-4465
     10! (it can be used for later revisions also but it is not needed.)
     11!
    1312!
    1413! Subroutines in this module : surf_land_orchidee
     
    4746       emis_new, z0m_new, z0h_new, qsurf, &
    4847       veget, lai, height )
    49 !FC
    5048
    5149
     
    113111!
    114112    INCLUDE "YOMCST.h"
    115 !FC
    116113    INCLUDE "dimpft.h"
    117114
     
    147144    REAL, DIMENSION(klon), INTENT(OUT)        :: alb1_new, alb2_new
    148145    REAL, DIMENSION(klon), INTENT(OUT)        :: emis_new, z0m_new, z0h_new
    149 !FC
    150     REAL, DIMENSION (klon,nvm_lmdz),INTENT(OUT)         :: veget
    151     REAL, DIMENSION (klon,nvm_lmdz),INTENT(OUT)         :: lai
    152     REAL, DIMENSION (klon,nvm_lmdz) ,INTENT(OUT)        :: height
     146    REAL, DIMENSION(klon,nvm_lmdz), INTENT(OUT) :: veget ! dummy variables
     147    REAL, DIMENSION(klon,nvm_lmdz), INTENT(OUT) :: lai   ! dummy variables
     148    REAL, DIMENSION(klon,nvm_lmdz), INTENT(OUT) :: height! dummy variables
    153149
    154150
     
    225221    IF (check) WRITE(lunout,*)'Entree ', modname
    226222 
     223    IF (ifl_pbltree == 1) THEN
     224       abort_message='Pb de coherence: cette interface vers ORCHIDEE ne peut pas etre utilise avec ifl_pbltree'
     225       CALL abort_physic(modname,abort_message,1)
     226    END IF
     227
    227228! Initialisation
    228229 
     
    230231! Test of coherence between variable ok_veget and cpp key CPP_VEGET
    231232#ifndef CPP_VEGET
    232              print* , "nvm_orch FC  ", nvm_orch
    233              print* , "nvm_lmdz FC  ", nvm_lmdz
    234 
    235233       abort_message='Pb de coherence: ok_veget = .true. mais CPP_VEGET = .false.'
    236234       CALL abort_physic(modname,abort_message,1)
     
    426424               precip_rain, precip_snow, lwdown, swnet, swdown, ps, &
    427425               evap, fluxsens, fluxlat, coastalflow, riverflow, &
    428                tsol_rad, tsurf_new, qsurf, albedo_out, emis_new, z0m_new, &   
    429                lon_scat, lat_scat, q2m, t2m, z0h_new, nvm_orch)
     426               tsol_rad, tsurf_new, qsurf, albedo_out, emis_new, z0m_new, &
     427               lon_scat, lat_scat, q2m, t2m, z0h_new)
    430428#endif         
    431429       ENDIF
     
    443441    IF (knon > 0) THEN
    444442#ifdef CPP_VEGET   
    445 !FC
    446            if(nvm_orch .ne.nvm_lmdz ) then
    447        abort_message='Pb de dimensiosn PFT: nvm_orch et nvm_lmdz differents.'
    448        CALL abort_physic(modname,abort_message,1)
    449            endif
    450 !FC
    451 
    452443       CALL intersurf_main_gathered (itime+itau_phy, nbp_lon, nbp_lat, knon, ktindex, dtime,  &
    453444            lrestart_read, lrestart_write, lalo, &
     
    458449            evap(1:knon), fluxsens(1:knon), fluxlat(1:knon), coastalflow(1:knon), riverflow(1:knon), &
    459450            tsol_rad(1:knon), tsurf_new(1:knon), qsurf(1:knon), albedo_out(1:knon,:), emis_new(1:knon), z0m_new(1:knon), &
    460             lon_scat, lat_scat, q2m, t2m, z0h_new(1:knon),&
    461             veget(1:knon,:),lai(1:knon,:),height(1:knon,:),&
    462               coszang=yrmu0(1:knon))
     451            lon_scat, lat_scat, q2m, t2m, z0h_new(1:knon), coszang=yrmu0(1:knon))
    463452#endif       
    464 !FC on doit mettre nvm_orch la ???
    465453    ENDIF
    466454
     
    691679#endif
    692680#endif
    693 #endif
    694681END MODULE surf_land_orchidee_mod
Note: See TracChangeset for help on using the changeset viewer.