Forward simulation of shallow glaciers