Skip to content

Commit e9541d4

Browse files
committed
re-introduce the union for wb test
1 parent 3f0b2ea commit e9541d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/tree_1d_dgsem/elixir_shallowwater_moments_well_balanced.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ using TrixiShallowWater
88
equations = ShallowWaterMomentEquations1D(gravity = 9.812, H0 = 1.75,
99
n_moments = 2)
1010

11-
# This initial condition can also be used together with `ShallowWaterLinearizedMomentEquations1D`.
11+
# For testing purposes this initial condition is also used together with the
12+
# `ShallowWaterLinearizedMomentEquations1D`.
1213
function initial_condition_well_balanced(x, t,
13-
equations::ShallowWaterMomentEquations1D)
14+
equations::Union{ShallowWaterMomentEquations1D,
15+
ShallowWaterLinearizedMomentEquations1D})
1416
# Initial lake-at-rest configuration
1517
H = 1.75
1618
v = 0.0

0 commit comments

Comments
 (0)