Line data Source code
1 : !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2 : !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
3 : !!!! !!!!
4 : !!!! ParaMonte: Parallel Monte Carlo and Machine Learning Library. !!!!
5 : !!!! !!!!
6 : !!!! Copyright (C) 2012-present, The Computational Data Science Lab !!!!
7 : !!!! !!!!
8 : !!!! This file is part of the ParaMonte library. !!!!
9 : !!!! !!!!
10 : !!!! LICENSE !!!!
11 : !!!! !!!!
12 : !!!! https://github.com/cdslaborg/paramonte/blob/main/LICENSE.md !!!!
13 : !!!! !!!!
14 : !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
15 : !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16 :
17 : !> \brief This module contains tests of the module [pm_distPiwiPoweto](@ref pm_distPiwiPoweto).
18 : !>
19 : !> \fintest
20 : !>
21 : !> \author
22 : !> \FatemehBagheri, 12:27 AM Tuesday, February 22, 2022, Dallas, TX
23 :
24 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
25 :
26 : module test_pm_distPiwiPoweto
27 :
28 : use pm_distPiwiPoweto
29 : use pm_err, only: err_type
30 : use pm_test, only: test_type, IK, LK
31 :
32 : implicit none
33 :
34 : private
35 : public :: setTest
36 : type(test_type) :: test
37 :
38 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
39 :
40 : interface
41 :
42 : #if RK5_ENABLED
43 : module function test_getPiwiPowetoLogPDF_RK5_1() result(assertion); logical(LK) :: assertion; end function
44 : #endif
45 : #if RK4_ENABLED
46 : module function test_getPiwiPowetoLogPDF_RK4_1() result(assertion); logical(LK) :: assertion; end function
47 : #endif
48 : #if RK3_ENABLED
49 : module function test_getPiwiPowetoLogPDF_RK3_1() result(assertion); logical(LK) :: assertion; end function
50 : #endif
51 : #if RK2_ENABLED
52 : module function test_getPiwiPowetoLogPDF_RK2_1() result(assertion); logical(LK) :: assertion; end function
53 : #endif
54 : #if RK1_ENABLED
55 : module function test_getPiwiPowetoLogPDF_RK1_1() result(assertion); logical(LK) :: assertion; end function
56 : #endif
57 :
58 : end interface
59 :
60 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
61 :
62 : interface
63 :
64 : #if RK5_ENABLED
65 : module function test_setPiwiPowetoLogPDF_RK5_1() result(assertion); logical(LK) :: assertion; end function
66 : #endif
67 : #if RK4_ENABLED
68 : module function test_setPiwiPowetoLogPDF_RK4_1() result(assertion); logical(LK) :: assertion; end function
69 : #endif
70 : #if RK3_ENABLED
71 : module function test_setPiwiPowetoLogPDF_RK3_1() result(assertion); logical(LK) :: assertion; end function
72 : #endif
73 : #if RK2_ENABLED
74 : module function test_setPiwiPowetoLogPDF_RK2_1() result(assertion); logical(LK) :: assertion; end function
75 : #endif
76 : #if RK1_ENABLED
77 : module function test_setPiwiPowetoLogPDF_RK1_1() result(assertion); logical(LK) :: assertion; end function
78 : #endif
79 :
80 : end interface
81 :
82 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
83 :
84 : interface
85 :
86 : #if RK5_ENABLED
87 : module function test_getPiwiPowetoCDF_RK5_1() result(assertion); logical(LK) :: assertion; end function
88 : #endif
89 : #if RK4_ENABLED
90 : module function test_getPiwiPowetoCDF_RK4_1() result(assertion); logical(LK) :: assertion; end function
91 : #endif
92 : #if RK3_ENABLED
93 : module function test_getPiwiPowetoCDF_RK3_1() result(assertion); logical(LK) :: assertion; end function
94 : #endif
95 : #if RK2_ENABLED
96 : module function test_getPiwiPowetoCDF_RK2_1() result(assertion); logical(LK) :: assertion; end function
97 : #endif
98 : #if RK1_ENABLED
99 : module function test_getPiwiPowetoCDF_RK1_1() result(assertion); logical(LK) :: assertion; end function
100 : #endif
101 :
102 : end interface
103 :
104 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
105 :
106 : interface
107 :
108 : #if RK5_ENABLED
109 : module function test_setPiwiPowetoCDF_RK5_1() result(assertion); logical(LK) :: assertion; end function
110 : #endif
111 : #if RK4_ENABLED
112 : module function test_setPiwiPowetoCDF_RK4_1() result(assertion); logical(LK) :: assertion; end function
113 : #endif
114 : #if RK3_ENABLED
115 : module function test_setPiwiPowetoCDF_RK3_1() result(assertion); logical(LK) :: assertion; end function
116 : #endif
117 : #if RK2_ENABLED
118 : module function test_setPiwiPowetoCDF_RK2_1() result(assertion); logical(LK) :: assertion; end function
119 : #endif
120 : #if RK1_ENABLED
121 : module function test_setPiwiPowetoCDF_RK1_1() result(assertion); logical(LK) :: assertion; end function
122 : #endif
123 :
124 : end interface
125 :
126 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
127 :
128 : contains
129 :
130 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
131 :
132 1 : subroutine setTest()
133 :
134 1 : test = test_type(MODULE_NAME)
135 :
136 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
137 :
138 : #if RK5_ENABLED
139 : call test%run(test_getPiwiPowetoLogPDF_RK5_1, SK_"test_getPiwiPowetoLogPDF_RK5_1")
140 : #endif
141 : #if RK4_ENABLED
142 1 : call test%run(test_getPiwiPowetoLogPDF_RK4_1, SK_"test_getPiwiPowetoLogPDF_RK4_1")
143 : #endif
144 : #if RK3_ENABLED
145 1 : call test%run(test_getPiwiPowetoLogPDF_RK3_1, SK_"test_getPiwiPowetoLogPDF_RK3_1")
146 : #endif
147 : #if RK2_ENABLED
148 1 : call test%run(test_getPiwiPowetoLogPDF_RK2_1, SK_"test_getPiwiPowetoLogPDF_RK2_1")
149 : #endif
150 : #if RK1_ENABLED
151 1 : call test%run(test_getPiwiPowetoLogPDF_RK1_1, SK_"test_getPiwiPowetoLogPDF_RK1_1")
152 : #endif
153 :
154 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
155 :
156 : #if RK5_ENABLED
157 : call test%run(test_setPiwiPowetoLogPDF_RK5_1, SK_"test_setPiwiPowetoLogPDF_RK5_1")
158 : #endif
159 : #if RK4_ENABLED
160 1 : call test%run(test_setPiwiPowetoLogPDF_RK4_1, SK_"test_setPiwiPowetoLogPDF_RK4_1")
161 : #endif
162 : #if RK3_ENABLED
163 1 : call test%run(test_setPiwiPowetoLogPDF_RK3_1, SK_"test_setPiwiPowetoLogPDF_RK3_1")
164 : #endif
165 : #if RK2_ENABLED
166 1 : call test%run(test_setPiwiPowetoLogPDF_RK2_1, SK_"test_setPiwiPowetoLogPDF_RK2_1")
167 : #endif
168 : #if RK1_ENABLED
169 1 : call test%run(test_setPiwiPowetoLogPDF_RK1_1, SK_"test_setPiwiPowetoLogPDF_RK1_1")
170 : #endif
171 :
172 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
173 :
174 : #if RK5_ENABLED
175 : call test%run(test_getPiwiPowetoCDF_RK5_1, SK_"test_getPiwiPowetoCDF_RK5_1")
176 : #endif
177 : #if RK4_ENABLED
178 1 : call test%run(test_getPiwiPowetoCDF_RK4_1, SK_"test_getPiwiPowetoCDF_RK4_1")
179 : #endif
180 : #if RK3_ENABLED
181 1 : call test%run(test_getPiwiPowetoCDF_RK3_1, SK_"test_getPiwiPowetoCDF_RK3_1")
182 : #endif
183 : #if RK2_ENABLED
184 1 : call test%run(test_getPiwiPowetoCDF_RK2_1, SK_"test_getPiwiPowetoCDF_RK2_1")
185 : #endif
186 : #if RK1_ENABLED
187 1 : call test%run(test_getPiwiPowetoCDF_RK1_1, SK_"test_getPiwiPowetoCDF_RK1_1")
188 : #endif
189 :
190 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
191 :
192 : #if RK5_ENABLED
193 : call test%run(test_setPiwiPowetoCDF_RK5_1, SK_"test_setPiwiPowetoCDF_RK5_1")
194 : #endif
195 : #if RK4_ENABLED
196 1 : call test%run(test_setPiwiPowetoCDF_RK4_1, SK_"test_setPiwiPowetoCDF_RK4_1")
197 : #endif
198 : #if RK3_ENABLED
199 1 : call test%run(test_setPiwiPowetoCDF_RK3_1, SK_"test_setPiwiPowetoCDF_RK3_1")
200 : #endif
201 : #if RK2_ENABLED
202 1 : call test%run(test_setPiwiPowetoCDF_RK2_1, SK_"test_setPiwiPowetoCDF_RK2_1")
203 : #endif
204 : #if RK1_ENABLED
205 1 : call test%run(test_setPiwiPowetoCDF_RK1_1, SK_"test_setPiwiPowetoCDF_RK1_1")
206 : #endif
207 :
208 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
209 1 : call test%summarize()
210 :
211 1 : end subroutine setTest
212 :
213 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
214 :
215 : end module test_pm_distPiwiPoweto
|