Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDoehring committed Nov 12, 2023
1 parent e3af1ed commit 0bdc8a2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ coordinates_max = (1.0, 1.0)
mesh = TreeMesh(coordinates_min, coordinates_max,
initial_refinement_level = 2,
periodicity = true,
n_cells_max = 30_000)
n_cells_max = 30_000)

semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver,
source_terms = source_terms_convergence_test)
Expand Down
11 changes: 7 additions & 4 deletions test/test_structured_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -600,13 +600,16 @@ end

@trixi_testset "elixir_eulerpolytropic_convergence.jl: HLL(Davis)" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_eulerpolytropic_convergence.jl"),
solver = DGSEM(polydeg = 3, surface_flux = FluxHLL(min_max_speed_davis),
volume_integral = VolumeIntegralFluxDifferencing(volume_flux)),
solver=DGSEM(polydeg = 3,
surface_flux = FluxHLL(min_max_speed_davis),
volume_integral = VolumeIntegralFluxDifferencing(volume_flux)),
l2=[
0.0016689832177644243, 0.0025920263793104445, 0.003281074494629298
0.0016689832177644243, 0.0025920263793104445,
0.003281074494629298,
],
linf=[
0.01099488320190023, 0.013309526619350365, 0.02008032661117909
0.01099488320190023, 0.013309526619350365,
0.02008032661117909,
])
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
Expand Down
9 changes: 6 additions & 3 deletions test/test_tree_2d_eulerpolytropic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ EXAMPLES_DIR = pkgdir(Trixi, "examples", "tree_2d_dgsem")
# units is 101325 Pa, i.e., pressure has values of O(10^5)

@trixi_testset "elixir_eulerpolytropic_convergence.jl" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_eulerpolytropic_convergence.jl.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR,
"elixir_eulerpolytropic_convergence.jl.jl"),
l2=[
0.0016689832177626373, 0.0025920263793094526, 0.003281074494626679
0.0016689832177626373, 0.0025920263793094526,
0.003281074494626679,
],
linf=[
0.010994883201896677, 0.013309526619350365, 0.02008032661117376
0.010994883201896677, 0.013309526619350365,
0.02008032661117376,
])
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
Expand Down
7 changes: 4 additions & 3 deletions test/test_unit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -807,14 +807,15 @@ end
end

@timed_testset "Consistency check for Winters flux: Polytropic CEE" begin
for gamma in [1.4, 1.0, 5/3]
for gamma in [1.4, 1.0, 5 / 3]
kappa = 0.5 # Scaling factor for the pressure.
equations = PolytropicEulerEquations2D(gamma, kappa)
u = SVector(1.1, -0.5, 2.34)

orientations = [1, 2]
for orientation in orientations
@test flux_winters_etal(u, u, orientation, equations) flux(u, orientation, equations)
@test flux_winters_etal(u, u, orientation, equations)
flux(u, orientation, equations)
end

normal_directions = [SVector(1.0, 0.0),
Expand All @@ -824,7 +825,7 @@ end

for normal_direction in normal_directions
@test flux_winters_etal(u, u, normal_direction, equations)
flux(u, normal_direction, equations)
flux(u, normal_direction, equations)
end
end
end
Expand Down

0 comments on commit 0bdc8a2

Please sign in to comment.