1 | SUBROUTINE qcscur (psgr, kngx, kngy, psurf) |
---|
2 | C**** |
---|
3 | C ***************************** |
---|
4 | C * OASIS ROUTINE - LEVEL T * |
---|
5 | C * ------------- ------- * |
---|
6 | C ***************************** |
---|
7 | C |
---|
8 | C**** *qcscur* - Arithmetic routine |
---|
9 | C |
---|
10 | C |
---|
11 | C Purpose: |
---|
12 | C ------- |
---|
13 | C Calculate surface element for orth.& curvil. grid. |
---|
14 | C The input surface contains the Rearth**2 factor. |
---|
15 | C |
---|
16 | C** Interface: |
---|
17 | C --------- |
---|
18 | C *CALL* *qcscur(psgr, kngx, kngy, psurf)* |
---|
19 | C |
---|
20 | C Input: |
---|
21 | C ----- |
---|
22 | C psurf : grid square surface elements (real 2D) |
---|
23 | C kngx : number of longitudes |
---|
24 | C kngy : number of latitudes |
---|
25 | C |
---|
26 | C Output: |
---|
27 | C ------ |
---|
28 | C psgr : spheric grid square surface elements (real 2D) |
---|
29 | C |
---|
30 | C Workspace: |
---|
31 | C --------- |
---|
32 | C None |
---|
33 | C |
---|
34 | C External: |
---|
35 | C -------- |
---|
36 | C None |
---|
37 | C |
---|
38 | C References: |
---|
39 | C ---------- |
---|
40 | C O. Thual, Simple ocean-atmosphere interpolation. |
---|
41 | C Part A: The method, EPICOA 0629 (1992) |
---|
42 | C Part B: Software implementation, EPICOA 0630 (1992) |
---|
43 | C See also OASIS manual (1995) |
---|
44 | C |
---|
45 | C History: |
---|
46 | C ------- |
---|
47 | C Version Programmer Date Description |
---|
48 | C ------- ---------- ---- ----------- |
---|
49 | C 1.0 O. Thual 93/04/15 created |
---|
50 | C 1.1 E. Guilyardi 93/11/04 modified |
---|
51 | C 2.0 L. Terray 95/10/01 modified: new structure |
---|
52 | C |
---|
53 | C %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
54 | C |
---|
55 | C* ---------------------------- Include files --------------------------- |
---|
56 | C |
---|
57 | USE mod_kinds_oasis |
---|
58 | USE mod_unit |
---|
59 | C |
---|
60 | C* ---------------------------- Argument declarations ------------------- |
---|
61 | C |
---|
62 | REAL (kind=ip_realwp_p) psurf(kngx,kngy) |
---|
63 | REAL (kind=ip_realwp_p) psgr(kngx,kngy) |
---|
64 | C |
---|
65 | C* ---------------------------- Poema verses ---------------------------- |
---|
66 | C |
---|
67 | C %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
68 | C |
---|
69 | C* 1. Initializations |
---|
70 | C --------------- |
---|
71 | C |
---|
72 | zradi = 6371229. |
---|
73 | zradi2 = zradi**2 |
---|
74 | zradinv = 1. / zradi2 |
---|
75 | C |
---|
76 | C |
---|
77 | C* 2. Surfaces |
---|
78 | C -------- |
---|
79 | C* Surface calculation |
---|
80 | C |
---|
81 | DO 210 j2 = 1, kngy |
---|
82 | DO 220 j1 = 1, kngx |
---|
83 | psgr(j1,j2) = psurf(j1,j2) * zradinv |
---|
84 | 220 CONTINUE |
---|
85 | 210 CONTINUE |
---|
86 | C |
---|
87 | C* End of routine |
---|
88 | C |
---|
89 | RETURN |
---|
90 | END |
---|
91 | |
---|
92 | |
---|
93 | |
---|
94 | |
---|
95 | |
---|
96 | |
---|
97 | |
---|