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