From 93eab52c96570327bf312291157f1154463d21de Mon Sep 17 00:00:00 2001 From: SimonCan Date: Sat, 21 Dec 2024 17:50:27 +0000 Subject: [PATCH] Removed unused code. --- src/solvers/dgsem_p4est/containers.jl | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/solvers/dgsem_p4est/containers.jl b/src/solvers/dgsem_p4est/containers.jl index 4f879678e9..a070db6b70 100644 --- a/src/solvers/dgsem_p4est/containers.jl +++ b/src/solvers/dgsem_p4est/containers.jl @@ -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 @@ -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