Skip to content

Commit

Permalink
Remove elements from init routines for interfaces and boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibolm committed Feb 29, 2024
1 parent bb2138a commit 721b7f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/solvers/fv_t8code/containers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@ function Base.resize!(interfaces::T8codeFVInterfaceContainer, capacity)
end

# Create interface container and initialize interface data.
function init_fv_interfaces(mesh::T8codeMesh, equations,
solver::FV, elements, uEltype)
function init_fv_interfaces(mesh::T8codeMesh, equations, solver::FV, uEltype)
# Initialize container
n_interfaces = count_required_surfaces(mesh).interfaces
if mpi_parallel(mesh) == true
Expand Down Expand Up @@ -276,7 +275,7 @@ function Base.resize!(boundaries::T8codeFVBoundaryContainer, capacity)
end

# Create interface container and initialize interface data in `elements`.
function init_fv_boundaries(mesh::T8codeMesh, equations, solver::FV, elements, uEltype)
function init_fv_boundaries(mesh::T8codeMesh, equations, solver::FV, uEltype)
# Initialize container
n_boundaries = count_required_surfaces(mesh).boundaries

Expand Down
4 changes: 2 additions & 2 deletions src/solvers/fv_t8code/fv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ function create_cache(mesh::T8codeMesh, equations::AbstractEquations, solver::FV
# the element data structure is not used anymore after this `create_cache` routine.
# Possible to remove it and directly save the data in interface, boundars (and mortar) data structure?
elements = init_fv_elements(mesh, equations, solver, uEltype)
interfaces = init_fv_interfaces(mesh, equations, solver, elements, uEltype)
boundaries = init_fv_boundaries(mesh, equations, solver, elements, uEltype)
interfaces = init_fv_interfaces(mesh, equations, solver, uEltype)
boundaries = init_fv_boundaries(mesh, equations, solver, uEltype)
# mortars = init_mortars(mesh, equations, basis, elements)

fill_mesh_info_fv!(mesh, interfaces, boundaries,
Expand Down

0 comments on commit 721b7f8

Please sign in to comment.