Ignore:
Timestamp:
Mar 29, 2022, 10:50:19 AM (2 years ago)
Author:
idelkadi
Message:

Implementation of Ecrad in LMDZ (continued) :

  • Switch to the first call only in the configuration and initializations part of Ecrad
  • Added instructions for parallelization
  • Initializations


File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/ecrad/radiation_ifs_rrtm.F90

    r3908 r4115  
    9797    ! can compute UV and photosynthetically active radiation for a
    9898    ! particular wavelength range
    99    if (.not.allocated(config%wavenumber1_sw)) then
    10099    allocate(config%wavenumber1_sw(config%n_bands_sw))
    101    end if
    102    if (.not.allocated(config%wavenumber2_sw)) then
    103100    allocate(config%wavenumber2_sw(config%n_bands_sw))
    104    end if
    105    if (.not.allocated(config%wavenumber1_lw)) then
    106101    allocate(config%wavenumber1_lw(config%n_bands_lw))
    107    end if
    108    if (.not.allocated(config%wavenumber2_lw)) then
    109102    allocate(config%wavenumber2_lw(config%n_bands_lw))
    110    end if
    111103    config%wavenumber1_lw = (/ 10, 350, 500, 630, 700, 820, 980, 1080, 1180, 1390, 1480, &
    112104         &  1800, 2080, 2250, 2380, 2600 /)
     
    117109    config%wavenumber2_sw = (/ 3250, 4000, 4650, 5150, 6150, 7700, 8050, 12850, 16000, &
    118110         &  22650, 29000, 38000, 50000, 2600 /)
    119 
    120    if (.not.allocated(config%i_band_from_g_sw)) then
     111    print*,'allocate dans ifs_rrtm'
    121112    allocate(config%i_band_from_g_sw          (config%n_g_sw))
    122    end if
    123    if (.not.allocated(config%i_band_from_g_lw)) then
    124113    allocate(config%i_band_from_g_lw          (config%n_g_lw))
    125    end if
    126    if (.not.allocated(config%i_band_from_reordered_g_sw)) then
    127114    allocate(config%i_band_from_reordered_g_sw(config%n_g_sw))
    128    end if
    129    if (.not.allocated(config%i_band_from_reordered_g_lw)) then
    130115    allocate(config%i_band_from_reordered_g_lw(config%n_g_lw))
    131    end if
    132    if (.not.allocated(config%i_g_from_reordered_g_sw)) then
    133116    allocate(config%i_g_from_reordered_g_sw(config%n_g_sw))
    134    end if
    135    if (.not.allocated(config%i_g_from_reordered_g_lw)) then
    136117    allocate(config%i_g_from_reordered_g_lw(config%n_g_lw))
    137    end if
    138118
    139119    ! Shortwave starts at 16: need to start at 1
Note: See TracChangeset for help on using the changeset viewer.