compute sliprate of centroid as sum of sliprates of the point sources

also adding some convenience functions