Skip to content

Commit 00ef308

Browse files
Indicator ThreeLevelCombined unified for all TreeMeshes (trixi-framework#2115)
* Unify Indicator 3-Level Combined TreeMesh * fmt --------- Co-authored-by: Hendrik Ranocha <[email protected]>
1 parent cd6f796 commit 00ef308

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/callbacks_step/amr_dg1d.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ function create_cache(::Type{ControllerThreeLevel}, mesh::TreeMesh{1}, equations
291291
return (; controller_value)
292292
end
293293

294-
function create_cache(::Type{ControllerThreeLevelCombined}, mesh::TreeMesh{1},
294+
function create_cache(::Type{ControllerThreeLevelCombined}, mesh::TreeMesh,
295295
equations, dg::DG, cache)
296296
controller_value = Vector{Int}(undef, nelements(dg, cache))
297297
return (; controller_value)

src/callbacks_step/amr_dg2d.jl

-6
Original file line numberDiff line numberDiff line change
@@ -578,10 +578,4 @@ function create_cache(::Type{ControllerThreeLevel},
578578
controller_value = Vector{Int}(undef, nelements(dg, cache))
579579
return (; controller_value)
580580
end
581-
582-
function create_cache(::Type{ControllerThreeLevelCombined}, mesh::TreeMesh{2},
583-
equations, dg::DG, cache)
584-
controller_value = Vector{Int}(undef, nelements(dg, cache))
585-
return (; controller_value)
586-
end
587581
end # @muladd

0 commit comments

Comments
 (0)