source: LMDZ.3.3/tags/IPSL-CM4_LJ27/libf/dyn3d/inter_barxy.F @ 492

Last change on this file since 492 was 492, checked in by (none), 20 years ago

This commit was manufactured by cvs2svn to create tag
'IPSL-CM4_LJ27'.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1       SUBROUTINE inter_barxy ( interfd,jnterfd,dlonid,dlatid ,
2     ,        champ,imod,jmod,rlonimod,rlatimod, jsort,champint )
3
4c    Auteur :   P. Le Van
5c
6       INTEGER interfd,jnterfd,imod,jmod
7       REAL champ(interfd,jnterfd +1 ),dlonid(interfd),dlatid(jnterfd),
8     ,      champint(imod,jsort)
9       REAL rlonimod(imod),rlatimod(jmod)
10
11#include "dimensions.h"
12#include "paramet.h"
13#include "comgeom2.h"
14
15       REAL champx(imod),champy(jnterfd +1,imod),chpn(imod),chps(imod)
16       REAL chhpn,chhps
17       REAL fmody(jjp1)
18c
19
20       DO j = 1, jnterfd + 1
21        CALL inter_barx( interfd, dlonid, champ( 1,j ),
22     ,                       imod, rlonimod , champx )
23         DO i = 1,imod
24           champy(j,i) = champx(i)
25         ENDDO
26       ENDDO
27
28       DO i = 1, imod
29        CALL inter_bary( jjm,jnterfd,dlatid,champy(1,i),
30     ,                     jmod ,rlatimod,  fmody     )
31          DO j = 1, jsort
32           champint(i,j) = fmody(j)
33          ENDDO
34       ENDDO
35
36       IF( jsort.EQ.jjp1)  THEN
37
38c   ....  Valeurs uniques  aux  poles ....
39c
40         DO i =  1,imod
41          chpn(i)  = aire( i,  1   ) * champint( i, 1   )
42          chps(i)  = aire( i, jjp1 ) * champint( i,jjp1 )
43         ENDDO
44          chhpn  = SSUM(imod,chpn,1)/apoln
45          chhps  = SSUM(imod,chps,1)/apols
46
47         DO i = 1, imod
48          champint( i,  1  ) = chhpn
49          champint( i, jjp1) = chhps
50         ENDDO
51c
52       ENDIF
53
54       RETURN
55       END
56
Note: See TracBrowser for help on using the repository browser.