Skip to content

Commit fd77c7c

Browse files
authored
Fix the bad code with mixed use of variable scope (#2092)
* fix * fix again
1 parent 1672c2a commit fd77c7c

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

examples/tree_1d_dgsem/elixir_burgers_rarefaction.jl

+1-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ end
4343
###############################################################################
4444
# Specify non-periodic boundary conditions
4545

46-
function inflow(x, t, equations::InviscidBurgersEquation1D)
47-
return initial_condition_rarefaction(coordinate_min, t, equations)
48-
end
49-
boundary_condition_inflow = BoundaryConditionDirichlet(inflow)
46+
boundary_condition_inflow = BoundaryConditionDirichlet(initial_condition_rarefaction)
5047

5148
function boundary_condition_outflow(u_inner, orientation, normal_direction, x, t,
5249
surface_flux_function,

examples/tree_1d_dgsem/elixir_burgers_shock.jl

+1-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ end
4343
###############################################################################
4444
# Specify non-periodic boundary conditions
4545

46-
function inflow(x, t, equations::InviscidBurgersEquation1D)
47-
return initial_condition_shock(coordinate_min, t, equations)
48-
end
49-
boundary_condition_inflow = BoundaryConditionDirichlet(inflow)
46+
boundary_condition_inflow = BoundaryConditionDirichlet(initial_condition_shock)
5047

5148
function boundary_condition_outflow(u_inner, orientation, normal_direction, x, t,
5249
surface_flux_function,

0 commit comments

Comments
 (0)