Skip to content

Commit

Permalink
remove CI functions that cause preocmpilation errors (#1593)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlchan authored Jul 29, 2023
1 parent e1e680c commit 73e58dc
Showing 1 changed file with 0 additions and 54 deletions.
54 changes: 0 additions & 54 deletions src/solvers/dgsem_p4est/dg_3d_parabolic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -563,60 +563,6 @@ function prolong2boundaries!(cache_parabolic, flux_viscous,
return nothing
end

# # Function barrier for type stability
# !!! TODO: Figure out why this cannot removed eventhough it exists in the dg_2d_parabolic.jl file
function calc_boundary_flux_gradients!(cache, t, boundary_conditions, mesh::P4estMesh,
equations, surface_integral, dg::DG)
(; boundary_condition_types, boundary_indices) = boundary_conditions

calc_boundary_flux_by_type!(cache, t, boundary_condition_types, boundary_indices,
Gradient(), mesh, equations, surface_integral, dg)
return nothing
end

function calc_boundary_flux_divergence!(cache, t, boundary_conditions, mesh::P4estMesh,
equations, surface_integral, dg::DG)
(; boundary_condition_types, boundary_indices) = boundary_conditions

calc_boundary_flux_by_type!(cache, t, boundary_condition_types, boundary_indices,
Divergence(), mesh, equations, surface_integral, dg)
return nothing
end

# Iterate over tuples of boundary condition types and associated indices
# in a type-stable way using "lispy tuple programming".
function calc_boundary_flux_by_type!(cache, t, BCs::NTuple{N, Any},
BC_indices::NTuple{N, Vector{Int}},
operator_type,
mesh::P4estMesh,
equations, surface_integral, dg::DG) where {N}
# Extract the boundary condition type and index vector
boundary_condition = first(BCs)
boundary_condition_indices = first(BC_indices)
# Extract the remaining types and indices to be processed later
remaining_boundary_conditions = Base.tail(BCs)
remaining_boundary_condition_indices = Base.tail(BC_indices)

# process the first boundary condition type
calc_boundary_flux!(cache, t, boundary_condition, boundary_condition_indices,
operator_type, mesh, equations, surface_integral, dg)

# recursively call this method with the unprocessed boundary types
calc_boundary_flux_by_type!(cache, t, remaining_boundary_conditions,
remaining_boundary_condition_indices,
operator_type,
mesh, equations, surface_integral, dg)

return nothing
end

# terminate the type-stable iteration over tuples
function calc_boundary_flux_by_type!(cache, t, BCs::Tuple{}, BC_indices::Tuple{},
operator_type, mesh::P4estMesh, equations,
surface_integral, dg::DG)
nothing
end

function calc_boundary_flux!(cache, t,
boundary_condition_parabolic, # works with Dict types
boundary_condition_indices,
Expand Down

0 comments on commit 73e58dc

Please sign in to comment.