@@ -112,17 +112,19 @@ isdir(outdir) && rm(outdir, recursive = true)
112112
113113 normal_direction = SVector (one (RealT), one (RealT))
114114 surface_flux_function = flux_lax_friedrichs
115- orientation = 1
115+ orientations = [ 1 , 2 ]
116116 directions = [1 , 2 ]
117117
118- for direction in directions
118+ for direction in directions, orientation in orientations
119119 @test eltype (@inferred boundary_condition_slip_wall (u_inner, orientation,
120120 direction,
121121 x, t,
122122 surface_flux_function,
123- equations)) ==
124- RealT
123+ equations)) == RealT
124+ @test typeof (@inferred max_abs_speed_naive (u_ll, u_rr, orientation,
125+ equations)) == RealT
125126 end
127+
126128 @test eltype (@inferred flux (u, normal_direction, equations)) == RealT
127129 @test eltype (@inferred flux_ec (u_ll, u_rr, normal_direction, equations)) ==
128130 RealT
@@ -141,6 +143,8 @@ isdir(outdir) && rm(outdir, recursive = true)
141143 @test eltype (@inferred Trixi. max_abs_speeds (u, equations)) == RealT
142144 @test typeof (@inferred max_abs_speed_naive (u_ll, u_rr, normal_direction,
143145 equations)) == RealT
146+ @test typeof (@inferred max_abs_speed (u_ll, u_rr, normal_direction,
147+ equations)) == RealT
144148 end
145149 end
146150
@@ -157,16 +161,20 @@ isdir(outdir) && rm(outdir, recursive = true)
157161
158162 normal_direction = SVector (one (RealT), one (RealT))
159163 surface_flux_function = (flux_lax_friedrichs, flux_zero)
160- orientation = 1
164+ orientations = [ 1 , 2 ]
161165 directions = [1 , 2 ]
162166
163- for direction in directions
167+ for direction in directions, orientation in orientations
164168 @test eltype (@inferred boundary_condition_slip_wall (u_inner, orientation,
165169 direction,
166170 x, t,
167171 surface_flux_function,
168172 equations)) ==
169173 SVector{5 , RealT}
174+ @test typeof (@inferred max_abs_speed_naive (u_ll, u_rr, orientation,
175+ equations)) == RealT
176+ @test typeof (@inferred max_abs_speed (u_ll, u_rr, orientation,
177+ equations)) == RealT
170178 end
171179 @test eltype (@inferred flux (u, normal_direction, equations)) == RealT
172180 @test eltype (@inferred flux_ec (u_ll, u_rr, normal_direction, equations)) ==
@@ -186,6 +194,8 @@ isdir(outdir) && rm(outdir, recursive = true)
186194 @test eltype (@inferred Trixi. max_abs_speeds (u, equations)) == RealT
187195 @test typeof (@inferred max_abs_speed_naive (u_ll, u_rr, normal_direction,
188196 equations)) == RealT
197+ @test typeof (@inferred max_abs_speed (u_ll, u_rr, normal_direction,
198+ equations)) == RealT
189199 end
190200 end
191201
@@ -200,16 +210,13 @@ isdir(outdir) && rm(outdir, recursive = true)
200210 one (RealT), one (RealT))
201211
202212 surface_flux_function = flux_lax_friedrichs
203- orientation = 1
204- directions = [1 , 2 ]
213+ orientations = [1 , 2 , 3 ]
205214
206- for direction in directions
207- @test eltype (@inferred boundary_condition_slip_wall (u_inner, orientation,
208- direction,
209- x, t,
210- surface_flux_function,
211- equations)) ==
212- RealT
215+ for orientation in orientations
216+ @test typeof (@inferred max_abs_speed_naive (u_ll, u_rr, orientation,
217+ equations)) == RealT
218+ @test typeof (@inferred max_abs_speed (u_ll, u_rr, orientation,
219+ equations)) == RealT
213220 end
214221 normal_direction = SVector (one (RealT), one (RealT), one (RealT))
215222 @test eltype (@inferred flux (u, normal_direction, equations)) == RealT
@@ -230,6 +237,8 @@ isdir(outdir) && rm(outdir, recursive = true)
230237 @test eltype (@inferred Trixi. max_abs_speeds (u, equations)) == RealT
231238 @test typeof (@inferred max_abs_speed_naive (u_ll, u_rr, normal_direction,
232239 equations)) == RealT
240+ @test typeof (@inferred max_abs_speed (u_ll, u_rr, normal_direction,
241+ equations)) == RealT
233242 end
234243 end
235244 @timed_testset " Compressible Euler Potential Temperature With Gravity 3D" begin
@@ -245,6 +254,14 @@ isdir(outdir) && rm(outdir, recursive = true)
245254
246255 normal_direction = SVector (one (RealT), one (RealT), one (RealT))
247256
257+ orientations = [1 , 2 , 3 ]
258+
259+ for orientation in orientations
260+ @test typeof (@inferred max_abs_speed_naive (u_ll, u_rr, orientation,
261+ equations)) == RealT
262+ @test typeof (@inferred max_abs_speed (u_ll, u_rr, orientation,
263+ equations)) == RealT
264+ end
248265 @test eltype (@inferred flux (u, normal_direction, equations)) == RealT
249266 @test eltype (@inferred flux_ec (u_ll, u_rr, normal_direction, equations)) ==
250267 RealT
@@ -262,6 +279,8 @@ isdir(outdir) && rm(outdir, recursive = true)
262279 @test eltype (@inferred Trixi. max_abs_speeds (u, equations)) == RealT
263280 @test typeof (@inferred max_abs_speed_naive (u_ll, u_rr, normal_direction,
264281 equations)) == RealT
282+ @test typeof (@inferred max_abs_speed (u_ll, u_rr, normal_direction,
283+ equations)) == RealT
265284 end
266285 end
267286
0 commit comments