GlobalBasis should have an `update` method
When ever the underlying grid changes, the function spaces need to be updated. The main thing is that the initializeIndices
method has to be called again. The other thing is that the GridView
might change as well and thus needs to be updated.
I suggest the new method
void update(GridView & gv)
{
nodeFactory_.update(gv);
nodeFactory_.initializeIndices();
}
alternatively the NodeFactory might automatically update the indices upon update(gv)
or the gridView
method might return a mutable reference.