Ignore:
Timestamp:
Aug 2, 2024, 2:12:03 PM (7 weeks 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/cospv2/modis_simulator.F90

    r5099 r5158  
    163163    cloudMask = retrievedTau(1:nSubCols) >= min_OpticalThickness
    164164   
    165     do i = 1, nSubCols
     165    DO i = 1, nSubCols
    166166       if(cloudMask(i)) then
    167167          ! ##################################################################################
     
    380380    reffIceWRK(1:nPoints,1:nSubCols) = merge(particle_size,R_UNDEF,iceCloudMask)
    381381    reffLiqWRK(1:nPoints,1:nSubCols) = merge(particle_size,R_UNDEF,waterCloudMask)
    382     do j=1,nPoints
     382    DO j=1,nPoints
    383383
    384384       ! Fill clear and optically thin subcolumns with fill
     
    439439    !   layers and use the trapezoidal rule.
    440440    totalTau = 0._wp; totalProduct = 0._wp
    441     do i = 2, size(tauIncrement)
     441    DO i = 2, size(tauIncrement)
    442442      if(totalTau + tauIncrement(i) > tauLimit) then
    443443        deltaX = tauLimit - totalTau
     
    479479    ! Find the extinction-weighted value of f(tau), assuming constant f within each layer
    480480    totalTau = 0._wp; totalProduct = 0._wp
    481     do i = 1, size(tauIncrement)
     481    DO i = 1, size(tauIncrement)
    482482      if(totalTau + tauIncrement(i) > tauLimit) then
    483483        deltaX       = tauLimit - totalTau
     
    712712    cloudMask(1:nLevels) = tau(1:nLevels) > 0.
    713713    cloudIndicies = pack((/ (i, i = 1, nLevels) /), mask = cloudMask)
    714     do i = 1, size(cloudIndicies)
     714    DO i = 1, size(cloudIndicies)
    715715       call two_stream(tau(cloudIndicies(i)), g(cloudIndicies(i)), w0(cloudIndicies(i)), Refl(i), Trans(i))
    716716    end do
     
    892892    Tran_cumulative(1) = Tran(1)   
    893893   
    894     do i=2, npts
     894    DO i=2, npts
    895895       ! place (add) previous combined layer(s) reflectance on top of layer i, w/black surface (or ignoring surface):
    896896       Refl_cumulative(i) = Refl_cumulative(i-1) + Refl(i)*(Tran_cumulative(i-1)**2)/(1._wp - Refl_cumulative(i-1) * Refl(i))
Note: See TracChangeset for help on using the changeset viewer.