1 | SUBROUTINE inter_barxy ( interfd,jnterfd,dlonid,dlatid , |
---|
2 | , champ,imod,jmod,rlonimod,rlatimod, jsort,champint ) |
---|
3 | |
---|
4 | c Auteur : P. Le Van |
---|
5 | c |
---|
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) |
---|
18 | c |
---|
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 | |
---|
38 | c .... Valeurs uniques aux poles .... |
---|
39 | c |
---|
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 |
---|
51 | c |
---|
52 | ENDIF |
---|
53 | |
---|
54 | RETURN |
---|
55 | END |
---|
56 | |
---|