diff --git a/examples/tree_2d_dgsem/elixir_euler_vortex_amr.jl b/examples/tree_2d_dgsem/elixir_euler_vortex_amr.jl index e9831c95526..fd25defd417 100644 --- a/examples/tree_2d_dgsem/elixir_euler_vortex_amr.jl +++ b/examples/tree_2d_dgsem/elixir_euler_vortex_amr.jl @@ -27,7 +27,6 @@ function (indicator_vortex::IndicatorVortex)(u::AbstractArray{<:Any, 4}, t, kwargs...) mesh = indicator_vortex.cache.mesh alpha = indicator_vortex.cache.alpha - indicator_threaded = indicator_vortex.cache.indicator_threaded resize!(alpha, nelements(dg, cache)) # get analytical vortex center (based on assumption that center=[0.0,0.0] @@ -57,6 +56,11 @@ function periodic_distance_2d(coordinates, center, domain_length) return sqrt(sum(abs2, dx_periodic)) end +# Optional: Nicer display of the indicator +function Base.show(io::IO, ::MIME"text/plain", indicator::IndicatorVortex) + Trixi.summary_box(io, "IndicatorVortex") +end + end # module TrixiExtension import .TrixiExtension