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