Changeset 3986 for LMDZ6/branches


Ignore:
Timestamp:
Sep 24, 2021, 6:03:34 PM (3 years ago)
Author:
dcugnet
Message:
  • Remove explicit usage of "old_phases" values ("gli") from infotrac: now taken from readTracFiles (the only place they are defined).
  • Remove useless variables (StratAer? variables definition have been moves to infotrac_phy).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/LMDZ-tracers/libf/dyn3d_common/infotrac.F90

    r3985 r3986  
    3434  !=== FOR BOTH TRACERS AND ISOTOPES
    3535  PUBLIC :: getKey                                         !--- Get a key from "tracers" or "isotope"
    36 
    37   !=== FOR STRATOSPHERIC AEROSOLS
    38 #ifdef CPP_StratAer
    39   PUBLIC :: nbtr_bin, nbtr_sulgas, id_OCS_strat, id_H2SO4_strat, id_SO2_strat, id_BIN01_strat, id_TEST_strat
    40 #endif
    4136
    4237  INTERFACE isoSelect; MODULE PROCEDURE isoSelectByIndex, isoSelectByName; END INTERFACE isoSelect
     
    139134  CHARACTER(LEN=8),   SAVE, ALLOCATABLE ::   solsym(:)     !--- Names from INCA                                    (nbtr)
    140135
    141 #ifdef CPP_StratAer
    142   !=== SPECIFIC TO STRATOSPHERIC AEROSOLS (CK/OB)
    143   INTEGER, SAVE :: nbtr_bin, nbtr_sulgas, id_OCS_strat, id_H2SO4_strat, id_SO2_strat, id_BIN01_strat, id_TEST_strat
    144 #endif
    145 
    146136CONTAINS
    147137
     
    179169  CHARACTER(LEN=2)   ::   suff(9)                                    !--- Suffixes for schemes of order 3 or 4 (Prather)
    180170  CHARACTER(LEN=3)   :: descrq(30)                                   !--- Advection scheme description tags
    181   CHARACTER(LEN=256) :: oldH2O(3)                                    !--- Old water name for the three phases
    182   CHARACTER(LEN=256) :: newH2O                                       !--- New water name
     171  CHARACTER(LEN=256) :: oldH2O, newH2O                               !--- Old and new water names
    183172  CHARACTER(LEN=256) :: msg1, msg2                                   !--- Strings for messages
    184173  CHARACTER(LEN=256), ALLOCATABLE :: str(:)                          !--- Temporary storage
     
    200189  descrq(10:20) = ['VL1','VLP','FH1','FH2','VLH','   ','PPM','PPS','PPP','   ','SLP']
    201190  descrq(30)    =  'PRA'
    202   oldH2O        = ['H2Ov','H2Ol','H2Oi']
    203 
    204 !  lerr = reduceExpr('1.0+-470.0/1000.',msg1)
    205 !print*,msg1
    206 !stop
    207191
    208192  !--- MESSAGE ABOUT THE CHOSEN CONFIGURATION
     
    333317      !------------------------------------------------------------------------------------------------------------------------
    334318        nqo = 0
    335         DO ip = 1, SIZE(oldH2O)
    336           ix = strIdx(tracers(:)%name,oldH2O(ip))                    !--- Old name of water in a specific phase (ix/=0)
     319        DO ip = 1, LEN_TRIM(old_phases)
     320          oldH2O = 'H2O'//old_phases(ip:ip)                          !--- Old name of water
    337321          newH2O = 'H2O'//phases_sep//known_phases(ip:ip)            !--- Corresponding new name
     322          ix = strIdx(tracers(:)%name,oldH2O)                        !--- Index of water in phase ip
    338323          IF(ix == 0) ix = strIdx(tracers(:)%name,newH2O)            !--- New name in an old format file (to be avoided...)
    339324          IF(ix == 0) CYCLE
    340325          nqo = nqo+1; tracers(ix)%name = newH2O                     !--- One more water phase ; replace old name with one
    341           tracers(strFind(tracers(:)%nam1,oldH2O(ip)))%nam1 = newH2O
    342           tracers(strFind(tracers(:)%prnt,oldH2O(ip)))%prnt = newH2O
     326          tracers(strFind(tracers(:)%nam1,oldH2O))%nam1 = newH2O
     327          tracers(strFind(tracers(:)%prnt,oldH2O))%prnt = newH2O
    343328        END DO
    344329        nqtrue = SIZE(tracers,DIM=1)
Note: See TracChangeset for help on using the changeset viewer.