source: LMDZ.3.3/branches/rel-LF/libf/dyn3d/psextbar.F @ 468

Last change on this file since 468 was 2, checked in by lmdz, 25 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1      SUBROUTINE psextbar ( ps, psexbarxy )
2      IMPLICIT NONE
3
4c=======================================================================
5c
6c   Auteur:  P. Le Van
7c   -------
8c
9c   Objet:
10c   ------
11c
12c **********************************************************************
13c calcul des moyennes en x et en y de (pression au sol*aire variable) ..
14c **********************************************************************
15c
16c         ps          est un  argum. d'entree  pour le s-pg ..
17c         psexbarxy   est un  argum. de sortie pour le s-pg ..
18c
19c   Methode:
20c   --------
21c
22c    A chaque point scalaire P (i,j) est affecte 4 coefficients d'aires
23c       alpha1(i,j)  calcule  au point ( i+1/4,j-1/4 )
24c       alpha2(i,j)  calcule  au point ( i+1/4,j+1/4 )
25c       alpha3(i,j)  calcule  au point ( i-1/4,j+1/4 )
26c       alpha4(i,j)  calcule  au point ( i-1/4,j-1/4 )
27c
28c    Avec  alpha1(i,j) = aire(i+1/4,j-1/4)/ aire(i,j)       
29c
30c    N.B .  Pour plus de details, voir s-pg  ...  iniconst ...
31c
32c
33c
34c   alpha4 .         . alpha1    . alpha4
35c    (i,j)             (i,j)       (i+1,j)
36c
37c             P .        U .          . P
38c           (i,j)       (i,j)         (i+1,j)
39c
40c   alpha3 .         . alpha2    .alpha3
41c    (i,j)              (i,j)     (i+1,j)
42c
43c             V .        Z .          . V
44c           (i,j)
45c
46c   alpha4 .         . alpha1    .alpha4
47c   (i,j+1)            (i,j+1)   (i+1,j+1)
48c
49c             P .        U .          . P
50c          (i,j+1)                    (i+1,j+1)
51c
52c
53c
54c
55c                       On  a :
56c
57c    pbarx(i,j) = Pext(i  ,j) * ( alpha1(i  ,j) + alpha2(i,j))      +
58c                 Pext(i+1,j) * ( alpha3(i+1,j) + alpha4(i+1,j) )
59c     localise  au point  ... U (i,j) ...
60c
61c    pbary(i,j) = Pext(i,j  ) * ( alpha2(i,j  ) + alpha3(i,j  )     +
62c                 Pext(i,j+1) * ( alpha1(i,j+1) + alpha4(i,j+1) 
63c     localise  au point  ... V (i,j) ...
64c
65c  pbarxy(i,j)= Pext(i,j) *alpha2(i,j) + Pext(i+1,j) *alpha3(i+1,j) +
66c               Pext(i,j+1)*alpha1(i,j+1)+ Pext(i+1,j+1)*alpha4(i+1,j+1)
67c     localise  au point  ... Z (i,j) ...
68c
69c
70c
71c=======================================================================
72
73
74#include "dimensions.h"
75#include "paramet.h"
76#include "comgeom.h"
77
78      REAL ps( ip1jmp1 ), psexbarxy ( ip1jm ), pext( ip1jmp1 )
79
80      INTEGER  l, ij
81      EXTERNAL SCOPY
82c
83
84      DO ij = 1, ip1jmp1
85       pext(ij) = ps(ij) * aire(ij)
86      ENDDO
87
88
89      DO     5     ij = 1, ip1jm - 1
90      psexbarxy( ij ) = pext(ij)*alpha2(ij) + pext(ij+1)*alpha3(ij+1) +
91     *   pext(ij+iip1)*alpha1(ij+iip1) + pext(ij+iip2)*alpha4(ij+iip2)
92   5  CONTINUE
93
94
95c    ....  correction pour     psexbarxy( iip1,j )  ........
96
97CDIR$ IVDEP
98
99      DO 7 ij = iip1, ip1jm, iip1
100      psexbarxy( ij ) = psexbarxy( ij - iim )
101   7  CONTINUE
102
103
104      RETURN
105      END
Note: See TracBrowser for help on using the repository browser.