From 0bdc8a2a90f85df0b301166477fb9cce7dadd47e Mon Sep 17 00:00:00 2001 From: Daniel_Doehring Date: Sun, 12 Nov 2023 13:21:08 +0100 Subject: [PATCH] fmt --- .../elixir_eulerpolytropic_convergence.jl | 2 +- test/test_structured_2d.jl | 11 +++++++---- test/test_tree_2d_eulerpolytropic.jl | 9 ++++++--- test/test_unit.jl | 7 ++++--- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/examples/tree_2d_dgsem/elixir_eulerpolytropic_convergence.jl b/examples/tree_2d_dgsem/elixir_eulerpolytropic_convergence.jl index 4144bc1661d..95ef38eb701 100644 --- a/examples/tree_2d_dgsem/elixir_eulerpolytropic_convergence.jl +++ b/examples/tree_2d_dgsem/elixir_eulerpolytropic_convergence.jl @@ -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) diff --git a/test/test_structured_2d.jl b/test/test_structured_2d.jl index 24939e6a33f..17ba001d5ec 100644 --- a/test/test_structured_2d.jl +++ b/test/test_structured_2d.jl @@ -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) diff --git a/test/test_tree_2d_eulerpolytropic.jl b/test/test_tree_2d_eulerpolytropic.jl index a90652dfce4..fee1bb9e19e 100644 --- a/test/test_tree_2d_eulerpolytropic.jl +++ b/test/test_tree_2d_eulerpolytropic.jl @@ -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) diff --git a/test/test_unit.jl b/test/test_unit.jl index a6335d88049..0837850fe2c 100644 --- a/test/test_unit.jl +++ b/test/test_unit.jl @@ -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), @@ -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