Ignore:
Timestamp:
Jan 23, 2023, 11:28:51 AM (17 months 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/phys_output_write_mod.F90

    r4370 r4389  
    2525
    2626    USE dimphy, ONLY: klon, klev, klevp1
    27     USE infotrac_phy, ONLY: nbtr, nqtot, nqo, type_trac, types_trac, tracers, niso, ntiso
     27    USE infotrac_phy, ONLY: nbtr, nqtot, nqo, type_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
     
    943943       CALL histwrite_phy(o_SWupTOAclr, zx_tmp_fi2d)
    944944
    945        IF (ALL(types_trac/='inca') .OR. config_inca=='aeNP') THEN
     945       IF (type_trac/='inca' .OR. config_inca=='aeNP') THEN
    946946          IF (vars_defined) THEN
    947947             zx_tmp_fi2d(:) = swupc0(:,klevp1)*swradcorr(:)
     
    10151015       CALL histwrite_phy(o_SWupSFCclr, zx_tmp_fi2d)
    10161016
    1017        IF (ALL(types_trac/='inca') .OR. config_inca=='aeNP') THEN
     1017       IF (type_trac/='inca' .OR. config_inca=='aeNP') THEN
    10181018          IF (vars_defined) THEN
    10191019             zx_tmp_fi2d(:) = swupc0(:,1)*swradcorr(:)
     
    10321032       CALL histwrite_phy(o_SWdnSFCclr, zx_tmp_fi2d)
    10331033
    1034        IF (ALL(types_trac/='inca') .OR. config_inca=='aeNP') THEN
     1034       IF (type_trac/='inca' .OR. config_inca=='aeNP') THEN
    10351035          IF (vars_defined) THEN
    10361036             zx_tmp_fi2d(:) = swdnc0(:,1)*swradcorr(:)
     
    10541054       CALL histwrite_phy(o_LWdnSFCclr, sollwdownclr)
    10551055
    1056        IF (ALL(types_trac/='inca') .OR. config_inca=='aeNP') THEN
     1056       IF (type_trac/='inca' .OR. config_inca=='aeNP') THEN
    10571057          IF (vars_defined) THEN
    10581058             zx_tmp_fi2d(:) = lwupc0(:,klevp1)
     
    10611061       ENDIF
    10621062
    1063        IF (ALL(types_trac/='inca') .OR. config_inca=='aeNP') THEN
     1063       IF (type_trac/='inca' .OR. config_inca=='aeNP') THEN
    10641064          IF (vars_defined) THEN
    10651065             zx_tmp_fi2d(:) = -1.*lwdnc0(:,1)
     
    15701570!This is warranted by treating INCA aerosols as offline aerosols
    15711571       IF (flag_aerosol.GT.0) THEN
    1572           IF (ALL(types_trac/='inca') .OR. config_inca=='aeNP') THEN
     1572          IF (type_trac/='inca' .OR. config_inca=='aeNP') THEN
    15731573
    15741574             CALL histwrite_phy(o_od443aer, od443aer)
     
    16341634
    16351635#ifdef CPP_StratAer
    1636        IF (ANY(types_trac=='coag')) THEN
     1636       IF (type_trac=='coag') THEN
    16371637          CALL histwrite_phy(o_R2SO4, R2SO4)
    16381638          CALL histwrite_phy(o_OCS_lifetime, OCS_lifetime)
     
    16931693          CALL histwrite_phy(o_solswad0, zx_tmp_fi2d)
    16941694         
    1695           IF (ALL(types_trac/='inca') .OR. config_inca=='aeNP') THEN
     1695          IF (type_trac/='inca' .OR. config_inca=='aeNP') THEN
    16961696
    16971697             CALL histwrite_phy(o_toplwad, toplwad_aero)
     
    17701770       ! Champs 3D:
    17711771       IF (ok_ade .OR. ok_aie) then
    1772           IF (ALL(types_trac/='inca') .OR. config_inca=='aeNP') THEN
     1772          IF (type_trac/='inca' .OR. config_inca=='aeNP') THEN
    17731773             CALL histwrite_phy(o_ec550aer, ec550aer)
    17741774          ENDIF
     
    22292229       CALL histwrite_phy(o_rsucs, zx_tmp_fi3d1)
    22302230
    2231        IF (ALL(types_trac/='inca') .OR. config_inca=='aeNP') THEN
     2231       IF (type_trac/='inca' .OR. config_inca=='aeNP') THEN
    22322232          IF (vars_defined) THEN
    22332233             DO k=1, klevp1
     
    22452245       CALL histwrite_phy(o_rsdcs, zx_tmp_fi3d1)
    22462246
    2247        IF (ALL(types_trac/='inca') .OR. config_inca=='aeNP') THEN
     2247       IF (type_trac/='inca' .OR. config_inca=='aeNP') THEN
    22482248          IF (vars_defined) THEN
    22492249             DO k=1, klevp1
     
    24912491       IF (iflag_phytrac == 1 ) then
    24922492!
    2493          IF (ANY(types_trac == 'co2i')) THEN
     2493         IF (type_trac == 'co2i') THEN
    24942494           itr = 0
    24952495           DO iq = 1, nqtot
     
    25202520           CALL histwrite_phy(o_flx_co2_bb,    fco2_bb)
    25212521
    2522          ELSE IF (ANY(types_trac == 'inco')) THEN
     2522         ELSE IF (type_trac == 'inco') THEN
    25232523           itr = 0
    25242524           DO iq = 1, nqtot
     
    25492549           CALL histwrite_phy(o_flx_co2_bb,    fco2_bb)
    25502550
    2551          ELSE IF (ANY(type_trac==['lmdz|coag','lmdz     ','coag     '])) THEN
     2551         ELSE IF (ANY(type_trac==['lmdz','coag'])) THEN
    25522552           itr = 0
    25532553           DO iq = 1, nqtot
Note: See TracChangeset for help on using the changeset viewer.