Abstract
The calculation of the stress tensor and related properties and its implementation in the CRYSTAL code are described. The stress tensor is obtained from the earlier implemented analytical gradients with respect to the cell parameters. Subsequently, the pressure and enthalpy are computed, and a test concerning the pressure-driven phase transition in KI is used as an illustration. Finally, the possibility of applying external pressure is implemented. The constant-pressure optimization offers an alternative optimization method in addition to the already implemented optimization at constant volume.