source: CPL/oasis3/trunk/src/lib/anaisg/src/qcscur.f @ 1677

Last change on this file since 1677 was 1677, checked in by aclsce, 12 years ago

Imported oasis3 (tag ipslcm5a) from cvs server to svn server (igcmg project).

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