Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions src/solvers/dgsem_tree/dg_1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ end

function prolong2interfaces!(cache, u_or_flux_viscous,
mesh::TreeMesh{1}, equations,
dg::DG{<:GaussLegendreBasis})
dg::DGSEM{<:GaussLegendreBasis})
@unpack interfaces = cache
@unpack neighbor_ids = interfaces
@unpack boundary_interpolation = dg.basis
Expand Down Expand Up @@ -535,7 +535,7 @@ end

function prolong2boundaries!(cache, u_or_flux_viscous,
mesh::TreeMesh{1}, equations,
dg::DG{<:GaussLegendreBasis})
dg::DGSEM{<:GaussLegendreBasis})
@unpack boundaries = cache
@unpack neighbor_sides = boundaries
@unpack boundary_interpolation = dg.basis
Expand Down Expand Up @@ -698,7 +698,7 @@ end

function calc_surface_integral!(du, u, mesh::Union{TreeMesh{1}, StructuredMesh{1}},
equations, surface_integral::SurfaceIntegralWeakForm,
dg::DG{<:GaussLegendreBasis}, cache)
dg::DGSEM{<:GaussLegendreBasis}, cache)
@unpack boundary_interpolation_inverse_weights = dg.basis
@unpack surface_flux_values = cache.elements

Expand Down
6 changes: 3 additions & 3 deletions src/solvers/dgsem_tree/dg_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ function prolong2interfaces!(cache, u, mesh::TreeMesh{2}, equations, dg::DG)
end

function prolong2interfaces!(cache, u, mesh::TreeMesh{2}, equations,
dg::DG{<:GaussLegendreBasis})
dg::DGSEM{<:GaussLegendreBasis})
@unpack interfaces = cache
@unpack orientations, neighbor_ids = interfaces
@unpack boundary_interpolation = dg.basis
Expand Down Expand Up @@ -701,7 +701,7 @@ end

function prolong2boundaries!(cache, u,
mesh::TreeMesh{2}, equations,
dg::DG{<:GaussLegendreBasis})
dg::DGSEM{<:GaussLegendreBasis})
@unpack boundaries = cache
@unpack orientations, neighbor_sides = boundaries
@unpack boundary_interpolation = dg.basis
Expand Down Expand Up @@ -1252,7 +1252,7 @@ function calc_surface_integral!(du, u,
mesh::Union{TreeMesh{2}, StructuredMesh{2},
StructuredMeshView{2}},
equations, surface_integral::SurfaceIntegralWeakForm,
dg::DG{<:GaussLegendreBasis}, cache)
dg::DGSEM{<:GaussLegendreBasis}, cache)
@unpack boundary_interpolation_inverse_weights = dg.basis
@unpack surface_flux_values = cache.elements

Expand Down
24 changes: 23 additions & 1 deletion test/test_parabolic_1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,28 @@ end
@test_allocations(Trixi.rhs_parabolic!, semi, sol, 1000)
end

@trixi_testset "TreeMesh1D: elixir_navierstokes_convergence_walls.jl (Gauss-Legendre)" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "tree_1d_dgsem",
"elixir_navierstokes_convergence_walls.jl"),
solver=DGSEM(polydeg = 3, surface_flux = flux_hll,
basis_type = GaussLegendreBasis),
l2=[
4.201407214726233e-5,
9.758795848409044e-5,
0.00042000319972803127
],
linf=[
0.00015354693449309842,
0.00041974539800903807,
0.0016951216452660844
],
atol=1e-10)
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
@test_allocations(Trixi.rhs!, semi, sol, 1000)
@test_allocations(Trixi.rhs_parabolic!, semi, sol, 1000)
end

@trixi_testset "TreeMesh1D: elixir_navierstokes_convergence_walls_amr.jl" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "tree_1d_dgsem",
"elixir_navierstokes_convergence_walls_amr.jl"),
Expand Down Expand Up @@ -355,7 +377,7 @@ end
@test_allocations(Trixi.rhs_parabolic!, semi, sol, 1000)
end

@trixi_testset "TreeMesh1D: elixir_navierstokes_viscous_shock.jl" begin
@trixi_testset "TreeMesh1D: elixir_navierstokes_viscous_shock.jl (Gauss-Legendre)" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "tree_1d_dgsem",
"elixir_navierstokes_viscous_shock.jl"),
solver=DGSEM(polydeg = 3, surface_flux = flux_hlle,
Expand Down
Loading