Skip to content

Commit

Permalink
Removed unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCan committed Dec 21, 2024
1 parent b839767 commit 93eab52
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/solvers/dgsem_p4est/containers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -528,17 +528,6 @@ function init_surfaces!(interfaces, mortars, boundaries, mesh::P4estMesh)
return interfaces
end

function init_surfaces!(interfaces, mortars, boundaries, mesh::P4estMeshView{2})
# Let `p4est` iterate over all interfaces and call init_surfaces_iter_face
iter_face_c = cfunction(init_surfaces_iter_face, Val(ndims(mesh.mesh)))
user_data = InitSurfacesIterFaceUserData(interfaces, mortars, boundaries,
mesh.parent)

iterate_p4est(mesh.parent.p4est, user_data; iter_face_c = iter_face_c)

return interfaces
end

# Initialization of interfaces after the function barrier
function init_interfaces_iter_face_inner(info_pw, sides_pw, user_data)
@unpack interfaces, interface_id, mesh = user_data
Expand Down Expand Up @@ -719,21 +708,6 @@ function count_required_surfaces(mesh::P4estMesh)
boundaries = user_data[3])
end

function count_required_surfaces(mesh::P4estMeshView)
# Let `p4est` iterate over all interfaces and call count_surfaces_iter_face
iter_face_c = cfunction(count_surfaces_iter_face, Val(ndims(mesh.parent)))

# interfaces, mortars, boundaries
user_data = [0, 0, 0]

iterate_p4est(mesh.parent.p4est, user_data; iter_face_c = iter_face_c)

# Return counters
return (interfaces = user_data[1],
mortars = user_data[2],
boundaries = user_data[3])
end

# Return direction of the face, which is indexed by node_indices
@inline function indices2direction(indices)
if indices[1] === :begin
Expand Down

0 comments on commit 93eab52

Please sign in to comment.