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 edited

Legend:

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

    r2927 r2934  
    44#ifndef ORCHIDEE_NOZ0H
    55#ifndef ORCHIDEE_NOFREIN
    6 !FC la derniere ligne et la fin
    76!
    87! This module controles the interface towards the model ORCHIDEE.
    98!
    109! 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.
     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.
    1313!
    1414! Subroutines in this module : surf_land_orchidee
     
    4747       emis_new, z0m_new, z0h_new, qsurf, &
    4848       veget, lai, height )
    49 !FC
    5049
    5150
     
    113112!
    114113    INCLUDE "YOMCST.h"
    115 !FC
    116114    INCLUDE "dimpft.h"
    117115
     
    147145    REAL, DIMENSION(klon), INTENT(OUT)        :: alb1_new, alb2_new
    148146    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
     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
    153150
    154151
     
    230227! Test of coherence between variable ok_veget and cpp key CPP_VEGET
    231228#ifndef CPP_VEGET
    232              print* , "nvm_orch FC  ", nvm_orch
    233              print* , "nvm_lmdz FC  ", nvm_lmdz
    234 
    235229       abort_message='Pb de coherence: ok_veget = .true. mais CPP_VEGET = .false.'
    236230       CALL abort_physic(modname,abort_message,1)
     
    443437    IF (knon > 0) THEN
    444438#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
     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
    451443
    452444       CALL intersurf_main_gathered (itime+itau_phy, nbp_lon, nbp_lat, knon, ktindex, dtime,  &
     
    460452            lon_scat, lat_scat, q2m, t2m, z0h_new(1:knon),&
    461453            veget(1:knon,:),lai(1:knon,:),height(1:knon,:),&
    462               coszang=yrmu0(1:knon))
     454            coszang=yrmu0(1:knon))
    463455#endif       
    464 !FC on doit mettre nvm_orch la ???
    465456    ENDIF
    466457
Note: See TracChangeset for help on using the changeset viewer.