get_modified_fourier_coefficient Subroutine

private subroutine get_modified_fourier_coefficient(moment, moment_ky, flxfac)

is_end is either nspec for fluxes, or ntubes when calcualting |phi|^2

divide the input moment by the magnetic field strength to account for Jacobian in flux-surface average transform the B-modified input moment from y to ky space swap from all ky and kx >= 0 to all kx and ky >= 0

Arguments

Type IntentOptional Attributes Name
complex, intent(in), dimension(:, :, -nzgrid:, :) :: moment
complex, intent(out), dimension(:, :, -nzgrid:, :) :: moment_ky
real, intent(in), dimension(:, -nzgrid:) :: flxfac