Skip to content

Improve surface.getPerimeter() implementations

Created by: pmpowers-usgs

getPerimeter() implementations that do exist are lazy and called every single time a site is on a hanging wall. What's worse, Distance calls getPerimeter TWICE for hanging-wall sites so there may be some performance gain. Rupture borders/areas should be cached after lazy creation.

Edited by Powers, Peter M.