Skip to content

Commit

Permalink
Indicator ThreeLevelCombined unified for all TreeMeshes (#2115)
Browse files Browse the repository at this point in the history
* Unify Indicator 3-Level Combined TreeMesh

* fmt

---------

Co-authored-by: Hendrik Ranocha <[email protected]>
  • Loading branch information
DanielDoehring and ranocha authored Oct 16, 2024
1 parent cd6f796 commit 00ef308
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion src/callbacks_step/amr_dg1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ function create_cache(::Type{ControllerThreeLevel}, mesh::TreeMesh{1}, equations
return (; controller_value)
end

function create_cache(::Type{ControllerThreeLevelCombined}, mesh::TreeMesh{1},
function create_cache(::Type{ControllerThreeLevelCombined}, mesh::TreeMesh,
equations, dg::DG, cache)
controller_value = Vector{Int}(undef, nelements(dg, cache))
return (; controller_value)
Expand Down
6 changes: 0 additions & 6 deletions src/callbacks_step/amr_dg2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -578,10 +578,4 @@ function create_cache(::Type{ControllerThreeLevel},
controller_value = Vector{Int}(undef, nelements(dg, cache))
return (; controller_value)
end

function create_cache(::Type{ControllerThreeLevelCombined}, mesh::TreeMesh{2},
equations, dg::DG, cache)
controller_value = Vector{Int}(undef, nelements(dg, cache))
return (; controller_value)
end
end # @muladd

0 comments on commit 00ef308

Please sign in to comment.