Ignore:
Timestamp:
Oct 22, 2024, 12:31:08 PM (5 weeks ago)
Author:
abarral
Message:

Wrap uses of cpp key INCA
Add INCA wrapper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmdiso/physiq_mod.F90

    r5244 r5251  
    109109
    110110
    111 #ifdef INCA
    112111    USE geometry_mod,      ONLY: longitude, latitude, boundslon, boundslat, ind_cell_glo
    113112    USE time_phylmdz_mod,  ONLY: ndays
    114113    USE infotrac_phy,      ONLY: nqCO2
    115 #endif
    116114#ifdef REPROBUS
    117115    USE chem_rep, ONLY: Init_chem_rep_xjour, d_q_rep, d_ql_rep, d_qi_rep, &
     
    120118    USE strataer_emiss_mod, ONLY: strataer_emiss_init
    121119#endif
    122 #if defined INCA || defined REPROBUS
    123120    USE time_phylmdz_mod,    ONLY: annee_ref, day_ini, day_ref, start_time
    124121    USE vertical_layers_mod, ONLY: aps, bps, ap, bp
    125 #endif
    126122
    127123
     
    441437       reffclwc, cldnvi, lcc3d, lcc3dcon, lcc3dstra, icc3dcon, icc3dstra
    442438       USE output_physiqex_mod, ONLY: output_physiqex
     439       USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA
    443440
    444441
     
    13491346    REAL, dimension(klon, klev) :: cldfrarad   ! fraction nuageuse
    13501347
    1351 #ifdef INCA
    13521348    REAL :: calday, zxsnow_dummy(klon)
    13531349    ! set de variables utilisees pour l'initialisation des valeurs provenant de INCA
     
    13561352    REAL, DIMENSION(klon,klev,naero_grp,nbands) :: init_cginca
    13571353    REAL, DIMENSION(klon,klev,nbands) :: init_ccminca
    1358 #endif
    13591354    REAL, DIMENSION(klon,nbtr) :: init_source
    13601355
     
    23402335       !
    23412336       IF (ANY(type_trac == ['inca','inco'])) THEN ! ModThL
    2342 #ifdef INCA
     2337IF (CPPKEY_INCA) THEN
    23432338          CALL VTe(VTphysiq)
    23442339          CALL VTb(VTinca)
     
    23502345          config_inca)
    23512346
    2352           CALL init_inca_geometry( & 
     2347          CALL init_inca_geometry( &
    23532348               longitude, latitude, &
    23542349               boundslon, boundslat, &
    2355                cell_area, ind_cell_glo) 
    2356 
    2357           if (grid_type==unstructured) THEN 
     2350               cell_area, ind_cell_glo)
     2351
     2352          if (grid_type==unstructured) THEN
    23582353             CALL chemini(  pplay, &
    23592354                  nbp_lon, nbp_lat, &
     
    24132408          piz_aero(:,:,:,:) = init_pizinca
    24142409          cg_aero(:,:,:,:) = init_cginca
    2415 !         
     2410!
    24162411
    24172412
    24182413          CALL VTe(VTinca)
    24192414          CALL VTb(VTphysiq)
    2420 #endif
     2415END IF
    24212416       ENDIF
    24222417       !
     
    56355630
    56365631    IF (ANY(type_trac == ['inca','inco'])) THEN ! ModThL
    5637 #ifdef INCA
     5632IF (CPPKEY_INCA) THEN
    56385633       CALL VTe(VTphysiq)
    56395634       CALL VTb(VTinca)
     
    56885683       CALL VTe(VTinca)
    56895684       CALL VTb(VTphysiq)
    5690 #endif
     5685END IF
    56915686    ENDIF !type_trac = inca or inco
    56925687    IF (type_trac == 'repr') THEN
     
    59785973
    59795974       IF (aerosol_couple.AND.config_inca=='aero') THEN
    5980 #ifdef INCA
     5975IF (CPPKEY_INCA) THEN
    59815976          CALL radlwsw_inca  &
    59825977               (chemistry_couple, kdlon,kflev,dist, rmu0, fract, solaire, &
     
    59985993               cldtaupirad, &
    59995994               topswai_aero, solswai_aero)
    6000 #endif
     5995END IF
    60015996       ELSE
    60025997          !
     
    71097104    !
    71107105    IF (ANY(type_trac == ['inca','inco'])) THEN
    7111 #ifdef INCA
     7106IF (CPPKEY_INCA) THEN
    71127107       CALL VTe(VTphysiq)
    71137108       CALL VTb(VTinca)
     
    71297124       CALL VTe(VTinca)
    71307125       CALL VTb(VTphysiq)
    7131 #endif
     7126END IF
    71327127    ENDIF
    71337128
     
    74407435       IF (using_xios) THEN
    74417436
    7442 #ifdef INCA
    7443           IF (type_trac == 'inca') THEN 
    7444              IF (is_omp_master .AND. grid_type==unstructured) THEN 
     7437IF (CPPKEY_INCA) THEN
     7438          IF (type_trac == 'inca') THEN
     7439             IF (is_omp_master .AND. grid_type==unstructured) THEN
    74457440                CALL finalize_inca
    74467441             ENDIF
    74477442          ENDIF
    7448 #endif
     7443END IF
    74497444
    74507445! close xios physiq context (call LMDZ)
Note: See TracChangeset for help on using the changeset viewer.