ISTL AMG backends store reference to local variable
The reuse-functionality in the istl amg backends store the amg in a shared_ptr
to reused between multiple calls to apply
. However, the amg stores a reference to the operator which is currently a function-local variable in both the CG and DG amg backend, leading to dangling references and segfaults