19 REAL(rprec),
DIMENSION(nrzt),
INTENT(in) :: overg
20 REAL(rprec),
DIMENSION(nrzt),
INTENT(inout) :: bsupu, bsupv
22 INTEGER :: js, l, ku, lk
23 REAL(rprec),
dimension(3) :: topSum, botSum
24 REAL(rprec) :: top, bot
32 IF (ncurr .eq. 1)
then
41 top = top -
wint(l)*(
guu(l)*bsupu(l) +
guv(l)*bsupv(l))
42 bot = bot +
wint(l)*
guu(l)*overg(l)
44 IF (bot .ne. zero)
then
47 IF (
phips(js) .ne. zero)
then
77 bsupu(:nrzt) = bsupu(:nrzt) +
chip(:nrzt)*overg(:nrzt)
81 call add_real_1d(
"chips", ns-1,
chips(2:ns))
82 call add_real_1d(
"iotas", ns-1,
iotas(2:ns))
83 call add_real_1d(
"chipf", ns,
chipf)
84 call add_real_1d(
"iotaf", ns,
iotaf)
86 call add_real_3d(
"bsupu", ns, nzeta, ntheta3, bsupu)
subroutine add_fluxes(overg, bsupu, bsupv)
Add the magnetic fluxes to the tangential derivatives of to arrive at the contravariant magnetic fie...
logical function open_dbg_context(context_name, repetition, id)
check if any output is desired for the current iteration check if the given context should be openend...
real(rprec), dimension(:), allocatable wint
two-dimensional array for normalizing angle integrations
real(rprec), dimension(:), allocatable guv
metric element
real(rprec), dimension(:), allocatable chip
radial derivative of chi/(2*pi) on half-grid
real(rprec), dimension(:), allocatable guu
metric element
real(rprec), dimension(:), allocatable chips
poloidal flux (same as chip), one-dimensional array
real(rprec), dimension(:), allocatable iotaf
rotational transform (full grid)
real(rprec), dimension(:), allocatable chipf
radial derivative of poloidal magnetic flux (full grid)
integer num_eqsolve_retries
real(rprec), dimension(:), allocatable phips
toroidal flux (same as phip), one-dimensional array
real(rprec), dimension(:), allocatable iotas
rotational transform , on half radial mesh
real(rprec), dimension(:), allocatable icurv
(-)toroidal current inside flux surface (vanishes like s)