1 | ! $Id: fxysinus.f90 5159 2024-08-02 19:58:25Z fairhead $ |
---|
2 | |
---|
3 | SUBROUTINE fxysinus(rlatu, yprimu, rlatv, yprimv, rlatu1, yprimu1, & |
---|
4 | rlatu2, yprimu2, & |
---|
5 | rlonu, xprimu, rlonv, xprimv, rlonm025, xprimm025, rlonp025, xprimp025) |
---|
6 | |
---|
7 | USE comconst_mod, ONLY: pi |
---|
8 | USE lmdz_fxy_sin, ONLY: fx, fxprim, fy, fyprim |
---|
9 | USE lmdz_dimensions, ONLY: iim, jjm, llm, ndm |
---|
10 | USE lmdz_paramet |
---|
11 | IMPLICIT NONE |
---|
12 | |
---|
13 | ! Calcul des longitudes et des latitudes pour une fonction f(x,y) |
---|
14 | ! avec y = Asin( j ) . |
---|
15 | |
---|
16 | ! Auteur : P. Le Van |
---|
17 | |
---|
18 | ! |
---|
19 | |
---|
20 | |
---|
21 | |
---|
22 | INTEGER :: i, j |
---|
23 | |
---|
24 | REAL :: rlatu(jjp1), yprimu(jjp1), rlatv(jjm), yprimv(jjm), & |
---|
25 | rlatu1(jjm), yprimu1(jjm), rlatu2(jjm), yprimu2(jjm) |
---|
26 | REAL :: rlonu(iip1), xprimu(iip1), rlonv(iip1), xprimv(iip1), & |
---|
27 | rlonm025(iip1), xprimm025(iip1), rlonp025(iip1), xprimp025(iip1) |
---|
28 | |
---|
29 | ! ...... calcul des latitudes et de y' ..... |
---|
30 | |
---|
31 | DO j = 1, jjm + 1 |
---|
32 | rlatu(j) = fy (REAL(j)) |
---|
33 | yprimu(j) = fyprim(REAL(j)) |
---|
34 | ENDDO |
---|
35 | |
---|
36 | DO j = 1, jjm |
---|
37 | |
---|
38 | rlatv(j) = fy (REAL(j) + 0.5) |
---|
39 | rlatu1(j) = fy (REAL(j) + 0.25) |
---|
40 | rlatu2(j) = fy (REAL(j) + 0.75) |
---|
41 | |
---|
42 | yprimv(j) = fyprim(REAL(j) + 0.5) |
---|
43 | yprimu1(j) = fyprim(REAL(j) + 0.25) |
---|
44 | yprimu2(j) = fyprim(REAL(j) + 0.75) |
---|
45 | |
---|
46 | ENDDO |
---|
47 | |
---|
48 | |
---|
49 | ! ..... calcul des longitudes et de x' ..... |
---|
50 | |
---|
51 | DO i = 1, iim + 1 |
---|
52 | rlonv(i) = fx (REAL(i)) |
---|
53 | rlonu(i) = fx (REAL(i) + 0.5) |
---|
54 | rlonm025(i) = fx (REAL(i) - 0.25) |
---|
55 | rlonp025(i) = fx (REAL(i) + 0.25) |
---|
56 | |
---|
57 | xprimv (i) = fxprim (REAL(i)) |
---|
58 | xprimu (i) = fxprim (REAL(i) + 0.5) |
---|
59 | xprimm025(i) = fxprim (REAL(i) - 0.25) |
---|
60 | xprimp025(i) = fxprim (REAL(i) + 0.25) |
---|
61 | ENDDO |
---|
62 | |
---|
63 | |
---|
64 | RETURN |
---|
65 | END SUBROUTINE fxysinus |
---|
66 | |
---|