GlobalBasis transfer in grid change
If the grid changes and one uses the ProblemStat
adapt methods, the corresponding GlobalBasis of the ProblemStat is automatically updated during. But what if there are more than one basis stored in the the Problem. (This might be quite useful to describe some coefficients in the PDE). Then, this basis also has to be updated after the grid has changed.
I would propose to provide kind of a registration method for GlobalBases, similar to the attach()
method for DOFVector
s. This could be achieved, by using some kind of type-erasure, since only the update(GridView)
method is required to be implemented by the Basis to update.
Maybe we can do the same for the DOFVector. Instead of requiring that it is derived from DOFVectorInterface
, we could specify the methods need for the adaption step and provide a type-erasure storage. (similar to std::function
)