source: LMDZ5/trunk/libf/dyn3d/dteta1.F @ 2293

Last change on this file since 2293 was 1907, checked in by lguez, 11 years ago

Added a copyright property to every file of the distribution, except
for the fcm files (which have their own copyright). Use svn propget on
a file to see the copyright. For instance:

$ svn propget copyright libf/phylmd/physiq.F90
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

Also added the files defining the CeCILL version 2 license, in French
and English, at the top of the LMDZ tree.

  • 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!
2! $Header$
3!
4      SUBROUTINE dteta1 ( teta, pbaru, pbarv, dteta)
5      IMPLICIT NONE
6
7c=======================================================================
8c
9c   Auteur:  P. Le Van
10c   -------
11c Modif F.Forget 03/94 (on retire q et dq  pour construire dteta1)
12c
13c   ********************************************************************
14c   ... calcul du terme de convergence horizontale du flux d'enthalpie
15c        potentielle   ......
16c   ********************************************************************
17c  .. teta,pbaru et pbarv sont des arguments d'entree  pour le s-pg ....
18c     dteta               sont des arguments de sortie pour le s-pg ....
19c
20c=======================================================================
21
22
23#include "dimensions.h"
24#include "paramet.h"
25#include "logic.h"
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
33c
34
35      DO 5 l = 1,llm
36
37      DO 1  ij = iip2, ip1jm - 1
38      hbxu(ij,l) = pbaru(ij,l) * 0.5 * ( teta(ij,l) + teta(ij+1,l) )
39   1  CONTINUE
40
41c    .... correction pour  hbxu(iip1,j,l)  .....
42c    ....   hbxu(iip1,j,l)= hbxu(1,j,l) ....
43
44CDIR$ IVDEP
45      DO 2 ij = iip1+ iip1, ip1jm, iip1
46      hbxu( ij, l ) = hbxu( ij - iim, l )
47   2  CONTINUE
48
49
50      DO 3 ij = 1,ip1jm
51      hbyv(ij,l)= pbarv(ij, l)* 0.5 * ( teta(ij, l)+ teta(ij +iip1,l) )
52   3  CONTINUE
53
54   5  CONTINUE
55
56
57        CALL  convflu ( hbxu, hbyv, llm, dteta )
58
59
60c    stockage dans  dh de la convergence horizont. filtree' du  flux
61c                  ....                           ...........
62c           d'enthalpie potentielle .
63
64      CALL filtreg( dteta, jjp1, llm, 2, 2, .true., 1)
65
66c
67      RETURN
68      END
Note: See TracBrowser for help on using the repository browser.