Last change
on this file since 5133 was
5119,
checked in by abarral, 5 months ago
|
enforce PRIVATE by default in several modules, expose PUBLIC as needed
move eigen.f90 to obsolete/
(lint) aslong the way
|
File size:
500 bytes
|
Line | |
---|
1 | module esat_m |
---|
2 | |
---|
3 | IMPLICIT NONE |
---|
4 | |
---|
5 | CONTAINS |
---|
6 | |
---|
7 | elemental real function esat(T, P) |
---|
8 | |
---|
9 | ! Saturation vapor pressure of water in Pa. Buck, 1981, |
---|
10 | ! J. Appl. Meteor. 20, 1527-1532, equation (8). |
---|
11 | |
---|
12 | REAL, INTENT(IN):: T ! temperature, in K |
---|
13 | REAL, INTENT(IN):: P ! air pressure, in Pa |
---|
14 | |
---|
15 | !-------------------------------------------------------------------- |
---|
16 | |
---|
17 | esat = (1.0007 + 3.46e-8 * P) * 6.1121e2 & |
---|
18 | * exp(17.502 * (T - 273.15) / (T - 32.18)) |
---|
19 | |
---|
20 | END FUNCTION esat |
---|
21 | |
---|
22 | END MODULE esat_m |
---|
Note: See
TracBrowser
for help on using the repository browser.