Ignore:
Timestamp:
Sep 21, 2022, 9:35:28 AM (3 years ago)
Author:
dcugnet
Message:

Fixes for INCO, CO2i AND REPROBUS, mostly because some sections are specific to type_trac=="lmdz",
which is not always equivalent to ANY(types_trac=='lmdz).
Also force the water phases to get tracers(*)%component='lmdz' so that nqo can be correctly computed.

Location:
LMDZ6/trunk/libf/phylmd
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified LMDZ6/trunk/libf/phylmd/phyetat0.F90

    r4170 r4263  
    2323  USE geometry_mod,     ONLY: longitude_deg, latitude_deg
    2424  USE iostart,          ONLY: close_startphy, get_field, get_var, open_startphy
    25   USE infotrac_phy,     ONLY: nqtot, nbtr, types_trac, tracers
     25  USE infotrac_phy,     ONLY: nqtot, nbtr, type_trac, types_trac, tracers
    2626  USE traclmdz_mod,     ONLY: traclmdz_from_restart
    2727  USE carbon_cycle_mod, ONLY: carbon_cycle_tr, carbon_cycle_cpl, co2_send
     
    456456        found=phyetat0_get(1,co2_send,"co2_send","co2 send",co2_ppm)
    457457     ENDIF
    458   ELSE IF (ANY(types_trac == 'lmdz')) THEN
     458  ELSE IF (type_trac == 'lmdz') THEN
    459459     it = 0
    460460     DO iq = 1, nqtot
  • TabularUnified LMDZ6/trunk/libf/phylmd/phyredem.F90

    r4170 r4263  
    3535  USE iostart, ONLY: open_restartphy, close_restartphy, enddef_restartphy, put_field, put_var
    3636  USE traclmdz_mod, ONLY : traclmdz_to_restart
    37   USE infotrac_phy, ONLY: types_trac, nqtot, tracers, nbtr
     37  USE infotrac_phy, ONLY: type_trac, types_trac, nqtot, tracers, nbtr
    3838  USE carbon_cycle_mod, ONLY : carbon_cycle_cpl, co2_send
    3939  USE indice_sol_mod, ONLY: nbsrf, is_oce, is_sic, is_ter, is_lic, epsfra
     
    336336
    337337    ! trs from traclmdz_mod
    338     ELSE IF (ANY(types_trac == 'lmdz')) THEN
     338    ELSE IF (type_trac == 'lmdz') THEN
    339339       CALL traclmdz_to_restart(trs)
    340340       it = 0
  • TabularUnified LMDZ6/trunk/libf/phylmd/phys_output_write_mod.F90

    r4187 r4263  
    2525
    2626    USE dimphy, ONLY: klon, klev, klevp1
    27     USE infotrac_phy, ONLY: nbtr, nqtot, nqo, types_trac, tracers, niso, ntiso
     27    USE infotrac_phy, ONLY: nbtr, nqtot, nqo, type_trac, types_trac, tracers, niso, ntiso
    2828    USE strings_mod,  ONLY: maxlen
    2929    USE mod_phys_lmdz_para, ONLY: is_north_pole_phy,is_south_pole_phy
     
    25482548           CALL histwrite_phy(o_flx_co2_bb,    fco2_bb)
    25492549
    2550          ELSE IF ((ANY(types_trac=='lmdz') .OR. ANY(types_trac=='coag')) .AND. ALL(types_trac /= 'inca')) THEN
     2550         ELSE IF (ANY(type_trac==['lmdz|coag','lmdz     ','coag     '])) THEN
    25512551           itr = 0
    25522552           DO iq = 1, nqtot
Note: See TracChangeset for help on using the changeset viewer.