what is a wave coming into a barrier