Ignore:
Timestamp:
Jan 23, 2023, 11:28:51 AM (3 years ago)
Author:
dcugnet
Message:
  • revert to original "type_trac" management:
    • 4 characters keyword (lmdz, Inca, repr, co2i, into, aeNP, coag
    • no longer a list of component with "|" separator
    • the parsed (with "|" separator) version "types_trac" is no longer used
    • the sole routine using a list of component is readTracFiles
  • fix for INCA and CO2Aer modes: setGeneration is now a function, index corrections for had/vadv.
Location:
LMDZ6/trunk/libf/phylmdiso
Files:
3 edited

Legend:

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

    r4384 r4389  
    4040  USE geometry_mod,     ONLY: longitude_deg, latitude_deg
    4141  USE iostart,          ONLY: close_startphy, get_field, get_var, open_startphy
    42   USE infotrac_phy,     ONLY: nqtot, nbtr, type_trac, types_trac, tracers
     42  USE infotrac_phy,     ONLY: nqtot, nbtr, type_trac, tracers
    4343  USE readTracFiles_mod,ONLY: maxlen, new2oldH2O
    4444  USE traclmdz_mod,     ONLY: traclmdz_from_restart
     
    492492
    493493!--OB now this is for co2i - ThL: and therefore also for inco
    494   IF (ANY(types_trac == 'co2i') .OR. ANY(types_trac == 'inco')) THEN
     494  IF (ANY(type_trac == ['co2i','inco'])) THEN
    495495     IF (carbon_cycle_cpl) THEN
    496496        ALLOCATE(co2_send(klon), stat=ierr)
  • LMDZ6/trunk/libf/phylmdiso/phyredem.F90

    r4374 r4389  
    3939  USE iostart, ONLY: open_restartphy, close_restartphy, enddef_restartphy, put_field, put_var
    4040  USE traclmdz_mod, ONLY : traclmdz_to_restart
    41   USE infotrac_phy, ONLY: types_trac, nqtot, tracers, nbtr, niso
     41  USE infotrac_phy, ONLY: type_trac, nqtot, tracers, nbtr, niso
    4242#ifdef ISO
    4343#ifdef ISOVERIF
     
    176176    CALL put_field(pass,"FSIC", "fraction glace mer", pctsrf(:, is_sic))
    177177
    178     IF(nbsrf>99) THEN
    179       PRINT*, "Trop de sous-mailles";  CALL abort_physic("phyredem", "", 1)
    180     END IF
    181     IF(nsoilmx>99) THEN
    182       PRINT*, "Trop de sous-surfaces"; CALL abort_physic("phyredem", "", 1)
    183     END IF
    184     IF(nsw>99) THEN
    185       PRINT*, "Trop de bandes"; CALL abort_physic("phyredem", "", 1)
    186     END IF
     178    IF(nbsrf  >99) CALL abort_physic("phyredem", "Trop de sous-mailles", 1)
     179    IF(nsoilmx>99) CALL abort_physic("phyredem", "Trop de sous-mailles", 1)
     180    IF(nsw    >99) CALL abort_physic("phyredem", "Trop de bandes", 1)
    187181
    188182!    Surface variables
     
    350344
    351345
    352     IF (ANY(types_trac == 'co2i') .OR. ANY(types_trac == 'inco')) THEN
     346    IF (ANY(type_trac == ['co2i','inco'])) THEN
    353347       IF (carbon_cycle_cpl) THEN
    354348          IF (.NOT. ALLOCATED(co2_send)) THEN
     
    361355
    362356    ! trs from traclmdz_mod
    363     ELSE IF (ANY(types_trac == 'lmdz')) THEN
     357    ELSE IF (type_trac == 'lmdz') THEN
    364358       CALL traclmdz_to_restart(trs)
    365359       it = 0
  • LMDZ6/trunk/libf/phylmdiso/physiq_mod.F90

    r4386 r4389  
    3939    USE ioipsl_getin_p_mod, ONLY : getin_p
    4040    USE indice_sol_mod
    41     USE infotrac_phy, ONLY: nqtot, nbtr, nqo, tracers, types_trac
     41    USE infotrac_phy, ONLY: nqtot, nbtr, nqo, tracers, type_trac
    4242    USE readTracFiles_mod, ONLY: addPhase
    4343    USE strings_mod,  ONLY: strIdx
     
    15701570       tau_overturning_th(:)=0.
    15711571
    1572        IF (ANY(types_trac == 'inca') .OR. ANY(types_trac == 'inco')) THEN
     1572       IF (ANY(type_trac == ['inca','inco'])) THEN
    15731573          ! jg : initialisation jusqu'au ces variables sont dans restart
    15741574          ccm(:,:,:) = 0.
     
    21872187       !c         ENDDO
    21882188       !
    2189        IF (ANY(types_trac == 'inca') .OR. ANY(types_trac == 'inco')) THEN ! ModThL
     2189       IF (ANY(type_trac == ['inca','inco'])) THEN ! ModThL
    21902190#ifdef INCA
    21912191          CALL VTe(VTphysiq)
     
    22692269       ENDIF
    22702270       !
    2271        IF (ANY(types_trac == 'repr')) THEN
     2271       IF (type_trac == 'repr') THEN
    22722272#ifdef REPROBUS
    22732273          CALL chemini_rep(  &
     
    23862386
    23872387    ! Update time and other variables in Reprobus
    2388     IF (ANY(types_trac == 'repr')) THEN
     2388    IF (type_trac == 'repr') THEN
    23892389#ifdef REPROBUS
    23902390       CALL Init_chem_rep_xjour(jD_cur-jD_ref+day_ref)
     
    36543654          !
    36553655          !>jyg
    3656           IF (ANY(types_trac == 'repr')) THEN
     3656          IF (type_trac == 'repr') THEN
    36573657             nbtr_tmp=ntra
    36583658          ELSE
     
    51915191    ENDDO
    51925192
    5193     IF (ANY(types_trac == 'inca') .OR. ANY(types_trac == 'inco')) THEN ! ModThL
     5193    IF (ANY(type_trac == ['inca','inco'])) THEN ! ModThL
    51945194#ifdef INCA
    51955195       CALL VTe(VTphysiq)
     
    52475247#endif
    52485248    ENDIF !type_trac = inca or inco
    5249     IF (ANY(types_trac == 'repr')) THEN
     5249    IF (type_trac == 'repr') THEN
    52505250#ifdef REPROBUS
    52515251    !CALL chemtime_rep(itap+itau_phy-1, date0, dtime, itap)
     
    63366336    !
    63376337
    6338     IF (ANY(types_trac=='repr')) THEN
     6338    IF (type_trac=='repr') THEN
    63396339!MM pas d'impact, car on recupere q_seri,tr_seri,t_seri via phys_local_var_mod
    63406340!MM                               dans Reprobus
     
    65016501#endif
    65026502    !
    6503     IF (ANY(types_trac == 'inca') .OR. ANY(types_trac == 'inco')) THEN
     6503    IF (ANY(type_trac == ['inca','inco'])) THEN
    65046504#ifdef INCA
    65056505       CALL VTe(VTphysiq)
     
    65256525    ENDIF
    65266526
    6527     IF (ANY(types_trac == 'repr')) THEN
     6527    IF (type_trac == 'repr') THEN
    65286528#ifdef REPROBUS
    65296529        CALL coord_hyb_rep(paprs, pplay, aps, bps, ap, bp, cell_area)
     
    69016901
    69026902#ifdef INCA
    6903        if (ANY(types_trac == 'inca' )) then
     6903       if (type_trac == 'inca') then
    69046904          IF (is_omp_master .and. grid_type==unstructured) THEN
    69056905             CALL finalize_inca
Note: See TracChangeset for help on using the changeset viewer.