Ignore:
Timestamp:
Oct 13, 2015, 2:41:47 PM (9 years ago)
Author:
acozic
Message:

Change call to inca initialisation to fit with new sections dynamique/physic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dynlonlat_phylonlat/phylmd/iniphysiq_mod.F90

    r2355 r2372  
    1313  USE dimphy, ONLY: init_dimphy
    1414  USE mod_grid_phy_lmdz, ONLY: klon_glo,  & ! number of atmospheric columns (on full grid)
    15                                regular_lonlat  ! regular longitude-latitude grid type
     15                               regular_lonlat, &  ! regular longitude-latitude grid type
     16                               nbp_lon, nbp_lat, nbp_lev
    1617  USE mod_phys_lmdz_para, ONLY: klon_omp, & ! number of columns (on local omp grid)
    1718                                klon_omp_begin, & ! start index of local omp subgrid
     
    3233  USE CHEM_REP, ONLY : Init_chem_rep_phys
    3334#endif
    34   USE control_mod, ONLY: dayref,anneeref,day_step,nday,offline
     35  USE control_mod, ONLY: dayref,anneeref,day_step,nday,offline, iphysiq
    3536  USE inifis_mod, ONLY: inifis
    3637  USE time_phylmdz_mod, ONLY: init_time
     
    4445                                 south_west, south_east
    4546  USE mod_interface_dyn_phys, ONLY :  init_interface_dyn_phys
     47#ifdef INCA
     48  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
     51  USE bands, ONLY : distrib_phys
     52  USE mod_phys_lmdz_omp_data, ONLY: klon_omp
     53#endif
    4654  IMPLICIT NONE
    4755
     
    282290#endif
    283291  ENDIF
     292!$OMP END PARALLEL
     293
     294  IF (type_trac == 'inca') THEN
     295#ifdef INCA
     296     call init_const_lmdz( &
     297          anneeref,dayref, &
     298          iphysiq,day_step,nday,  &
     299          nbsrf, is_oce,is_sic, &
     300          is_ter,is_lic, calend)
     301     call init_inca_para( &
     302          nbp_lon,nbp_lat,nbp_lev,klon_glo,mpi_size, &
     303          distrib_phys,COMM_LMDZ)
     304#endif
     305  END IF
     306!$OMP PARALLEL DEFAULT(SHARED) COPYIN(/temps/)
    284307
    285308  ! Additional initializations for aquaplanets
     
    287310    CALL iniaqua(klon_omp,iflag_phys)
    288311  END IF
     312
     313  IF (type_trac == 'inca') THEN
     314#ifdef INCA
     315     CALL init_inca_dim(klon_omp,nbp_lev,nbp_lon,nbp_lat - 1, &
     316          rlonu,rlatu,rlonv,rlatv)
     317#endif
     318  END IF
     319
    289320!$OMP END PARALLEL
    290321
Note: See TracChangeset for help on using the changeset viewer.