Ignore:
Timestamp:
Dec 10, 2009, 10:02:56 AM (14 years ago)
Author:
Laurent Fairhead
Message:

Merged LMDZ4-dev branch changes r1241:1278 into the trunk
Running trunk and LMDZ4-dev in LMDZOR configuration on local
machine (sequential) and SX8 (4-proc) yields identical results
(restart and restartphy are identical binarily)
Log history from r1241 to r1278 is available by switching to
source:LMDZ4/branches/LMDZ4-dev-20091210

Location:
LMDZ4/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/trunk

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

    r1146 r1279  
    4040       tsol_rad, tsurf_new, alb1_new, alb2_new, &
    4141       emis_new, z0_new, qsurf)
    42    USE mod_surf_para
    43    USE mod_synchro_omp
     42
     43    USE mod_surf_para
     44    USE mod_synchro_omp
    4445   
     46USE carbon_cycle_mod, ONLY : carbon_cycle_cpl, fco2_land_inst, fco2_lu_inst
     47
    4548!   
    4649! Cette routine sert d'interface entre le modele atmospherique et le
     
    6770!   spechum      humidite specifique 1ere couche
    6871!   epot_air     temp pot de l'air
    69 !   ccanopy      concentration CO2 canopee
     72!   ccanopy      concentration CO2 canopee, correspond au co2_send de
     73!                carbon_cycle_mod ou valeur constant co2_ppm
    7074!   tq_cdrag     cdrag
    7175!   petAcoef     coeff. A de la resolution de la CL pour t
     
    134138    INTEGER                                   :: error
    135139    REAL, DIMENSION(klon)                     :: swdown_vrai
     140    REAL, DIMENSION(klon)                     :: fco2_land_comp  ! sur grille compresse
     141    REAL, DIMENSION(klon)                     :: fco2_lu_comp    ! sur grille compresse
    136142    CHARACTER (len = 20)                      :: modname = 'surf_land_orchidee'
    137143    CHARACTER (len = 80)                      :: abort_message
     
    341347          CALL abort_gcm(modname,abort_message,1)
    342348       ENDIF
    343 
     349!
     350! Allocate variables needed for carbon_cycle_mod
     351!
     352       IF (carbon_cycle_cpl) THEN
     353          IF (.NOT. ALLOCATED(fco2_land_inst)) THEN
     354             ALLOCATE(fco2_land_inst(klon),stat=error)
     355             IF (error /= 0)  CALL abort_gcm(modname,'Pb in allocation fco2_land_inst',1)
     356             
     357             ALLOCATE(fco2_lu_inst(klon),stat=error)
     358             IF(error /=0) CALL abort_gcm(modname,'Pb in allocation fco2_lu_inst',1)
     359          END IF
     360       END IF
     361       
    344362    ENDIF                          ! (fin debut)
     363 
    345364
    346365!
     
    443462   
    444463    IF (debut) CALL Finalize_surf_para
    445    
     464
     465   
     466! JG : TEMPORAIRE!!!! Les variables fco2_land_comp et fco2_lu_comp seront plus tard en sortie d'ORCHIDEE
     467!      ici mis a valeur quelquonque pour test. Ces variables sont sur la grille compresse avec uniquement des points de terres
     468
     469    fco2_land_comp(:) = 1.
     470    fco2_lu_comp(:)   = 10.
     471
     472! Decompress variables for the module carbon_cycle_mod
     473    IF (carbon_cycle_cpl) THEN
     474       fco2_land_inst(:)=0.
     475       fco2_lu_inst(:)=0.
     476       
     477       DO igrid = 1, knon
     478          ireal = knindex(igrid)
     479          fco2_land_inst(ireal) = fco2_land_comp(igrid)
     480          fco2_lu_inst(ireal)   = fco2_lu_comp(igrid)
     481       END DO
     482    END IF
     483
    446484  END SUBROUTINE surf_land_orchidee
    447485!
Note: See TracChangeset for help on using the changeset viewer.