Pounding of buildings in series during earthquakes