A micro–macro model of pore pressure effect on shear fracture in brittle rocks under compression