get_one_flux_ffs Subroutine

private subroutine get_one_flux_ffs(mom, dphidy, flxfac, flx, flx_vs_kxkyz)

Multiply input moment (e.g. density, momentum, or energy) but Jacobian (called flxfac) Need to do this because Jacobian has y-dependence then Fourier transform back to (ky,kx)-space pflx_vs_kxkyz is the particle flux before summing over (kx,ky) and integrating over z calculate the volume average of the particle flux note that the factor of 1/B that appears in the Jacobian has already been taken into account in the numerator of the flux surface average

Arguments

Type IntentOptional Attributes Name
complex, intent(in), dimension(:, :, -nzgrid:, :) :: mom
complex, intent(in), dimension(:, :, -nzgrid:) :: dphidy
real, intent(in), dimension(:, -nzgrid:) :: flxfac
real, intent(out), dimension(:) :: flx
real, intent(out), dimension(:, :, -nzgrid:, :) :: flx_vs_kxkyz