The effects of pressure on the elastic constants of mercury selenide up to the phase transition