Effects of faults on rock layers