A slip law for glaciers on deformable beds