find_max_required_kalpha_index Subroutine

public subroutine find_max_required_kalpha_index(ft, idx, imu, iz, is, tol_in)

subroutine takes a set of Fourier coefficients (ft) and returns the minimum number of coeffients that must be retained (idx) to ensure that the relative error in the total spectral energy is below a specified tolerance (tol_floor)

Arguments

Type IntentOptional Attributes Name
complex, intent(in), dimension(:) :: ft
integer, intent(out) :: idx
integer, intent(in), optional :: imu
integer, intent(in), optional :: iz
integer, intent(in), optional :: is
real, intent(in), optional :: tol_in