Updates to adaptive-grid code.