Handling AMR grids.