13 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
blam
14 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
clam
15 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
dlam
16 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
ard
17 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
arm
18 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
brd
19 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
brm
20 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
azd
21 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
azm
22 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
bzd
23 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
bzm
24 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
crd
25 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
sm
26 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
sp
27 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
bdamp
28 REAL(rprec),
DIMENSION(:,:,:,:),
ALLOCATABLE ::
faclam
29 REAL(rprec),
DIMENSION(:,:,:,:),
ALLOCATABLE ::
faclam0
31 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
bmin
32 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
bmax
34 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
iotaf
35 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
phipf
36 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
chipf
37 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
phi
38 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
beta_vol
39 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
jcuru
40 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
jcurv
41 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
jdotb
42 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
buco
43 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
bvco
45 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
equif
46 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
specw
47 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
tcon
48 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
psi
49 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
yellip
50 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
yinden
51 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
ytrian
52 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
yshift
53 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
ygeo
54 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
overr
55 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
pres
56 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
vp
57 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
jpar2
58 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
jperp2
59 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
bdotb
60 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
vpphi
61 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
presgrad
62 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
bucof
63 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
bvcof
64 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
chi
66 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
presf
67 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
chips
68 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
phips
69 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
iotas
70 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
icurv
71 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
mass
73 REAL(rprec),
DIMENSION(:,:),
ALLOCATABLE ::
bsqsav
75 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
bredge
76 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
bpedge
77 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
bzedge
79 REAL(rprec),
ALLOCATABLE ::
xcl0(:)
81 REAL(rprec),
DIMENSION(0:mpol1d,3) ::
xmpq
82 REAL(rprec),
DIMENSION(0:mpol1d) ::
faccon
94 REAL(rprec) ::
fsqr = 1.0_dp
95 REAL(rprec) ::
fsqz = 1.0_dp
96 REAL(rprec) ::
fsql = 1.0_dp
126 REAL(rprec),
DIMENSION(ndamp) ::
otau
128 REAL(rprec),
DIMENSION(:,:,:),
ALLOCATABLE,
TARGET ::
rmn_bdy
129 REAL(rprec),
DIMENSION(:,:,:),
ALLOCATABLE,
TARGET ::
zmn_bdy
131 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
bsubu0
132 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
dbsq
133 REAL(rprec),
DIMENSION(:),
ALLOCATABLE ::
rbsq
real(rprec), dimension(:), allocatable dlam
real(rprec), dimension(:), allocatable bredge
real(rprec), dimension(:), allocatable equif
radial force balance error: grad(p) - <j x B>
integer irzloff
offset in xc array between R,Z,L components
real(rprec) rbtor
poloidal current at LCFS
real(rprec), dimension(:,:), allocatable ygeo
real(rprec), dimension(:), allocatable vp
radial derivative of enclosed volume
real(rprec), dimension(:), allocatable bvco
enclosed poloidal current profile
real(rprec), dimension(:,:,:,:), allocatable faclam0
real(rprec), dimension(:), allocatable buco
enclosed toroidal current profile
real(rprec), dimension(:), allocatable crd
real(rprec), dimension(:), allocatable sp
shalf(i+1)/sfull(i)
real(rprec), dimension(:,:), allocatable brd
real(rprec), dimension(:), allocatable jcuru
poloidal current density
real(rprec) wp
kinetic/thermal energy (from pressure)
real(rprec) hs
radial mesh size increment
real(rprec), dimension(:,:), allocatable azd
real(rprec), dimension(:,:), allocatable ytrian
real(rprec), dimension(:,:,:,:), allocatable faclam
integer iter1
number of iterations at which the currently active evolution was branched off from
real(rprec), dimension(:,:), allocatable bmax
real(rprec), dimension(:), allocatable dbsq
real(rprec), dimension(:), allocatable chips
poloidal flux (same as chip), one-dimensional array
real(rprec) ctor
toroidal current (?)
real(rprec), dimension(:), allocatable presf
pressure profile on full-grid, mass/phip**gamma
real(rprec), dimension(:,:,:), allocatable, target zmn_bdy
real(rprec) voli
total plasma volume in m^3
real(rprec), dimension(:), allocatable rbsq
real(rprec), dimension(:), allocatable bdamp
radial mesh-blending factor
real(rprec), dimension(:), allocatable phi
toroidal magnetic flux
integer neqs
total number of equations to evolve (size of xc)
real(rprec), dimension(:), allocatable overr
real(rprec), dimension(:), allocatable sm
shalf(i)/sfull(i)
integer iequi
counter used to call -EQFOR- at end of run
integer first
"counter" monitoring sign of jacobian; resets R, Z, and Lambda when jacobian changes sign and decreas...
real(rprec), dimension(:,:), allocatable bmin
real(rprec), dimension(:,:), allocatable brm
real(rprec), dimension(ndamp) otau
real(rprec), dimension(:), allocatable jdotb
real(rprec), dimension(:,:), allocatable bzd
real(rprec), dimension(:,:), allocatable bzm
real(rprec), dimension(:,:), allocatable yinden
real(rprec), dimension(:), allocatable bdotgradv
integer ivac
counts number of free-boundary iterations
real(rprec), dimension(:), allocatable clam
real(rprec), dimension(:), allocatable specw
spectral width (diagnostic)
real(rprec), dimension(:), allocatable iotaf
rotational transform (full grid)
real(rprec) otav
time-step algorithm
real(rprec), dimension(:,:), allocatable yshift
real(rprec) rbtor0
poloidal current at magnetic axis
real(rprec), dimension(:), allocatable psi
real(rprec), dimension(:,:), allocatable ard
real(rprec), dimension(:,:), allocatable bsqsav
real(rprec), dimension(:), allocatable pres
pressure profile
integer niterv
max iterations for current multi-grid iteration
real(rprec), dimension(:), allocatable chipf
radial derivative of poloidal magnetic flux (full grid)
integer ijacob
counter for number of times jacobian changes sign
real(rprec) wb
magnetic energy: volume integral over B^2/2
real(rprec), dimension(:), allocatable bpedge
real(rprec), dimension(:,:,:), allocatable, target rmn_bdy
integer num_eqsolve_retries
real(rprec), dimension(0:mpol1d, 3) xmpq
spectral condensation weighting factors
real(rprec), dimension(:), allocatable jpar2
real(rprec), dimension(:), allocatable presgrad
pressure gradient: dp/ds
integer, dimension(:), allocatable ireflect
two-dimensional array for computing 2pi-v angle
real(rprec) currv
toroidal current (?)
real(rprec), dimension(:,:), allocatable arm
real(rprec), dimension(:), allocatable bvcof
real(rprec), dimension(:), allocatable blam
real(rprec), dimension(:), allocatable chi
poloidal magnetic flux
real(rprec), dimension(:), allocatable phips
toroidal flux (same as phip), one-dimensional array
real(rprec), dimension(:), allocatable xcl0
real(rprec), dimension(:), allocatable bsubu0
real(rprec), dimension(:), allocatable mass
mass profile on half-grid
real(rprec), dimension(:), allocatable bdotb
logical lflip
from init_geometry
real(rprec), dimension(:), allocatable bzedge
real(rprec), dimension(:), allocatable bucof
real(rprec), dimension(0:mpol1d) faccon
factor for spectral constraint
real(rprec), dimension(:), allocatable beta_vol
integer iter2
total number of iterations
real(rprec), dimension(:), allocatable iotas
rotational transform , on half radial mesh
real(rprec), dimension(:,:), allocatable azm
real(rprec), dimension(:), allocatable jperp2
real(rprec), dimension(:), allocatable phipf
radial derivative of toroidal magnetic flux (full grid)
real(rprec), dimension(:), allocatable tcon
constraint-force multiplier
real(rprec), dimension(:,:), allocatable yellip
real(rprec), dimension(:), allocatable icurv
(-)toroidal current inside flux surface (vanishes like s)
real(rprec), dimension(:), allocatable vpphi
real(rprec), dimension(:), allocatable jcurv
toroidal current density
integer, parameter ndamp
number of iterations over which damping is averaged