Ignore:
Timestamp:
Mar 3, 2016, 5:14:54 PM (9 years ago)
Author:
acozic
Message:

make some modification to allow ce0l to compile with INCA (and so add tracers in start.nc)

Location:
LMDZ5/trunk/libf/dynphy_lonlat/phylmd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dynphy_lonlat/phylmd/ce0l.F90

    r2353 r2457  
    2727  USE iniphysiq_mod,  ONLY: iniphysiq
    2828  USE mod_const_mpi,  ONLY: comm_lmdz
    29 #ifdef inca
    30   USE indice_sol_mod, ONLY: nbsrf, is_oce, is_sic, is_ter, is_lic
    31 #endif
    3229#ifdef CPP_PARA
    3330  USE mod_const_mpi,  ONLY: init_const_mpi
    34   USE parallel_lmdz,  ONLY: init_parallel, mpi_rank, omp_rank, mpi_size
     31  USE parallel_lmdz,  ONLY: init_parallel, mpi_rank, omp_rank
    3532  USE bands,          ONLY: read_distrib, distrib_phys
    3633  USE mod_hallo,      ONLY: init_mod_hallo
     
    116113
    117114!--- Tracers initializations
    118   IF (type_trac == 'inca') THEN
    119 #ifdef INCA
    120     CALL init_const_lmdz(nbtr,anneeref,dayref,iphysiq,day_step,nday,&
    121                          nbsrf,is_oce,is_sic,is_ter,is_lic,calend)
    122     CALL init_inca_para(iim,jjp1,llm,klon_glo,mpi_size,distrib_phys,&
    123                         COMM_LMDZ)
    124     WRITE(lunout,*)'nbtr =' , nbtr
    125 #endif
    126   END IF
    127115  CALL infotrac_init()
    128116
  • LMDZ5/trunk/libf/dynphy_lonlat/phylmd/iniphysiq_mod.F90

    r2396 r2457  
    4747#ifdef INCA
    4848  USE indice_sol_mod, ONLY: nbsrf, is_oce, is_sic, is_ter, is_lic
    49   USE parallel_lmdz, ONLY : mpi_size
    50   USE mod_const_mpi, ONLY : COMM_LMDZ
     49#ifdef CPP_PARA
     50  USE parallel_lmdz, ONLY : mpi_size, mpi_rank
    5151  USE bands, ONLY : distrib_phys
     52#endif
    5253  USE mod_phys_lmdz_omp_data, ONLY: klon_omp
    5354#endif
     
    115116  REAL,ALLOCATABLE,SAVE :: boundslatfi(:,:)
    116117!$OMP THREADPRIVATE (latfi,lonfi,cufi,cvfi,airefi,boundslonfi,boundslatfi)
     118
     119#ifndef CPP_PARA
     120  INTEGER,PARAMETER :: mpi_rank=0
     121  INTEGER, PARAMETER :: mpi_size = 1
     122  INTEGER :: distrib_phys(mpi_rank:mpi_rank)=(jjm-1)*iim+2
     123#endif
    117124
    118125  ! Initialize Physics distibution and parameters and interface with dynamics
     
    295302#ifdef INCA
    296303     call init_const_lmdz( &
    297           anneeref,dayref, &
    298           iphysiq,day_step,nday,  &
    299           nbsrf, is_oce,is_sic, &
    300           is_ter,is_lic, calend)
     304          anneeref,dayref, iphysiq,day_step,nday,  &
     305          nbsrf, is_oce,is_sic, is_ter,is_lic, calend)
    301306     call init_inca_para( &
    302307          nbp_lon,nbp_lat,nbp_lev,klon_glo,mpi_size, &
    303           distrib_phys,COMM_LMDZ)
     308          distrib_phys,communicator)
    304309#endif
    305310  END IF
Note: See TracChangeset for help on using the changeset viewer.