Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibolm committed Dec 4, 2023
1 parent 4bcbee3 commit fb705d3
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/equations/compressible_euler_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,9 @@ end
vn = factor * u_inner[3] * srho
end

return characteristic_boundary_value_function_inner(outer_boundary_value_function,
u_inner, srho, vn, x, t,
equations)
return calc_characteristic_boundary_value_function(outer_boundary_value_function,
u_inner, srho, vn, x, t,
equations)
end

# Using with StructuredMesh{2}
Expand All @@ -439,9 +439,9 @@ end
(normal_direction[1] * u_inner[2] + normal_direction[2] * u_inner[3]) /
norm(normal_direction)

return characteristic_boundary_value_function_inner(outer_boundary_value_function,
u_inner, srho, vn, x, t,
equations)
return calc_characteristic_boundary_value_function(outer_boundary_value_function,
u_inner, srho, vn, x, t,
equations)
end

# Using with P4estMesh{2}
Expand All @@ -457,12 +457,13 @@ end
vn = srho * (normal_direction[1] * u_inner[2] + normal_direction[2] * u_inner[3]) /
norm(normal_direction)

return characteristic_boundary_value_function_inner(outer_boundary_value_function,
u_inner, srho, vn, x, t,
equations)
return calc_characteristic_boundary_value_function(outer_boundary_value_function,
u_inner, srho, vn, x, t,
equations)
end

# Function to compute the outer state of the characteristics-based boundary condition. This function is called by all mesh types.
# Function to compute the outer state of the characteristics-based boundary condition.
# This function is called by all mesh types.
@inline function calc_characteristic_boundary_value_function(outer_boundary_value_function,
u_inner, srho, vn, x, t,
equations::CompressibleEulerEquations2D)
Expand Down

0 comments on commit fb705d3

Please sign in to comment.