and never update, even when the grid changes. Thus, in the case of AMR, the current results are garbage.
Ideally, we would have access to has_changed in this callback to re-compute the boundaries only if necessary.
The alternative would be to reconstruct the indices every time the callback is used.
In any case, we also need to pass semi and for the first version most likely also integrator around.
Currently, we query the boundary elements once at construction
https://github.com/trixi-framework/Trixi.jl/blob/5359525685966ab79a9abfca7f20920ee25c0505/src/callbacks_step/analysis_surface_integral_2d.jl#L32-L48
and never update, even when the grid changes. Thus, in the case of AMR, the current results are garbage.
Ideally, we would have access to
has_changed
in this callback to re-compute the boundaries only if necessary. The alternative would be to reconstruct the indices every time the callback is used.In any case, we also need to pass
semi
and for the first version most likely alsointegrator
around.