Thermo-mechanical loading of intact rock and discontinuities