3 use fruit,
only : assert_equals, assert_not_equals, &
19 vals(i)=10.0_default_precision
20 zgrid(i)=10.0_default_precision
21 field(i)=10.0_default_precision
26 call assert_equals(10.0_default_precision, field(i),
"Test no change in field")
37 zgrid(1) = 10.0_default_precision
38 zgrid(2) = 9.0_default_precision
40 vals(i)=50.0_default_precision
41 zvals(i)=11.0_default_precision
43 zvals(1) = 10.0_default_precision
46 call assert_equals(50.0_default_precision, field(1),
"Test field(k) = vals(nn-1) when (zgrid(k)=zvals(nn-1)")
56 character(12) :: extrapolate
58 extrapolate =
'linear'
59 z = 0.0_default_precision
61 vals(i)=50.0_default_precision
62 zvals(i)=11.0_default_precision
64 zvals(1) = 10.0_default_precision
68 call assert_equals(f1, f2,
"Test linear is used by default")
77 character(12) :: extrapolate
79 extrapolate =
'linear'
80 z = 0.0_default_precision
81 f = 7.0_default_precision
83 vals(i)=50.0_default_precision
84 zvals(i)=11.0_default_precision
86 zvals(1) = 0.0_default_precision
90 call assert_equals(7.0_default_precision, f,
"Test linear is used by default")
100 use fruit,
only : init_fruit, run_test_case, fruit_summary