source: CPL/oasis3/trunk/src/lib/anaisg/src/qlgaus.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: 1.7 KB
Line 
1      FUNCTION qlgaus (pu, pvar)
2C****
3C               ******************************
4C               * OASIS FUNCTION  -  LEVEL 3 *
5C               * --------------     ------- *
6C               ******************************
7C
8C**** *qlgaus* - Gaussian weight function
9C
10C
11C     Purpose: 
12C     -------
13C     To calculate exp [-.5 * u / pvar]
14C
15C
16C**   Interface:
17C     ---------
18C       *zz=*   *qlgaus(pu, pvar)*
19C
20C     Input:
21C     -----   
22C                pu   : the distance squared
23C                pvar :  the gaussian variance
24C
25C     Output:
26C     ------
27C     None
28C
29C     Workspace:
30C     ---------
31C     None
32C
33C     External:
34C     --------
35C     None
36C
37C     References:
38C     ----------
39C     O. Thual, Simple ocean-atmosphere interpolation. 
40C               Part A: The method, EPICOA 0629 (1992)
41C               Part B: Software implementation, EPICOA 0630 (1992)
42C     See also OASIS manual (1995)
43C
44C     History:
45C     -------
46C       Version   Programmer     Date      Description
47C       -------   ----------     ----      ----------- 
48C       1.1       O. Thual       93/04/15  created 
49C       2.0       L. Terray      95/10/01  modified: new structure
50C
51C %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
52C
53C* ---------------------------- Include files ---------------------------
54C
55      USE mod_kinds_oasis
56      USE mod_unit
57C
58      REAL (kind=ip_realwp_p) :: qlgaus
59C
60C* ---------------------------- Poema verses ----------------------------
61C
62C %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
63C
64C*    1. Calculation
65C        -----------
66C
67      qlgaus = exp(-.5*pu/pvar)
68C
69C* End of FUNCTION
70C
71      RETURN
72      END
Note: See TracBrowser for help on using the repository browser.