source: LMDZ6/branches/Amaury_dev/libf/dyn3d/dteta1.F90 @ 5159

Last change on this file since 5159 was 5159, checked in by abarral, 7 weeks ago

Put dimensions.h and paramet.h into modules

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1! $Header$
2
3SUBROUTINE dteta1(teta, pbaru, pbarv, dteta)
4  USE lmdz_filtreg, ONLY: filtreg
5  USE lmdz_dimensions, ONLY: iim, jjm, llm, ndm
6  USE lmdz_paramet
7  IMPLICIT NONE
8
9  !=======================================================================
10
11  !   Auteur:  P. Le Van
12  !   -------
13  ! Modif F.Forget 03/94 (on retire q et dq  pour construire dteta1)
14
15  !   ********************************************************************
16  !   ... calcul du terme de convergence horizontale du flux d'enthalpie
17  !    potentielle   ......
18  !   ********************************************************************
19  !  .. teta,pbaru et pbarv sont des arguments d'entree  pour le s-pg ....
20  ! dteta               sont des arguments de sortie pour le s-pg ....
21
22  !=======================================================================
23
24
25
26
27  REAL :: teta(ip1jmp1, llm), pbaru(ip1jmp1, llm), pbarv(ip1jm, llm)
28  REAL :: dteta(ip1jmp1, llm)
29  INTEGER :: l, ij
30
31  REAL :: hbyv(ip1jm, llm), hbxu(ip1jmp1, llm)
32
33  !
34
35  DO l = 1, llm
36
37    DO ij = iip2, ip1jm - 1
38      hbxu(ij, l) = pbaru(ij, l) * 0.5 * (teta(ij, l) + teta(ij + 1, l))
39    END DO
40
41    !    .... correction pour  hbxu(iip1,j,l)  .....
42    !    ....   hbxu(iip1,j,l)= hbxu(1,j,l) ....
43
44    !DIR$ IVDEP
45    DO ij = iip1 + iip1, ip1jm, iip1
46      hbxu(ij, l) = hbxu(ij - iim, l)
47    END DO
48
49    DO ij = 1, ip1jm
50      hbyv(ij, l) = pbarv(ij, l) * 0.5 * (teta(ij, l) + teta(ij + iip1, l))
51    END DO
52
53  END DO
54
55  CALL  convflu (hbxu, hbyv, llm, dteta)
56
57
58  !    stockage dans  dh de la convergence horizont. filtree' du  flux
59  ! ....                           ...........
60  ! d'enthalpie potentielle .
61
62  CALL filtreg(dteta, jjp1, llm, 2, 2, .TRUE., 1)
63
64  !
65
66END SUBROUTINE dteta1
Note: See TracBrowser for help on using the repository browser.