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/yamada_c.F90

    r5144 r5158  
    162162  zt(:, :) = pt(:, :) + zalpha * d_t(:, :)
    163163
    164   do k = 1, klev
     164  DO k = 1, klev
    165165    exner(:, k) = (play(:, k) / plev(:, 1))**RKAPPA
    166166    masse(:, k) = (plev(:, k) - plev(:, k + 1)) / RG
     
    170170  ! Atmospheric mass at layer interfaces, where the TKE is computed
    171171  masseb(:, :) = 0.
    172   do k = 1, klev
     172  DO k = 1, klev
    173173    masseb(:, k) = masseb(:, k) + masse(:, k)
    174174    masseb(:, k + 1) = masseb(:, k + 1) + masse(:, k)
     
    178178  zlev(:, 1) = 0.
    179179  zlay(:, 1) = RCPD * teta(:, 1) * (1. - exner(:, 1))
    180   do k = 1, klev - 1
     180  DO k = 1, klev - 1
    181181    zlay(:, k + 1) = zlay(:, k) + 0.5 * RCPD * (teta(:, k) + teta(:, k + 1)) * (exner(:, k) - exner(:, k + 1)) / RG
    182182    zlev(:, k) = 0.5 * (zlay(:, k) + zlay(:, k + 1)) ! PASBO
     
    187187  fluxt(:, klev + 1) = 0.
    188188
    189   do k = klev, 1, -1
     189  DO k = klev, 1, -1
    190190    fluxu(:, k) = fluxu(:, k + 1) + masse(:, k) * d_u(:, k)
    191191    fluxv(:, k) = fluxv(:, k + 1) + masse(:, k) * d_v(:, k)
     
    197197  dddt(:, 1) = (exner(:, 1) - 1.) * fluxt(:, 1)
    198198
    199   do k = 2, klev
     199  DO k = 2, klev
    200200    dddu(:, k) = (zu(:, k) - zu(:, k - 1)) * fluxu(:, k)
    201201    dddv(:, k) = (zv(:, k) - zv(:, k - 1)) * fluxv(:, k)
     
    263263  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    264264
    265   do k = 2, klev
    266     do ig = 1, ngrid
     265  DO k = 2, klev
     266    DO ig = 1, ngrid
    267267      dz(ig, k) = zlay(ig, k) - zlay(ig, k - 1)
    268268      m2(ig, k) = ((zu(ig, k) - zu(ig, k - 1))**2 + (zv(ig, k) - zv(ig, k - 1))**2) / (dz(ig, k) * dz(ig, k))
     
    301301    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    302302
    303     do ig = 1, ngrid
     303    DO ig = 1, ngrid
    304304      sq(ig) = 1.e-10
    305305      sqz(ig) = 1.e-10
    306306    enddo
    307     do k = 2, klev - 1
    308       do ig = 1, ngrid
     307    DO k = 2, klev - 1
     308      DO ig = 1, ngrid
    309309        zq = sqrt(q2(ig, k))
    310310        sqz(ig) = sqz(ig) + zq * zlev(ig, k) * (zlay(ig, k) - zlay(ig, k - 1))
     
    312312      enddo
    313313    enddo
    314     do ig = 1, ngrid
     314    DO ig = 1, ngrid
    315315      l0(ig) = 0.2 * sqz(ig) / sq(ig)
    316316    enddo
    317     do k = 2, klev
    318       do ig = 1, ngrid
     317    DO k = 2, klev
     318      DO ig = 1, ngrid
    319319        l(ig, k) = fl(zlev(ig, k), l0(ig), q2(ig, k), n2(ig, k))
    320320      enddo
     
    329329
    330330    l0(:) = 150.
    331     do k = 2, klev
    332       do ig = 1, ngrid
     331    DO k = 2, klev
     332      DO ig = 1, ngrid
    333333        l(ig, k) = fl(zlev(ig, k), l0(ig), q2(ig, k), n2(ig, k))
    334334      enddo
Note: See TracChangeset for help on using the changeset viewer.