A Projection Method for Locally Refined Grids