Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLampert committed Sep 11, 2024
1 parent 89d5b86 commit 406e5ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_visualization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ using DispersiveShallowWater
using Plots

@testset "Visualization" begin
trixi_include(@__MODULE__, default_example(), tspan = (0.0, 1.0))
custom_integral(q, equations) = q[1]^2
DispersiveShallowWater.pretty_form_utf(::typeof(custom_integral)) = "∫η²"
trixi_include(@__MODULE__, default_example(), tspan = (0.0, 1.0), extra_analysis_integrals = (waterheight_total, custom_integral))
@test_nowarn plot(semi => sol)
@test_nowarn plot!(semi => sol, plot_initial = true)
@test_nowarn plot(semi, sol, conversion = prim2cons, plot_bathymetry = false)
Expand Down

0 comments on commit 406e5ad

Please sign in to comment.