Skip to content

Commit

Permalink
removing more cache_parabolic instances
Browse files Browse the repository at this point in the history
  • Loading branch information
jlchan committed Nov 25, 2023
1 parent 8031796 commit be9710c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/callbacks_step/amr_dg1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,8 @@ function refine!(u_ode::AbstractVector, adaptor, mesh::TreeMesh{1},
reinitialize_containers!(mesh, equations, dg, cache_parabolic)

# Sanity check
#@unpack interfaces = cache_parabolic
(; interfaces) = cache
if isperiodic(mesh.tree)
#@assert ninterfaces(interfaces)==1 * nelements(dg, cache_parabolic) ("For 1D and periodic domains, the number of interfaces must be the same as the number of elements")
@assert ninterfaces(interfaces)==1 * nelements(dg, cache) ("For 1D and periodic domains, the number of interfaces must be the same as the number of elements")
end

Expand Down Expand Up @@ -237,9 +235,9 @@ function coarsen!(u_ode::AbstractVector, adaptor, mesh::TreeMesh{1},
reinitialize_containers!(mesh, equations, dg, cache_parabolic)

# Sanity check
@unpack interfaces = cache_parabolic
@unpack interfaces = cache
if isperiodic(mesh.tree)
@assert ninterfaces(interfaces)==1 * nelements(dg, cache_parabolic) ("For 1D and periodic domains, the number of interfaces must be the same as the number of elements")
@assert ninterfaces(interfaces)==1 * nelements(dg, cache) ("For 1D and periodic domains, the number of interfaces must be the same as the number of elements")
end

return nothing
Expand Down

0 comments on commit be9710c

Please sign in to comment.