3 ! Updated to CESM1.0.3 (CAM5.1.01) by Balwinder.Singh@pnnl.gov
5 !------------------------------------------------------------------------
6 ! Based on esinti.F90 from CAM
7 ! Ported to WRF by William.Gustafson@pnl.gov, Nov. 2009
8 ! Updated to CESM_1_0_1, Nov. 2010
9 !------------------------------------------------------------------------
12 module module_cam_esinti
22 subroutine esinti(epslon ,latvap ,latice ,rh2o ,cpair ,tmelt )
23 !-----------------------------------------------------------------------
26 ! Initialize es lookup tables
29 ! <Describe the algorithm(s) used in the routine.>
30 ! <Also include any applicable external references.>
34 !-----------------------------------------------------------------------
35 use shr_kind_mod, only: r8 => shr_kind_r8
36 use wv_saturation, only: gestbl
38 !------------------------------Arguments--------------------------------
42 real(r8), intent(in) :: epslon ! Ratio of h2o to dry air molecular weights
43 real(r8), intent(in) :: latvap ! Latent heat of vaporization
44 real(r8), intent(in) :: latice ! Latent heat of fusion
45 real(r8), intent(in) :: rh2o ! Gas constant for water vapor
46 real(r8), intent(in) :: cpair ! Specific heat of dry air
47 real(r8), intent(in) :: tmelt ! Melting point of water (K)
49 !---------------------------Local workspace-----------------------------
51 real(r8) tmn ! Minimum temperature entry in table
52 real(r8) tmx ! Maximum temperature entry in table
53 real(r8) trice ! Trans range from es over h2o to es over ice
54 logical ip ! Ice phase (true or false)
56 !-----------------------------------------------------------------------
58 ! Specify control parameters first
60 #if ( defined WACCM_PHYS)
69 ! Call gestbl to build saturation vapor pressure table.
71 call gestbl(tmn ,tmx ,trice ,ip ,epslon , &
72 latvap ,latice ,rh2o ,cpair ,tmelt )
77 end module module_cam_esinti