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
18 : !> This file contains procedure implementations of tests of [pm_sampleShift](@ref pm_sampleShift).
19 : !>
20 : !> \fintest
21 : !>
22 : !> \author
23 : !> \FatemehBagheri, Wednesday 5:03 PM, August 11, 2021, Dallas, TX
24 :
25 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
26 :
27 : submodule (test_pm_sampleShift) routines ! LCOV_EXCL_LINE
28 :
29 : use pm_complexCompareAll, only: operator(<)
30 : use pm_arrayResize, only: setResized
31 : use pm_arrayChoice, only: getChoice
32 : use pm_distUnif, only: getUnifRand
33 : use pm_distUnif, only: setUnifRand
34 : implicit none
35 :
36 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
37 :
38 : contains
39 :
40 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
41 :
42 : #define getShifted_ENABLED 1
43 :
44 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
45 :
46 : #define CK_ENABLED 1
47 :
48 : #if CK5_ENABLED
49 : module procedure test_getShifted_CK5
50 : use pm_kind, only: TKC => CK5
51 : #include "test_pm_sampleShift@routines.inc.F90"
52 : end procedure
53 : #endif
54 :
55 : #if CK4_ENABLED
56 1 : module procedure test_getShifted_CK4
57 : use pm_kind, only: TKC => CK4
58 : #include "test_pm_sampleShift@routines.inc.F90"
59 : end procedure
60 : #endif
61 :
62 : #if CK3_ENABLED
63 2 : module procedure test_getShifted_CK3
64 : use pm_kind, only: TKC => CK3
65 : #include "test_pm_sampleShift@routines.inc.F90"
66 : end procedure
67 : #endif
68 :
69 : #if CK2_ENABLED
70 2 : module procedure test_getShifted_CK2
71 : use pm_kind, only: TKC => CK2
72 : #include "test_pm_sampleShift@routines.inc.F90"
73 : end procedure
74 : #endif
75 :
76 : #if CK1_ENABLED
77 2 : module procedure test_getShifted_CK1
78 : use pm_kind, only: TKC => CK1
79 : #include "test_pm_sampleShift@routines.inc.F90"
80 : end procedure
81 : #endif
82 :
83 : #undef CK_ENABLED
84 :
85 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
86 :
87 : #define RK_ENABLED 1
88 :
89 : #if RK5_ENABLED
90 : module procedure test_getShifted_RK5
91 : use pm_kind, only: TKC => RK5
92 : #include "test_pm_sampleShift@routines.inc.F90"
93 : end procedure
94 : #endif
95 :
96 : #if RK4_ENABLED
97 1 : module procedure test_getShifted_RK4
98 : use pm_kind, only: TKC => RK4
99 : #include "test_pm_sampleShift@routines.inc.F90"
100 : end procedure
101 : #endif
102 :
103 : #if RK3_ENABLED
104 2 : module procedure test_getShifted_RK3
105 : use pm_kind, only: TKC => RK3
106 : #include "test_pm_sampleShift@routines.inc.F90"
107 : end procedure
108 : #endif
109 :
110 : #if RK2_ENABLED
111 2 : module procedure test_getShifted_RK2
112 : use pm_kind, only: TKC => RK2
113 : #include "test_pm_sampleShift@routines.inc.F90"
114 : end procedure
115 : #endif
116 :
117 : #if RK1_ENABLED
118 2 : module procedure test_getShifted_RK1
119 : use pm_kind, only: TKC => RK1
120 : #include "test_pm_sampleShift@routines.inc.F90"
121 : end procedure
122 : #endif
123 :
124 : #undef RK_ENABLED
125 :
126 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
127 :
128 : #undef getShifted_ENABLED
129 :
130 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
131 :
132 : #define setShifted_ENABLED 1
133 :
134 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
135 :
136 : #define CK_ENABLED 1
137 :
138 : #if CK5_ENABLED
139 : module procedure test_setShifted_CK5
140 : use pm_kind, only: TKC => CK5
141 : #include "test_pm_sampleShift@routines.inc.F90"
142 : end procedure
143 : #endif
144 :
145 : #if CK4_ENABLED
146 1 : module procedure test_setShifted_CK4
147 : use pm_kind, only: TKC => CK4
148 : #include "test_pm_sampleShift@routines.inc.F90"
149 : end procedure
150 : #endif
151 :
152 : #if CK3_ENABLED
153 2 : module procedure test_setShifted_CK3
154 : use pm_kind, only: TKC => CK3
155 : #include "test_pm_sampleShift@routines.inc.F90"
156 : end procedure
157 : #endif
158 :
159 : #if CK2_ENABLED
160 2 : module procedure test_setShifted_CK2
161 : use pm_kind, only: TKC => CK2
162 : #include "test_pm_sampleShift@routines.inc.F90"
163 : end procedure
164 : #endif
165 :
166 : #if CK1_ENABLED
167 2 : module procedure test_setShifted_CK1
168 : use pm_kind, only: TKC => CK1
169 : #include "test_pm_sampleShift@routines.inc.F90"
170 : end procedure
171 : #endif
172 :
173 : #undef CK_ENABLED
174 :
175 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
176 :
177 : #define RK_ENABLED 1
178 :
179 : #if RK5_ENABLED
180 : module procedure test_setShifted_RK5
181 : use pm_kind, only: TKC => RK5
182 : #include "test_pm_sampleShift@routines.inc.F90"
183 : end procedure
184 : #endif
185 :
186 : #if RK4_ENABLED
187 1 : module procedure test_setShifted_RK4
188 : use pm_kind, only: TKC => RK4
189 : #include "test_pm_sampleShift@routines.inc.F90"
190 : end procedure
191 : #endif
192 :
193 : #if RK3_ENABLED
194 2 : module procedure test_setShifted_RK3
195 : use pm_kind, only: TKC => RK3
196 : #include "test_pm_sampleShift@routines.inc.F90"
197 : end procedure
198 : #endif
199 :
200 : #if RK2_ENABLED
201 2 : module procedure test_setShifted_RK2
202 : use pm_kind, only: TKC => RK2
203 : #include "test_pm_sampleShift@routines.inc.F90"
204 : end procedure
205 : #endif
206 :
207 : #if RK1_ENABLED
208 2 : module procedure test_setShifted_RK1
209 : use pm_kind, only: TKC => RK1
210 : #include "test_pm_sampleShift@routines.inc.F90"
211 : end procedure
212 : #endif
213 :
214 : #undef RK_ENABLED
215 :
216 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
217 :
218 : #undef setShifted_ENABLED
219 :
220 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
221 :
222 : end submodule routines
|