FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(diagnostics_type), | intent(in) | :: | gnostics |
subroutine write_full_moments_notgc(gnostics)
use theta_grid, only: ntgrid
use kt_grids, only: naky, ntheta0
use species, only: nspec
use dist_fn, only: getmoms_notgc
use fields_arrays, only: phinew, bparnew
use diagnostics_config, only: diagnostics_type
implicit none
type(diagnostics_type), intent(in) :: gnostics
complex, dimension (-ntgrid:ntgrid,ntheta0,naky,nspec) :: ntot, density, upar, tpar, tperp
call getmoms_notgc(phinew, bparnew, density,upar,tpar,tperp,ntot)
call write_standard_moment_properties(gnostics, &
'ntot_notgc', 'The total perturbed species density &
& in non-guiding centre coordinates', 'n_r', ntot, gnostics%distributed)
call write_standard_moment_properties(gnostics, &
'density_notgc', 'The non-adiabatic part of the perturbed species density &
& in non-guiding centre coordinates', 'n_r', density, gnostics%distributed)
call write_standard_moment_properties(gnostics, &
'upar_notgc', 'The perturbed parallel flow &
& in non-guiding centre coordinates', 'v_ths', upar, gnostics%distributed)
call write_standard_moment_properties(gnostics, &
'tpar_notgc', 'The perturbed parallel temperature &
& in non-guiding centre coordinates', 'T_r', tpar, gnostics%distributed)
call write_standard_moment_properties(gnostics, &
'tperp_notgc', 'The perturbed perpendicular temperature &
& in non-guiding centre coordinates', 'T_r', tperp, gnostics%distributed)
end subroutine write_full_moments_notgc