Calculating the linear critical gradient for the ion-temperature-gradient mode in magnetically confined plasmas. (21st June 2021)