Skip to content

Commit 296792c

Browse files
committed
test flat bathymetry
1 parent 22f7c78 commit 296792c

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

test/test_hyperbolic_sainte_marie_1d.jl

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,45 @@ end
3636
@test_allocations(DispersiveShallowWater.rhs!, semi, sol, allocs=1_000)
3737
end
3838

39+
@testitem "hyperbolic_sainte_marie_conservation.jl with bathymetry_flat" setup=[
40+
Setup,
41+
HyperbolicSainteMarieEquations1D
42+
] begin
43+
@test_trixi_include(joinpath(EXAMPLES_DIR,
44+
"hyperbolic_sainte_marie_conservation.jl"),
45+
b=0.0,
46+
bathymetry_type=bathymetry_flat,
47+
tol=1.0e-12,
48+
tspan=(0.0, 1.0),
49+
l2=[
50+
1.4883751342392053,
51+
2.0240715489993337,
52+
5.384295521873979e-14,
53+
0.851823022172266,
54+
4.021158410315962
55+
],
56+
linf=[
57+
1.1622352722043399,
58+
0.996970504640431,
59+
3.1086244689504383e-15,
60+
0.3985082548812433,
61+
1.798277246494875
62+
],
63+
cons_error=[
64+
8.105871529551223e-11,
65+
2.036050215359353e-5,
66+
1.7053025658242404e-13,
67+
1.1013360423538034,
68+
7.893957675920978
69+
],
70+
change_waterheight_total=-8.105871529551223e-11,
71+
change_momentum=-1.730615650785694e-12,
72+
change_entropy=-0.5373666791674623,
73+
change_entropy_modified=-1.317857822868973e-9)
74+
75+
@test_allocations(DispersiveShallowWater.rhs!, semi, sol, allocs=1_000)
76+
end
77+
3978
@testitem "hyperbolic_sainte_marie_dingemans.jl" setup=[
4079
Setup,
4180
HyperbolicSainteMarieEquations1D

0 commit comments

Comments
 (0)