Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(abstract_eqfile_geo_type), | intent(in) | :: | self | |||
real, | intent(in) | :: | pbar |
real function betafun_eqfile (self, pbar) result(betafun)
use splines, only: splint
implicit none
class(abstract_eqfile_geo_type), intent(in) :: self
real, intent(in) :: pbar
if (pbar == 0.) then
betafun = self%beta_0
else
betafun = splint(pbar, self%beta_spl)
end if
end function betafun_eqfile