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

Check that level index set is allocated

parent 476b6d18
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"
......@@ -456,6 +456,7 @@ public:
DUNE_THROW(GridError,"level index set support not enabled for this grid");
}
assert(level <= maxLevel());
assert(_levelIndexSets[level]);
return *_levelIndexSets[level];
}
......
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