Ignore:
Timestamp:
Aug 21, 2015, 9:23:13 AM (9 years ago)
Author:
Ehouarn Millour
Message:

Physics/dynamics separation: get rid of all the 'include "temps.h"' in the physics; variables in module time_phylmdz_mod must be used instead. Also added JD_cur, JH_cur and JD_ref in module phys_cal_mod, in preparation for having physics handle its calendar internally.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/surf_land_orchidee_mod.F90

    r2311 r2344  
    4646    USE indice_sol_mod
    4747    USE print_control_mod, ONLY: lunout
     48    USE mod_grid_phy_lmdz, ONLY: nbp_lon, nbp_lat
    4849!   
    4950! Cette routine sert d'interface entre le modele atmospherique et le
     
    9899!   qsurf        air moisture at surface
    99100!
    100     INCLUDE "temps.h"
    101101    INCLUDE "YOMCST.h"
    102     INCLUDE "dimensions.h"
    103102 
    104103!
     
    229228       DO igrid = 2, klon - 1
    230229          indi = indi + 1
    231           IF ( indi > iim) THEN
     230          IF ( indi > nbp_lon) THEN
    232231             indi = 1
    233232             indj = indj + 1
     
    237236       ENDDO
    238237       ig(klon) = 1
    239        jg(klon) = jjm + 1
     238       jg(klon) = nbp_lat
    240239
    241240       IF ((.NOT. ALLOCATED(lalo))) THEN
     
    247246       ENDIF
    248247       IF ((.NOT. ALLOCATED(lon_scat))) THEN
    249           ALLOCATE(lon_scat(iim,jjm+1), stat = error)
     248          ALLOCATE(lon_scat(nbp_lon,nbp_lat), stat = error)
    250249          IF (error /= 0) THEN
    251250             abort_message='Pb allocation lon_scat'
     
    254253       ENDIF
    255254       IF ((.NOT. ALLOCATED(lat_scat))) THEN
    256           ALLOCATE(lat_scat(iim,jjm+1), stat = error)
     255          ALLOCATE(lat_scat(nbp_lon,nbp_lat), stat = error)
    257256          IF (error /= 0) THEN
    258257             abort_message='Pb allocation lat_scat'
     
    275274       IF (is_mpi_root) THEN
    276275          index = 1
    277           DO jj = 2, jjm
    278              DO ij = 1, iim
     276          DO jj = 2, nbp_lat-1
     277             DO ij = 1, nbp_lon
    279278                index = index + 1
    280279                lon_scat(ij,jj) = rlon_g(index)
     
    284283          lon_scat(:,1) = lon_scat(:,2)
    285284          lat_scat(:,1) = rlat_g(1)
    286           lon_scat(:,jjm+1) = lon_scat(:,2)
    287           lat_scat(:,jjm+1) = rlat_g(klon_glo)
     285          lon_scat(:,nbp_lat) = lon_scat(:,2)
     286          lat_scat(:,nbp_lat) = rlat_g(klon_glo)
    288287       ENDIF
    289288   
     
    395394
    396395#ifdef CPP_VEGET
    397           CALL intersurf_main (itime+itau_phy-1, iim, jjm+1, knon, ktindex, dtime, &
     396          CALL intersurf_main (itime+itau_phy-1, nbp_lon, nbp_lat, knon, ktindex, dtime, &
    398397               lrestart_read, lrestart_write, lalo, &
    399398               contfrac, neighbours, resolution, date0, &
     
    419418    IF (knon > 0) THEN
    420419#ifdef CPP_VEGET   
    421        CALL intersurf_main (itime+itau_phy, iim, jjm+1, knon, ktindex, dtime,  &
     420       CALL intersurf_main (itime+itau_phy, nbp_lon, nbp_lat, knon, ktindex, dtime,  &
    422421            lrestart_read, lrestart_write, lalo, &
    423422            contfrac, neighbours, resolution, date0, &
Note: See TracChangeset for help on using the changeset viewer.