Skip to content

Commit 00bc02a

Browse files
remove duplicated DGMulti stuff I added to keep downstream tests running during refactor
1 parent 7ee1ba2 commit 00bc02a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/solvers/dgmulti/dg.jl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ function Trixi.create_cache(mesh::DGMultiMesh{NDIMS}, equations::AbstractCovaria
1515
nvars = nvariables(equations)
1616
naux = n_aux_node_vars(equations)
1717

18-
# We are duplicating the contents of solution_container in the top-level cache, but
19-
# note that no actual data is being copied here, just references to the same arrays.
2018
u_values = Trixi.allocate_nested_array(uEltype, nvars, size(md.xq), dg)
2119
u_face_values = Trixi.allocate_nested_array(uEltype, nvars, size(md.xf), dg)
2220
flux_face_values = Trixi.allocate_nested_array(uEltype, nvars, size(md.xf), dg)
@@ -25,7 +23,6 @@ function Trixi.create_cache(mesh::DGMultiMesh{NDIMS}, equations::AbstractCovaria
2523
solution_container = (; u_values, u_face_values, flux_face_values,
2624
local_values_threaded)
2725

28-
# To parallel the solution container, we create an auxiliary container.
2926
aux_values = Trixi.allocate_nested_array(uEltype, naux, size(md.x), dg)
3027
aux_quad_values = Trixi.allocate_nested_array(uEltype, naux, size(md.xq), dg)
3128
aux_face_values = Trixi.allocate_nested_array(uEltype, naux, size(md.xf), dg)
@@ -57,12 +54,8 @@ function Trixi.create_cache(mesh::DGMultiMesh{NDIMS}, equations::AbstractCovaria
5754
rotated_flux_threaded = [Trixi.allocate_nested_array(uEltype, nvars, (rd.Nq,), dg)
5855
for _ in 1:Threads.maxthreadid()]
5956

60-
# For backwards compatibility with older DGMulti code, the solution is included in the
61-
# top-level cache. TODO: remove once DGMulti refactor is complete and stable.
6257
cache = (; md, weak_differentiation_matrices, lift_scalings, invJ, dxidxhatj,
63-
solution_container, u_values, u_face_values, flux_face_values,
64-
auxiliary_container, local_values_threaded, flux_threaded,
65-
rotated_flux_threaded)
58+
solution_container, auxiliary_container, flux_threaded, rotated_flux_threaded)
6659
return cache
6760
end
6861

0 commit comments

Comments
 (0)