1 |
heimbach |
1.1 |
c $Header: /u/gcmpack/development/heimbach/ecco_env/pkg/exf/exf_bulkqsat.F,v 1.4 2001/02/02 19:43:45 heimbach Exp $ |
2 |
|
|
|
3 |
|
|
#include "EXF_CPPOPTIONS.h" |
4 |
|
|
|
5 |
|
|
|
6 |
|
|
_RL function exf_BulkqSat( |
7 |
|
|
I tkelvin |
8 |
|
|
& ) |
9 |
|
|
|
10 |
|
|
c ================================================================== |
11 |
|
|
c FUNCTION exf_BulkqSat |
12 |
|
|
c ================================================================== |
13 |
|
|
c |
14 |
|
|
c o Compute the saturation specific humidity. |
15 |
|
|
c |
16 |
|
|
c started: Christian Eckert eckert@mit.edu 27-Aug-1999 |
17 |
|
|
c |
18 |
|
|
c changed: Christian Eckert eckert@mit.edu 14-Jan-2000 |
19 |
|
|
c |
20 |
|
|
c - Restructured the code in order to create a package |
21 |
|
|
c for the MITgcmUV. |
22 |
|
|
c |
23 |
|
|
c Patrick Heimbach heimbach@mit.edu 05-May-2000 |
24 |
|
|
c |
25 |
|
|
c - Included appropriate CPP options |
26 |
|
|
c ALLOW_BULKFORMULAE, ALLOW_ATM_TEMP |
27 |
|
|
c |
28 |
|
|
c ================================================================== |
29 |
|
|
c FUNCTION exf_BulkqSat |
30 |
|
|
c ================================================================== |
31 |
|
|
|
32 |
|
|
implicit none |
33 |
|
|
|
34 |
|
|
#if (defined (ALLOW_BULKFORMULAE) && defined (ALLOW_ATM_TEMP)) |
35 |
|
|
|
36 |
|
|
c == global variables == |
37 |
|
|
|
38 |
|
|
#include "SIZE.h" |
39 |
|
|
#include "exf_constants.h" |
40 |
|
|
|
41 |
|
|
c == function arguments == |
42 |
|
|
_RL tkelvin |
43 |
|
|
|
44 |
|
|
c == end of interface == |
45 |
|
|
|
46 |
|
|
exf_BulkqSat = cvapor_fac/exp(cvapor_exp/tkelvin) |
47 |
|
|
|
48 |
|
|
#else |
49 |
|
|
|
50 |
|
|
c == function arguments == |
51 |
|
|
_RL tkelvin |
52 |
|
|
|
53 |
|
|
exf_BulkqSat = 0.0 |
54 |
|
|
#endif |
55 |
|
|
|
56 |
|
|
end |
57 |
|
|
|
58 |
|
|
|
59 |
|
|
|