From 8b299beae9487f8683bbe6c435b43274f803a09c Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Thu, 28 Jul 2022 17:29:36 +0200 Subject: [PATCH] fix boundary_condition_slip_wall for 2D TreeMesh --- src/equations/compressible_euler_2d.jl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/equations/compressible_euler_2d.jl b/src/equations/compressible_euler_2d.jl index fea83db3d44..9c3d94cffd8 100644 --- a/src/equations/compressible_euler_2d.jl +++ b/src/equations/compressible_euler_2d.jl @@ -335,13 +335,14 @@ Should be used together with [`TreeMesh`](@ref). equations::CompressibleEulerEquations2D) # get the appropriate normal vector from the orientation if orientation == 1 - normal = SVector(1, 0) + normal_direction = SVector(1, 0) else # orientation == 2 - normal = SVector(0, 1) + normal_direction = SVector(0, 1) end # compute and return the flux using `boundary_condition_slip_wall` routine above - return boundary_condition_slip_wall(u_inner, normal, x, t, surface_flux_function, equations) + return boundary_condition_slip_wall(u_inner, normal_direction, direction, + x, t, surface_flux_function, equations) end """