Curved spacetime grid