Skip to content

Commit d117a72

Browse files
comment
1 parent 965446a commit d117a72

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

src/solvers/dgsem/volume_integrals.jl

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55
@muladd begin
66
#! format: noindent
77

8-
# Dimension agnostic, i.e., valid for all 1D, 2D, and 3D meshes
8+
# Dimension and meshtype agnostic, i.e., valid for all 1D, 2D, and 3D meshes
9+
function create_cache(mesh, equations,
10+
volume_integral::VolumeIntegralFluxDifferencing, dg::DG, uEltype)
11+
return NamedTuple()
12+
end
13+
14+
# Dimension and meshtype agnostic, i.e., valid for all 1D, 2D, and 3D meshes
915
function calc_volume_integral!(du, u, mesh,
1016
nonconservative_terms, equations,
1117
volume_integral::VolumeIntegralWeakForm,
@@ -19,7 +25,7 @@ function calc_volume_integral!(du, u, mesh,
1925
return nothing
2026
end
2127

22-
# Dimension agnostic, i.e., valid for all 1D, 2D, and 3D meshes.
28+
# Dimension and meshtype agnostic, i.e., valid for all 1D, 2D, and 3D meshes.
2329
# For curved meshes averaging of the mapping terms, stored in `cache.elements.contravariant_vectors`,
2430
# is peeled apart from the evaluation of the physical fluxes in each Cartesian direction.
2531
function calc_volume_integral!(du, u, mesh,
@@ -35,7 +41,7 @@ function calc_volume_integral!(du, u, mesh,
3541
return nothing
3642
end
3743

38-
# Dimension agnostic, i.e., valid for all 1D, 2D, and 3D meshes
44+
# Dimension and meshtype agnostic, i.e., valid for all 1D, 2D, and 3D meshes
3945
function calc_volume_integral!(du, u, mesh,
4046
nonconservative_terms, equations,
4147
volume_integral::VolumeIntegralShockCapturingHG,
@@ -74,7 +80,7 @@ function calc_volume_integral!(du, u, mesh,
7480
return nothing
7581
end
7682

77-
# Dimension agnostic, i.e., valid for all 1D, 2D, and 3D meshes
83+
# Dimension and meshtype agnostic, i.e., valid for all 1D, 2D, and 3D meshes
7884
function calc_volume_integral!(du, u, mesh,
7985
nonconservative_terms, equations,
8086
volume_integral::VolumeIntegralPureLGLFiniteVolume,
@@ -89,5 +95,4 @@ function calc_volume_integral!(du, u, mesh,
8995

9096
return nothing
9197
end
92-
93-
end # @muladd
98+
end # @muladd

src/solvers/dgsem_structured/dg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ end
2828
Val(ndims(contravariant_vectors) - 3)))
2929
end
3030

31-
# Dimension agnostic, i.e., valid for all 1D, 2D, and 3D structured meshes
31+
# Dimension agnostic, i.e., valid for all 1D, 2D, and 3D `StructuredMesh`es.
3232
function calc_boundary_flux!(cache, u, t, boundary_condition::BoundaryConditionPeriodic,
3333
mesh::StructuredMesh, equations, surface_integral,
3434
dg::DG)

src/solvers/dgsem_tree/dg.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,7 @@ end
1515
return inverse_jacobian[element]
1616
end
1717

18-
# Dimension agnostic, i.e., valid for all 1D, 2D, and 3D meshes
19-
function create_cache(mesh, equations,
20-
volume_integral::VolumeIntegralFluxDifferencing, dg::DG, uEltype)
21-
return NamedTuple()
22-
end
23-
24-
# Dimension agnostic, i.e., valid for all 1D, 2D, and 3D meshes
18+
# Dimension agnostic, i.e., valid for all 1D, 2D, and 3D `TreeMesh`es.
2519
function calc_boundary_flux!(cache, t, boundary_condition::BoundaryConditionPeriodic,
2620
mesh::TreeMesh, equations, surface_integral, dg::DG)
2721
@assert isempty(eachboundary(dg, cache))

0 commit comments

Comments
 (0)