3 use testdrive,
only : new_unittest, unittest_type, error_type, check
5 initialize_graupel_vars, dim_nrhg, nrhg, nrhg1, rho_g, am_g, pi, &
6 initialize_parameters, ccg, &
7 initialize_bins_for_tables, dc, nbc
11 public :: collect_tempo_init_suite
16 subroutine collect_tempo_init_suite(testsuite)
18 type(unittest_type),
allocatable,
intent(out) :: testsuite(:)
21 new_unittest(
"checking thatdim_nrhg=9 when hail-aware = true", &
22 initializegraupelvars_dimnrhg9_when_hailawaretrue), &
23 new_unittest(
"checking that dim_nrhg=1 with hail-aware = false", &
24 initializegraupelvars_dimnrhg1_when_hailawarefalse), &
25 new_unittest(
"checking that ccg(2,4) = 7! = 5040", &
26 initializeparameters_ccgvalue5040), &
27 new_unittest(
"checking the value of the last dc bin, dc(nbc) = 100 microns", &
28 initializebinsfortables_lastdcbin100microns) &
30 end subroutine collect_tempo_init_suite
33 subroutine initializegraupelvars_dimnrhg9_when_hailawaretrue(error)
35 type(error_type),
allocatable,
intent(out) :: error
37 call initialize_graupel_vars(hail_flag=.true.)
38 call check(error, dim_nrhg, nrhg)
39 if (
allocated(error))
return
40 end subroutine initializegraupelvars_dimnrhg9_when_hailawaretrue
43 subroutine initializegraupelvars_dimnrhg1_when_hailawarefalse(error)
45 type(error_type),
allocatable,
intent(out) :: error
47 call initialize_graupel_vars(hail_flag=.false.)
48 call check(error, dim_nrhg, nrhg1)
49 if (
allocated(error))
return
50 end subroutine initializegraupelvars_dimnrhg1_when_hailawarefalse
53 subroutine initializeparameters_ccgvalue5040(error)
55 type(error_type),
allocatable,
intent(out) :: error
57 call initialize_parameters()
58 call check(error, ccg(2,4), 5040._wp)
59 if (
allocated(error))
return
60 end subroutine initializeparameters_ccgvalue5040
63 subroutine initializebinsfortables_lastdcbin100microns(error)
65 type(error_type),
allocatable,
intent(out) :: error
67 call initialize_bins_for_tables()
68 call check(error, dc(nbc), 100.e-6_wp)
69 if (
allocated(error))
return
70 end subroutine initializebinsfortables_lastdcbin100microns
72end module test_tempo_init_suite