advance_fields_fluxtube Subroutine

public subroutine advance_fields_fluxtube(g, phi, apar, bpar, dist, skip_fsa)

This calls the appropriate routines needed to advance phi in the main code when using fluxtube stella, depending on the distribution (i.e. if the information is parallelised over (kx,ky,z) or (vpa,mu) ). Note that Apar and Bpar are only advanced when using EM so these are in fields_electromagnetic.fpp

Layouts Arrays Parameters Grids

Note that fields_kxkyz = F is the default This will call get_fields_fluxtube_vmlo Note that to use this option it has to be specified by the user First gather (vpa,mu) onto processor for v-space operations v-space operations are field solve, dg/dvpa, and collisions Given gvmu with vpa and mu local, calculate the corresponding fields This will call get_fields_fluxtube_kxkyzlo

Arguments

Type IntentOptional Attributes Name
complex, intent(in), dimension(:, :, -nzgrid:, :, vmu_lo%llim_proc:) :: g
complex, intent(inout), dimension(:, :, -nzgrid:, :) :: phi
complex, intent(inout), dimension(:, :, -nzgrid:, :) :: apar
complex, intent(inout), dimension(:, :, -nzgrid:, :) :: bpar
character(len=*), intent(in) :: dist
logical, intent(in), optional :: skip_fsa