3 use fruit
, only : assert_equals, assert_not_equals, assert_true
12 real(kind=DEFAULT_PRECISION) :: res
13 real(kind=DEFAULT_PRECISION),
parameter :: expected = -0.62203306596824359_default_precision
14 res =
qsaturation(0.0_default_precision, 0.0_default_precision)
15 call assert_equals(expected, res,
"Result when P=0 and T=0")
20 real(kind=DEFAULT_PRECISION) :: res
21 real(kind=DEFAULT_PRECISION),
parameter :: expected = 0.0_default_precision
22 res =
dqwsatdt(0.0_default_precision, 0.0_default_precision)
23 call assert_equals(expected, res,
"Result when SAT=0 and T=0 is 0")
28 real(kind=DEFAULT_PRECISION) :: res
29 real(kind=DEFAULT_PRECISION),
parameter :: expected = 0.0_default_precision
30 res =
dqwsatdt(0.0_default_precision,35.86_default_precision)
31 call assert_equals(expected, res,
"Result when T=qsa3 should be 0")
42 use fruit
, only : init_fruit, run_test_case, fruit_summary
real(kind=default_precision) function, public dqwsatdt(saturation_mixing_ratio, temperature)
Calculated the rate of change with temperature of saturation mixing ratio over liquid water...
integer, parameter, public default_precision
MPI communication type which we use for the prognostic and calculation data.
Contains common definitions for the data and datatypes used by MONC.
Saturation physics functionality which is used throughout the code.
subroutine test_dqwsatdt_zero
subroutine test_qsaturation_zero
real(kind=default_precision) function, public qsaturation(temperature, pressure)
Function to return the saturation mixing ratio over water based on tetans formular QS=3...
program test_saturation_driver
subroutine test_dqwsatdt_temp_qsa3