Skip to content

Commit

Permalink
default case for periodic bcs
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDoehring committed Mar 6, 2024
1 parent 2de806a commit 5e87108
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/semidiscretization/semidiscretization_hyperbolic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ function digest_boundary_conditions(boundary_conditions::AbstractArray, mesh, so
throw(ArgumentError("Please use a (named) tuple instead of an (abstract) array to supply multiple boundary conditions (to improve performance)."))
end

function check_periodicity_mesh_boundary_conditions(mesh::Union{TreeMesh, StructuredMesh},
boundary_conditions::BoundaryConditionPeriodic)
end

function check_periodicity_mesh_boundary_conditions(mesh::TreeMesh{1},
boundary_conditions)
@unpack x_neg, x_pos = boundary_conditions
Expand Down Expand Up @@ -249,6 +253,8 @@ function check_periodicity_mesh_boundary_conditions(mesh::TreeMesh{2},
end
end



function check_periodicity_mesh_boundary_conditions(mesh::StructuredMesh{2},
boundary_conditions)
@unpack x_neg, x_pos, y_neg, y_pos = boundary_conditions
Expand Down

0 comments on commit 5e87108

Please sign in to comment.