Clarify MAX_LEVEL
Opened this issue · 0 comments
hyschive commented
Goal
Regard MAX_LEVEL
as a pure refinement criterion that can be changed during runtime or after restart. As a result, we should allow patches to exist on levels higher than MAX_LEVEL
temporarily.
Tasks
-
MAX_LEVEL
should only be used in refinement routines - Replace
MAX_LEVEL
withTOP_LEVEL
orNPatchTotal[]
whenever appropriate - Make sure that all routines work properly and efficiently on levels without any patch
- Test changing
MAX_LEVEL
in the following two cases- During runtime
- After restart
- Rename
MAX_LEVEL
asFLAG_MAX_LEVEL
to better distinguish it fromTOP_LEVEL
(which is defined asNLEVEL-1
).