Ignore:
Timestamp:
Aug 2, 2024, 2:12:03 PM (3 months ago)
Author:
abarral
Message:

Add missing klon on strataer_emiss_mod.F90
Correct various missing explicit declarations
Replace tabs by spaces (tabs are not part of the fortran charset)
Continue cleaning modules
Removed unused arguments and variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/phylmd/ecrad.v1.5.1/radiation_ifs_rrtm.F90

    r4489 r5158  
    362362!    end if
    363363
    364     do jlev=1,nlev
    365       do jcol= istartcol,iendcol
     364    DO jlev=1,nlev
     365      DO jcol= istartcol,iendcol
    366366        pressure_fl(jcol,jlev) &
    367367            &  = 0.5_jprb * (thermodynamics%pressure_hl(jcol,jlev+istartlev-1) &
     
    461461      ! arrays have dimensions in a different order to the inputs,
    462462      ! so there is some inefficiency here.
    463       do jgreorder = 1,config%n_g_lw
     463      DO jgreorder = 1,config%n_g_lw
    464464        iband = config%i_band_from_reordered_g_lw(jgreorder)
    465465        ig = config%i_g_from_reordered_g_lw(jgreorder)
    466466       
    467467        ! Top-of-atmosphere half level
    468         do jlev = 1,nlev
    469           do jcol = istartcol,iendcol
     468        DO jlev = 1,nlev
     469          DO jcol = istartcol,iendcol
    470470            ! Some g points can return negative optical depths;
    471471            ! specifically original g points 54-56 which causes
     
    479479    else
    480480      ! G points have not been reordered
    481       do jcol = istartcol,iendcol
    482         do jlev = 1,nlev
     481      DO jcol = istartcol,iendcol
     482        DO jlev = 1,nlev
    483483          ! Check for negative optical depth
    484484          od_lw(:,jlev,jcol) = max(config%min_gas_od_lw, ZOD_LW(:,nlev+1-jlev,jcol))
     
    515515    ! Scale the incoming solar per band, if requested
    516516    if (config%use_spectral_solar_scaling) then
    517       do jg = 1,JPGPT_SW
    518         do jcol = istartcol,iendcol
     517      DO jg = 1,JPGPT_SW
     518        DO jcol = istartcol,iendcol
    519519          ZINCSOL(jcol,jg) = ZINCSOL(jcol,jg) * &
    520520            &   single_level%spectral_solar_scaling(config%i_band_from_reordered_g_sw(jg))
     
    527527    ! ZINCSOL will be zero.
    528528    if (present(incoming_sw)) then
    529       do jcol = istartcol,iendcol
     529      DO jcol = istartcol,iendcol
    530530        if (single_level%cos_sza(jcol) > 0.0_jprb) then
    531531! Added for DWD (2020)
     
    541541!    if (.true.) then
    542542      ! Account for reordered g points
    543       do jgreorder = 1,config%n_g_sw
     543      DO jgreorder = 1,config%n_g_sw
    544544        ig = config%i_g_from_reordered_g_sw(jgreorder)
    545         do jlev = 1,nlev
    546           do jcol = istartcol,iendcol
     545        DO jlev = 1,nlev
     546          DO jcol = istartcol,iendcol
    547547            ! Check for negative optical depth
    548548            od_sw (jgreorder,nlev+1-jlev,jcol) &
     
    558558    else
    559559      ! G points have not been reordered
    560       do jcol = istartcol,iendcol
    561         do jlev = 1,nlev
    562           do jg = 1,config%n_g_sw
     560      DO jcol = istartcol,iendcol
     561        DO jlev = 1,nlev
     562          DO jg = 1,config%n_g_sw
    563563            ! Check for negative optical depth
    564564            od_sw (jg,nlev+1-jlev,jcol) = max(config%min_gas_od_sw, ZOD_SW(jcol,jlev,jg))
     
    567567        end do
    568568        if (present(incoming_sw)) then
    569           do jg = 1,config%n_g_sw
     569          DO jg = 1,config%n_g_sw
    570570            incoming_sw(jg,jcol) = incoming_sw_scale(jcol) * ZINCSOL(jcol,jg)
    571571          end do
     
    636636    ! lowest interpolation bound, and the fraction into interpolation
    637637    ! interval
    638     do jlev = 1,nlev+1
    639       do jcol = istartcol,iendcol
     638    DO jlev = 1,nlev+1
     639      DO jcol = istartcol,iendcol
    640640        temperature = thermodynamics%temperature_hl(jcol,jlev+ilevoffset)
    641641        if (temperature < 339.0_jprb .and. temperature >= 160.0_jprb) then
     
    656656
    657657      ! Calculate Planck functions per band
    658       do jband = 1,config%n_bands_lw
     658      DO jband = 1,config%n_bands_lw
    659659        factor = zfluxfac * delwave(jband)
    660         do jcol = istartcol,iendcol
     660        DO jcol = istartcol,iendcol
    661661          planck_store(jcol,jband) = factor &
    662662               &  * (totplnk(ind(jcol),jband) &
     
    675675          ! Top-of-atmosphere half level - note that PFRAC is on model
    676676          ! levels not half levels
    677           do jgreorder = 1,config%n_g_lw
     677          DO jgreorder = 1,config%n_g_lw
    678678            iband = config%i_band_from_reordered_g_lw(jgreorder)
    679679            ig = config%i_g_from_reordered_g_lw(jgreorder)
     
    682682          end do
    683683        else
    684           do jgreorder = 1,config%n_g_lw
     684          DO jgreorder = 1,config%n_g_lw
    685685            iband = config%i_band_from_reordered_g_lw(jgreorder)
    686686            ig = config%i_g_from_reordered_g_lw(jgreorder)
     
    695695          ! Top-of-atmosphere half level - note that PFRAC is on model
    696696          ! levels not half levels
    697           do jg = 1,config%n_g_lw
     697          DO jg = 1,config%n_g_lw
    698698            iband = config%i_band_from_g_lw(jg)
    699699            planck_hl(jg,1,:) = planck_store(:,iband) * PFRAC(:,jg,nlev)
    700700          end do
    701701        else
    702           do jg = 1,config%n_g_lw
     702          DO jg = 1,config%n_g_lw
    703703            iband = config%i_band_from_g_lw(jg)
    704704            planck_tmp(:,jg) = planck_store(:,iband) * PFRAC(:,jg,nlev+2-jlev)
    705705          end do
    706           do jcol = istartcol,iendcol
     706          DO jcol = istartcol,iendcol
    707707            planck_hl(:,jlev,jcol) = planck_tmp(jcol,:)
    708708          end do
     
    763763
    764764    ! Work out surface interpolations
    765     do jcol = istartcol,iendcol
     765    DO jcol = istartcol,iendcol
    766766      Tsurf = temperature(jcol)
    767767      if (Tsurf < 339.0_jprb .and. Tsurf >= 160.0_jprb) then
     
    782782
    783783    ! Calculate Planck functions per band
    784     do jband = 1,config%n_bands_lw
     784    DO jband = 1,config%n_bands_lw
    785785      factor = zfluxfac * delwave(jband)
    786       do jcol = istartcol,iendcol
     786      DO jcol = istartcol,iendcol
    787787        planck_store(jcol,jband) = factor &
    788788             &  * (totplnk(ind(jcol),jband) &
     
    798798      ! in pressure since the the functions above treat pressure
    799799      ! decreasing with increasing index.
    800       do jgreorder = 1,config%n_g_lw
     800      DO jgreorder = 1,config%n_g_lw
    801801        iband = config%i_band_from_reordered_g_lw(jgreorder)
    802802        ig = config%i_g_from_reordered_g_lw(jgreorder)
     
    805805    else
    806806      ! G points have not been reordered
    807       do jg = 1,config%n_g_lw
     807      DO jg = 1,config%n_g_lw
    808808        iband = config%i_band_from_g_lw(jg)
    809809        planck_surf(jg,:) = planck_store(:,iband) * PFRAC(:,jg)
Note: See TracChangeset for help on using the changeset viewer.