How geometry of subduction zones correlates with earthquake dynamics