add shared grid for 2D structured mesh. untested.