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/dyn3d/friction.F90

    r5136 r5158  
    5858  IF (friction_type==0) THEN
    5959    !   calcul des composantes au carre du vent naturel
    60     do j = 1, jjp1
    61       do i = 1, iip1
     60    DO j = 1, jjp1
     61      DO i = 1, iip1
    6262        u2(i, j) = ucov(i, j, 1) * ucov(i, j, 1) * unscu2(i, j)
    6363      enddo
    6464    enddo
    65     do j = 1, jjm
    66       do i = 1, iip1
     65    DO j = 1, jjm
     66      DO i = 1, iip1
    6767        v2(i, j) = vcov(i, j, 1) * vcov(i, j, 1) * unscv2(i, j)
    6868      enddo
     
    7070
    7171    !   calcul du module de V en dehors des poles
    72     do j = 2, jjm
    73       do i = 2, iip1
     72    DO j = 2, jjm
     73      DO i = 2, iip1
    7474        modv(i, j) = sqrt(0.5 * (u2(i - 1, j) + u2(i, j) + v2(i, j - 1) + v2(i, j)))
    7575      enddo
     
    8383    upols = 0.
    8484    vpols = 0.
    85     do i = 2, iip1
     85    DO i = 2, iip1
    8686      zco = cos(rlonv(i)) * (rlonu(i) - rlonu(i - 1))
    8787      zsi = sin(rlonv(i)) * (rlonu(i) - rlonu(i - 1))
     
    9595    vpn = sqrt(upoln * upoln + vpoln * vpoln) / pi
    9696    vps = sqrt(upols * upols + vpols * vpols) / pi
    97     do i = 1, iip1
     97    DO i = 1, iip1
    9898      ! modv(i,1)=vpn
    9999      ! modv(i,jjp1)=vps
     
    103103
    104104    !   calcul du frottement au sol.
    105     do j = 2, jjm
    106       do i = 1, iim
     105    DO j = 2, jjm
     106      DO i = 1, iim
    107107        ucov(i, j, 1) = ucov(i, j, 1) &
    108108                - cfric * pdt * 0.5 * (modv(i + 1, j) + modv(i, j)) * ucov(i, j, 1)
     
    110110      ucov(iip1, j, 1) = ucov(1, j, 1)
    111111    enddo
    112     do j = 1, jjm
    113       do i = 1, iip1
     112    DO j = 1, jjm
     113      DO i = 1, iip1
    114114        vcov(i, j, 1) = vcov(i, j, 1) &
    115115                - cfric * pdt * 0.5 * (modv(i, j + 1) + modv(i, j)) * vcov(i, j, 1)
     
    120120
    121121  IF (friction_type==1) THEN
    122     do l = 1, llm
     122    DO l = 1, llm
    123123      ucov(:, :, l) = ucov(:, :, l) * (1. - pdt * kfrict(l))
    124124      vcov(:, :, l) = vcov(:, :, l) * (1. - pdt * kfrict(l))
Note: See TracChangeset for help on using the changeset viewer.