Dynamic AMR race conditions possible
Gradient based refinement criteria can introduce a race condition in my current dynamic AMR implementation.
The user has to make sure here that the fine grid cells are not requesting erasing while the coarse grid cell requests refinement. I properly have to introduce a flag/cell type that notifies the fine grid cells that the parent has requested refinement during this grid setup.
I was able to implement stable refinement criteria solely based on the magnitude of the target quantity.