Ignore:
Timestamp:
Jul 14, 2007, 10:31:47 PM (17 years ago)
Author:
Laurent Fairhead
Message:

Mise a jour des routines de phytherm vers la version V3 de LMDZ4
LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/trunk/libf/phytherm/surf_land_orchidee_mod.F90

    r814 r815  
    366366       IF (knon /=0) THEN
    367367          CALL Init_orchidee_index(knon,orch_comm,knindex,offset,ktindex)
     368
     369#ifndef CPP_PARA
    368370#define ORC_PREPAR
     371#endif
    369372#ifdef ORC_PREPAR
    370           call intersurf_main (itime+itau_phy-1, iim, jjm+1, knon, ktindex, dtime, &
    371      & lrestart_read, lrestart_write, lalo, &
    372      & contfrac, neighbours, resolution, date0, &
    373      & zlev,  u1_lay, v1_lay, spechum, temp_air, epot_air, ccanopy, &
    374      & cdrag, petA_orc, peqA_orc, petB_orc, peqB_orc, &
    375      & precip_rain, precip_snow, lwdown, swnet, swdown, ps, &
    376      & evap, fluxsens, fluxlat, coastalflow, riverflow, &
    377      & tsol_rad, tsurf_new, qsurf, albedo_out, emis_new, z0_new, &
    378      & lon_scat, lat_scat)
     373          ! Interface for version 1.8 or earlier of ORCHIDEE
     374          CALL intersurf_main (itime+itau_phy-1, iim, jjm+1, knon, ktindex, dtime, &
     375               lrestart_read, lrestart_write, lalo, &
     376               contfrac, neighbours, resolution, date0, &
     377               zlev,  u1_lay, v1_lay, spechum, temp_air, epot_air, ccanopy, &
     378               cdrag, petA_orc, peqA_orc, petB_orc, peqB_orc, &
     379               precip_rain, precip_snow, lwdown, swnet, swdown, ps, &
     380               evap, fluxsens, fluxlat, coastalflow, riverflow, &
     381               tsol_rad, tsurf_new, qsurf, albedo_out, emis_new, z0_new, &
     382               lon_scat, lat_scat)
    379383
    380384#else         
     
    402406   
    403407#ifdef ORC_PREPAR
    404           call intersurf_main (itime+itau_phy-1, iim, jjm+1, knon, ktindex, dtime, &
    405      & lrestart_read, lrestart_write, lalo, &
    406      & contfrac, neighbours, resolution, date0, &
    407      & zlev,  u1_lay, v1_lay, spechum, temp_air, epot_air, ccanopy, &
    408      & cdrag, petA_orc, peqA_orc, petB_orc, peqB_orc, &
    409      & precip_rain, precip_snow, lwdown, swnet, swdown, ps, &
    410      & evap, fluxsens, fluxlat, coastalflow, riverflow, &
    411      & tsol_rad, tsurf_new, qsurf, albedo_out, emis_new, z0_new, &
    412      & lon_scat, lat_scat)
    413 
     408       ! Interface for version 1.8 or earlier of ORCHIDEE
     409       CALL intersurf_main (itime+itau_phy-1, iim, jjm+1, knon, ktindex, dtime, &
     410            lrestart_read, lrestart_write, lalo, &
     411            contfrac, neighbours, resolution, date0, &
     412            zlev,  u1_lay, v1_lay, spechum, temp_air, epot_air, ccanopy, &
     413            cdrag, petA_orc, peqA_orc, petB_orc, peqB_orc, &
     414            precip_rain, precip_snow, lwdown, swnet, swdown, ps, &
     415            evap, fluxsens, fluxlat, coastalflow, riverflow, &
     416            tsol_rad, tsurf_new, qsurf, albedo_out, emis_new, z0_new, &
     417            lon_scat, lat_scat)
     418       
    414419#else
    415420
     
    482487    INTEGER                               :: mpi_size
    483488    INTEGER                               :: ierr   
    484    
     489!
     490! End definition
     491!****************************************************************************************
     492
    485493    MyLastPoint=klon_mpi_begin-1+knindex(knon)+iim-1
    486494   
     
    534542    INTEGER             :: color
    535543    INTEGER             :: ierr
    536    
     544!
     545! End definition
     546!****************************************************************************************
     547
    537548    IF (knon==0) THEN
    538549       color = 0
     
    557568#endif   
    558569
    559 
     570! Input arguments
     571!****************************************************************************************
    560572    INTEGER, INTENT(IN)                     :: knon
    561     INTEGER, DIMENSION(knon,8), INTENT(OUT) :: neighbours
    562573    INTEGER, DIMENSION(klon), INTENT(IN)    :: ktindex
    563574    REAL, DIMENSION(klon), INTENT(IN)       :: pctsrf
    564575   
    565     INTEGER :: knon_nb(0:mpi_size-1)
    566     INTEGER,DIMENSION(0:mpi_size-1) :: displs
    567     INTEGER,ALLOCATABLE :: ktindex_g(:)
    568     REAL :: pctsrf_g(klon_glo)
    569     INTEGER,ALLOCATABLE ::neighbours_g(:,:)
    570     INTEGER :: knon_g
    571     REAL*8 :: correspond(iim,jjm+1)
    572     INTEGER :: i,igrid,jj,ij,iglob,ierr,ireal,index
    573     INTEGER, DIMENSION(8,3) :: off_ini
    574     INTEGER, DIMENSION(8)   :: offset 
    575     INTEGER :: ktindex_p(knon)
    576    
     576! Output arguments
     577!****************************************************************************************
     578    INTEGER, DIMENSION(knon,8), INTENT(OUT) :: neighbours
     579
     580! Local variables
     581!****************************************************************************************
     582    INTEGER                              :: knon_g
     583    INTEGER                              :: i, igrid, jj, ij, iglob
     584    INTEGER                              :: ierr, ireal, index
     585    INTEGER, DIMENSION(0:mpi_size-1)     :: knon_nb
     586    INTEGER, DIMENSION(0:mpi_size-1)     :: displs
     587    INTEGER, DIMENSION(8,3)              :: off_ini
     588    INTEGER, DIMENSION(8)                :: offset 
     589    INTEGER, DIMENSION(knon)             :: ktindex_p
     590    INTEGER, DIMENSION(iim,jjm+1)        :: correspond
     591    INTEGER, ALLOCATABLE, DIMENSION(:)   :: ktindex_g
     592    INTEGER, ALLOCATABLE, DIMENSION(:,:) :: neighbours_g
     593    REAL, DIMENSION(klon_glo)            :: pctsrf_g
     594   
     595!
     596! End definition
     597!****************************************************************************************
     598
    577599    IF (is_sequential) THEN
    578600       knon_nb(:)=knon
Note: See TracChangeset for help on using the changeset viewer.