Changeset 4393


Ignore:
Timestamp:
Jan 23, 2023, 5:39:48 PM (16 months ago)
Author:
dcugnet
Message:

No longer use "strLower" for the SELECT CASE statements in traclmdz.

File:
1 edited

Legend:

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

    r4389 r4393  
    9696    USE indice_sol_mod
    9797    USE print_control_mod, ONLY: lunout
    98     USE strings_mod, ONLY: strLower
    9998
    10099! Input variables
     
    177176       IF(.NOT.(tracers(iq)%isInPhysics)) CYCLE
    178177       it = it+1
    179        SELECT CASE(strLower(tracers(iq)%name))
    180          CASE("rn");      id_rn     = it ! radon
    181          CASE("pb");      id_pb     = it ! plomb
    182          CASE("aga");     id_aga    = it ! Age of stratospheric air
    183          CASE("be","be7");id_be     = it ! Recherche du Beryllium 7
    184          CASE("o3");      id_o3     = it ! Recherche de l'ozone
    185          CASE("pcsat");   id_pcsat  = it
    186          CASE("pcocsat"); id_pcocsat= it
    187          CASE("pcq");     id_pcq    = it
    188          CASE("pcs0");    id_pcs0   = it
    189          CASE("pcos0");   id_pcos0  = it
    190          CASE("pcq0");    id_pcq0   = it
     178       SELECT CASE(tracers(iq)%name)
     179         CASE("RN");                  id_rn     = it ! radon
     180         CASE("PB");                  id_pb     = it ! plomb
     181         CASE("Aga","AGA");           id_aga    = it ! Age of stratospheric air
     182         CASE("Be","BE","Be7","BE7"); id_be     = it ! Recherche du Beryllium 7
     183         CASE("o3","O3");             id_o3     = it ! Recherche de l'ozone
     184         CASE("pcsat",  "Pcsat");     id_pcsat  = it
     185         CASE("pcocsat","Pcocsat");  id_pcocsat= it
     186         CASE("pcq",    "Pcq");       id_pcq    = it
     187         CASE("pcs0",   "Pcs0");      id_pcs0   = it
     188         CASE("pcos0",  "Pcos0");     id_pcos0  = it
     189         CASE("pcq0",   "Pcq0");      id_pcq0   = it
    191190         CASE DEFAULT
    192191           WRITE(lunout,*) 'This is an unknown tracer in LMDZ : ', trim(tracers(iq)%name)
    193192       END SELECT
    194193
    195        SELECT CASE(strLower(tracers(iq)%name))
    196          CASE("pb")                        !--- RomP >>> profil initial de PB210
     194       SELECT CASE(tracers(iq)%name)
     195         CASE("PB")                        !--- RomP >>> profil initial de PB210
    197196           OPEN(ilesfil2,file='prof.pb210',status='old',iostat=irr2)
    198197           IF(irr2 == 0) THEN
     
    205204             WRITE(lunout,*)'prof.pb210 does not exist: use restart values'
    206205           END IF
    207          CASE("aga")
     206         CASE("Aga","AGA")
    208207           radio(id_aga) = .FALSE.
    209208           aerosol(id_aga) = .FALSE.
     
    217216              lev_1p5km=klev/2
    218217           END IF
    219          CASE("be","be7")
     218         CASE("Be","BE","Be7","BE7")
    220219           ALLOCATE( srcbe(klon,klev) )
    221220           radio(id_be) = .TRUE.
     
    234233             WRITE(lunout,*)'Prof. Be7 does not exist: use restart values'
    235234           END IF
    236          CASE("o3")                         !--- Parametrisation par la chimie de Cariolle
     235         CASE("o3","O3")                    !--- Parametrisation par la chimie de Cariolle
    237236           CALL alloc_coefoz                !--- Allocate ozone coefficients
    238237           CALL press_coefoz                !--- Read input pressure levels
    239          CASE("pcs0","pcos0","pcq0")
     238         CASE("pcs0","Pcs0", "pcos0","Pcos0", "pcq0","Pcq0")
    240239           conv_flg(it)=0                   !--- No transport by convection for this tracer
    241240       END SELECT
Note: See TracChangeset for help on using the changeset viewer.