diff --git a/src/callbacks_step/amr_dg1d.jl b/src/callbacks_step/amr_dg1d.jl index b4cd6a00271..7ed4dd2e0f3 100644 --- a/src/callbacks_step/amr_dg1d.jl +++ b/src/callbacks_step/amr_dg1d.jl @@ -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) diff --git a/src/callbacks_step/amr_dg2d.jl b/src/callbacks_step/amr_dg2d.jl index 062020b6d42..bd68a38ab74 100644 --- a/src/callbacks_step/amr_dg2d.jl +++ b/src/callbacks_step/amr_dg2d.jl @@ -579,9 +579,4 @@ function create_cache(::Type{ControllerThreeLevel}, 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