Distributed damage, faulting, and friction