From c71fe7ddff28b5772854941c36c526cdb2742e3d Mon Sep 17 00:00:00 2001 From: Daniel Doehring Date: Thu, 28 Mar 2024 08:23:47 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Andrew Winters --- examples/tree_1d_dgsem/elixir_linearizedeuler_gauss_wall.jl | 1 - src/equations/linearized_euler_1d.jl | 3 ++- test/test_tree_1d_linearizedeuler.jl | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/tree_1d_dgsem/elixir_linearizedeuler_gauss_wall.jl b/examples/tree_1d_dgsem/elixir_linearizedeuler_gauss_wall.jl index c5f06fd0259..c087989e534 100644 --- a/examples/tree_1d_dgsem/elixir_linearizedeuler_gauss_wall.jl +++ b/examples/tree_1d_dgsem/elixir_linearizedeuler_gauss_wall.jl @@ -13,7 +13,6 @@ solver = DGSEM(polydeg = 5, surface_flux = flux_hll) coordinates_min = (0.0,) coordinates_max = (90.0,) -# Create a uniformly refined mesh with periodic boundaries mesh = TreeMesh(coordinates_min, coordinates_max, initial_refinement_level = 6, n_cells_max = 100_000, diff --git a/src/equations/linearized_euler_1d.jl b/src/equations/linearized_euler_1d.jl index 559fb1dc0f0..04ea812a554 100644 --- a/src/equations/linearized_euler_1d.jl +++ b/src/equations/linearized_euler_1d.jl @@ -25,7 +25,8 @@ Linearized euler equations in one space dimension. The equations are given by \end{pmatrix} ``` The bar ``\bar{(\cdot)}`` indicates uniform mean flow variables and c is the speed of sound. -The unknowns are the acoustic velocity ``v_1'``, the pressure ``p'`` and the density ``\rho'``. +The unknowns are the perturbation quantities of the acoustic velocity ``v_1'``, the pressure ``p'`` +and the density ``\rho'``. """ struct LinearizedEulerEquations1D{RealT <: Real} <: AbstractLinearizedEulerEquations{1, 3} diff --git a/test/test_tree_1d_linearizedeuler.jl b/test/test_tree_1d_linearizedeuler.jl index ad8181bf5ce..c7cffee3f66 100644 --- a/test/test_tree_1d_linearizedeuler.jl +++ b/test/test_tree_1d_linearizedeuler.jl @@ -39,7 +39,6 @@ end 0.9999720404625275, 1.9999505145390108, ]) - # Ensure that we do not have excessive memory allocations # (e.g., from type instabilities) let