From 8dfa546dc7b846810d295bb37b2f823504321f4c Mon Sep 17 00:00:00 2001 From: huiyuxie Date: Fri, 27 Sep 2024 21:34:59 -1000 Subject: [PATCH 1/2] fix --- examples/tree_1d_dgsem/elixir_burgers_rarefaction.jl | 2 +- examples/tree_1d_dgsem/elixir_burgers_shock.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/tree_1d_dgsem/elixir_burgers_rarefaction.jl b/examples/tree_1d_dgsem/elixir_burgers_rarefaction.jl index d32b9d6f1f4..53e23d3de8e 100644 --- a/examples/tree_1d_dgsem/elixir_burgers_rarefaction.jl +++ b/examples/tree_1d_dgsem/elixir_burgers_rarefaction.jl @@ -44,7 +44,7 @@ end # Specify non-periodic boundary conditions function inflow(x, t, equations::InviscidBurgersEquation1D) - return initial_condition_rarefaction(coordinate_min, t, equations) + return initial_condition_rarefaction(0.0, t, equations) end boundary_condition_inflow = BoundaryConditionDirichlet(inflow) diff --git a/examples/tree_1d_dgsem/elixir_burgers_shock.jl b/examples/tree_1d_dgsem/elixir_burgers_shock.jl index 1f0b0e7e042..39ed59f6bb3 100644 --- a/examples/tree_1d_dgsem/elixir_burgers_shock.jl +++ b/examples/tree_1d_dgsem/elixir_burgers_shock.jl @@ -44,7 +44,7 @@ end # Specify non-periodic boundary conditions function inflow(x, t, equations::InviscidBurgersEquation1D) - return initial_condition_shock(coordinate_min, t, equations) + return initial_condition_shock(0.0, t, equations) end boundary_condition_inflow = BoundaryConditionDirichlet(inflow) From bc2d419b4b2bb2c3b2b4c7e1b0d446a7fef08108 Mon Sep 17 00:00:00 2001 From: huiyuxie Date: Sat, 28 Sep 2024 22:40:29 -1000 Subject: [PATCH 2/2] fix again --- examples/tree_1d_dgsem/elixir_burgers_rarefaction.jl | 5 +---- examples/tree_1d_dgsem/elixir_burgers_shock.jl | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/examples/tree_1d_dgsem/elixir_burgers_rarefaction.jl b/examples/tree_1d_dgsem/elixir_burgers_rarefaction.jl index 53e23d3de8e..843d8a7aa4c 100644 --- a/examples/tree_1d_dgsem/elixir_burgers_rarefaction.jl +++ b/examples/tree_1d_dgsem/elixir_burgers_rarefaction.jl @@ -43,10 +43,7 @@ end ############################################################################### # Specify non-periodic boundary conditions -function inflow(x, t, equations::InviscidBurgersEquation1D) - return initial_condition_rarefaction(0.0, t, equations) -end -boundary_condition_inflow = BoundaryConditionDirichlet(inflow) +boundary_condition_inflow = BoundaryConditionDirichlet(initial_condition_rarefaction) function boundary_condition_outflow(u_inner, orientation, normal_direction, x, t, surface_flux_function, diff --git a/examples/tree_1d_dgsem/elixir_burgers_shock.jl b/examples/tree_1d_dgsem/elixir_burgers_shock.jl index 39ed59f6bb3..09c6cee9f98 100644 --- a/examples/tree_1d_dgsem/elixir_burgers_shock.jl +++ b/examples/tree_1d_dgsem/elixir_burgers_shock.jl @@ -43,10 +43,7 @@ end ############################################################################### # Specify non-periodic boundary conditions -function inflow(x, t, equations::InviscidBurgersEquation1D) - return initial_condition_shock(0.0, t, equations) -end -boundary_condition_inflow = BoundaryConditionDirichlet(inflow) +boundary_condition_inflow = BoundaryConditionDirichlet(initial_condition_shock) function boundary_condition_outflow(u_inner, orientation, normal_direction, x, t, surface_flux_function,