Flow of thin films on patterned surfaces