Skip to content

Commit

Permalink
shorten dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDoehring committed Mar 7, 2024
1 parent 6c35218 commit 2b47577
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/semidiscretization/semidiscretization_hyperbolic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -253,17 +253,15 @@ end
function check_periodicity_mesh_boundary_conditions(mesh::Union{TreeMesh{1},
StructuredMesh{1}},
boundary_conditions::Union{NamedTuple,
NTuple{2,
Any}})
Tuple})
check_periodicity_mesh_boundary_conditions_x(mesh, boundary_conditions[1],
boundary_conditions[2])
end

function check_periodicity_mesh_boundary_conditions(mesh::Union{TreeMesh{2},
StructuredMesh{2}},
boundary_conditions::Union{NamedTuple,
NTuple{4,
Any}})
Tuple})
check_periodicity_mesh_boundary_conditions_x(mesh, boundary_conditions[1],
boundary_conditions[2])
check_periodicity_mesh_boundary_conditions_y(mesh, boundary_conditions[3],
Expand All @@ -273,8 +271,7 @@ end
function check_periodicity_mesh_boundary_conditions(mesh::Union{TreeMesh{3},
StructuredMesh{3}},
boundary_conditions::Union{NamedTuple,
NTuple{6,
Any}})
Tuple})
check_periodicity_mesh_boundary_conditions_x(mesh, boundary_conditions[1],
boundary_conditions[2])
check_periodicity_mesh_boundary_conditions_y(mesh, boundary_conditions[3],
Expand Down

0 comments on commit 2b47577

Please sign in to comment.