Move calls to basis.update inbetween adapt and postAdapt calls
This MR fixes the issue of late calls to update in DOFVectorTest and ProblemStat.inc
basis.update(gv)
needs to be called after a change to the grid and before the basis is used again. Since GridTransferManager::adapt()
handles calls to [pre/post]adapt()
, it is required to have access to non-const instances of the involved bases and to call update on them.
Note: branch feature/global_refine
currently uses calls to
adapted |= GridTransferManager::adapt(*grid_);
globalBasis_->update(gridView());
With this MR those need to be replaced by
adapted |= GridTransferManager::adapt(*grid_, *globalBasis_);