@@ -291,5 +291,55 @@ isdir(outdir) && rm(outdir, recursive = true)
291291 @test typeof (@inferred lake_at_rest_error (u, equations)) == RealT
292292 end
293293 end
294+ @timed_testset " Hyperbolic Sainte-Marie Equations 1D" begin
295+ for RealT in (Float32, Float64)
296+ equations = @inferred HyperbolicSainteMarieEquations1D (gravity = RealT (9.81 ),
297+ b0 = RealT (0.1 ))
298+
299+ x = SVector (zero (RealT))
300+ t = zero (RealT)
301+ u = u_ll = u_rr = u_inner = cons = SVector (one (RealT), one (RealT), one (RealT))
302+ orientation = 1
303+ directions = [1 , 2 ]
304+ normal_direction = SVector (one (RealT))
305+ alpha_coefficients = RealT .((1 / 2 , 1.0 , 2 / 3 ))
306+ surface_flux_functions = (flux_conservative_artiano_ranocha (alpha_coefficients... ),
307+ flux_nonconservative_artiano_ranocha (alpha_coefficients... ))
308+ dissipation = DissipationLocalLaxFriedrichs ()
309+ numflux = FluxHLL ()
310+
311+ @test eltype (@inferred initial_condition_convergence_test (x, t, equations)) ==
312+ RealT
313+ @test eltype (@inferred initial_condition_weak_blast_wave (x, t, equations)) ==
314+ RealT
315+ @test eltype (@inferred source_terms_convergence_test (u, x, t, equations)) ==
316+ RealT
317+
318+ for direction in directions
319+ @test eltype (@inferred boundary_condition_slip_wall (u_inner,
320+ orientation,
321+ direction,
322+ x, t,
323+ surface_flux_functions,
324+ equations)) ==
325+ SVector{5 , RealT}
326+ end
327+
328+ @test eltype (@inferred surface_flux_functions[1 ](u_ll, u_rr, orientation,
329+ equations)) == RealT
330+ @test eltype (@inferred surface_flux_functions[2 ](u_ll, u_rr, orientation,
331+ equations)) == RealT
332+
333+ @test eltype (@inferred Trixi. max_abs_speeds (u, equations)) == RealT
334+
335+ @test typeof (@inferred velocity (u, equations)) == RealT
336+ @test eltype (@inferred cons2prim (u, equations)) == RealT
337+ @test eltype (@inferred prim2cons (u, equations)) == RealT
338+ @test eltype (@inferred cons2entropy (u, equations)) == RealT
339+ @test typeof (@inferred entropy (cons, equations)) == RealT
340+ @test typeof (@inferred energy_total (cons, equations)) == RealT
341+ @test typeof (@inferred lake_at_rest_error (u, equations)) == RealT
342+ end
343+ end
294344end
295345end # module
0 commit comments