Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix boundary_condition_slip_wall for 2D TreeMesh #1191

Merged
merged 1 commit into from
Jul 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/equations/compressible_euler_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

"""
Expand Down