Ignore:
Timestamp:
Jul 4, 2025, 12:14:47 PM (7 days ago)
Author:
lguez
Message:

Move assignment to i_aerosol_type_map

Move assignment to i_aerosol_type_map to the beginning at the
procedure. First because we neeed this before the call to
setup_radiation. Less importantly, it seems better to set
i_aerosol_type_map as default value before the call to
rad_config%read, since i_aerosol_type_map is part of the namelist,
rather than reading it from the namelist and silently overwriting the
choice of the user in the namelist. Note that this new ordering of
statements is the same as in ecrad/ifs/radiation_setup.F90.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/ecrad/lmdz/radiation_setup.f90

    r5758 r5759  
    9393    print*,'********** Dans radiation_setup *****************'
    9494
     95    rad_config%i_aerosol_type_map(1:13) = (/ &
     96         &  -1, &
     97         &  -2, &
     98         &  -3, &
     99         &  -4, &
     100         &  -5, &
     101         &  -6, &
     102         &  -7, &
     103         &   1, &
     104         &   2, &
     105         &   3, &
     106         &  -8, &
     107         &  -9, &
     108         &   4 /)
     109
    95110    ! AI ATTENTION (parameters read in namelist file)
    96111    !    file_name="namelist_ecrad"
     
    128143         &  'photosynthetically active radiation, PAR')
    129144
    130     rad_config%i_aerosol_type_map(1:13) = (/ &
    131          &  -1, &
    132          &  -2, &
    133          &  -3, &
    134          &  -4, &
    135          &  -5, &
    136          &  -6, &
    137          &  -7, &
    138          &   1, &
    139          &   2, &
    140          &   3, &
    141          &  -8, &
    142          &  -9, &
    143          &   4 /)
    144 
    145 
    146145    IF (LHOOK) CALL DR_HOOK('RADIATION_SETUP:SETUP_RADIATION_SCHEME',1,ZHOOK_HANDLE)
    147146
Note: See TracChangeset for help on using the changeset viewer.