Skip to content
Snippets Groups Projects
Commit c692f229 authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Make update non const member function

parent 4748aaf1
No related branches found
No related tags found
1 merge request!27Resolve "When the grid is adapted, the subdomain grids keep an outdated number of level index sets"
......@@ -591,7 +591,7 @@ public:
return _subDomain;
}
void update() const {
void update() {
if (_grid.supportLevelIndexSets()) {
while (_levelIndexSets.size() <= static_cast<std::size_t>(maxLevel())) {
_levelIndexSets.push_back(std::make_shared<LevelIndexSetImp>(*this,_grid.levelIndexSet(_levelIndexSets.size())));
......@@ -690,7 +690,7 @@ private:
GlobalIdSetImp _globalIdSet;
LocalIdSetImp _localIdSet;
LeafIndexSetImp _leafIndexSet;
mutable std::vector<std::shared_ptr<LevelIndexSetImp> > _levelIndexSets;
std::vector<std::shared_ptr<LevelIndexSetImp> > _levelIndexSets;
SubDomainGrid(MDGrid& grid, SubDomainIndex subDomain) :
_grid(grid),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment