From 07a23c58bfcc3b6f4aab814720e40f859d13d307 Mon Sep 17 00:00:00 2001 From: Daniel Doehring Date: Fri, 12 Apr 2024 13:59:04 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Lars Christmann --- src/equations/linearized_euler_3d.jl | 6 +++--- test/test_tree_3d_linearizedeuler.jl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/equations/linearized_euler_3d.jl b/src/equations/linearized_euler_3d.jl index 7d0f27133c3..a03f13de36e 100644 --- a/src/equations/linearized_euler_3d.jl +++ b/src/equations/linearized_euler_3d.jl @@ -8,7 +8,7 @@ @doc raw""" LinearizedEulerEquations3D(v_mean_global, c_mean_global, rho_mean_global) -Linearized Euler equations in two space dimensions. The equations are given by +Linearized Euler equations in three space dimensions. The equations are given by ```math \partial_t \begin{pmatrix} @@ -108,8 +108,8 @@ function boundary_condition_wall(u_inner, orientation, direction, x, t, equations::LinearizedEulerEquations3D) # Boundary state is equal to the inner state except for the velocity. For boundaries # in the -x/+x direction, we multiply the velocity in the x direction by -1. - # Similarly, for boundaries in the -y/+y direction, we multiply the velocity in the - # y direction by -1 + # Similarly, for boundaries in the -y/+y or -z/+z direction, we multiply the + # velocity in the y or z direction by -1 if direction in (1, 2) # x direction u_boundary = SVector(u_inner[1], -u_inner[2], u_inner[3], u_inner[4], u_inner[5]) diff --git a/test/test_tree_3d_linearizedeuler.jl b/test/test_tree_3d_linearizedeuler.jl index 002a77ce781..ddfb17d9ee3 100644 --- a/test/test_tree_3d_linearizedeuler.jl +++ b/test/test_tree_3d_linearizedeuler.jl @@ -6,7 +6,7 @@ include("test_trixi.jl") EXAMPLES_DIR = pkgdir(Trixi, "examples", "tree_3d_dgsem") -@testset "Linearized Euler Equations 2D" begin +@testset "Linearized Euler Equations 3D" begin #! format: noindent @trixi_testset "elixir_linearizedeuler_gauss_wall.jl" begin