20 REAL(rprec) :: delt0, w0
23 CHARACTER(LEN=*),
PARAMETER :: iter_line =
" ITER FSQR FSQZ CONR CONZ MHDR MHDZ FSQL "
24 CHARACTER(LEN=*),
PARAMETER :: fsq_line =
" fsqr fsqz conr conz mhdr mhdz fsql DELT "
25 CHARACTER(LEN=*),
PARAMETER :: iter_lines = iter_line
26 CHARACTER(LEN=*),
PARAMETER :: fsq_lines = fsq_line
27 CHARACTER(LEN=*),
PARAMETER :: raxis_line =
"RAX(v=0) "
30 CHARACTER(LEN=*),
PARAMETER :: delt_line =
" DELT "
31 CHARACTER(LEN=*),
PARAMETER :: zaxis_line =
" ZAX(v=0) "
33 REAL(rprec) :: betav, w, avm, den
34 CHARACTER(len=LEN(iter_line) + LEN(fsq_line) + LEN(raxis_line) + LEN(zaxis_line)) :: print_line
35 logical :: dbgout_printout
45 if (dbgout_printout)
then
47 call add_real_5d(
"gc", 3,
ntmax, ns, ntor1, mpol,
gc, order=(/ 3, 4, 5, 2, 1 /) )
60 if (dbgout_printout)
then
61 call add_real(
"betav", betav)
62 call add_real(
"avm", avm)
63 call add_real(
"delbsq",
delbsq)
65 call add_real_1d(
"specw", ns,
specw)
70 IF (i0.eq.1 .and. lfreeb)
THEN
71 print_line = iter_lines //
" " // raxis_line
72 IF (lasym) print_line = trim(print_line) //
" " // zaxis_line
73 print 20, trim(print_line)//delt_line
74 print_line = iter_line // fsq_line // raxis_line
75 IF (lasym) print_line = trim(print_line) //
" " // zaxis_line
76 WRITE (nthreed, 16) trim(print_line)
77 ELSE IF (i0.eq.1 .and. .not.lfreeb)
THEN
78 print_line = raxis_line
79 IF (lasym) print_line = raxis_line // zaxis_line
80 print 30, iter_lines, trim(print_line)//delt_line
81 print_line = iter_line // fsq_line // raxis_line //
" "
83 print_line = iter_line // fsq_line // raxis_line // zaxis_line
85 WRITE (nthreed, 25) trim(print_line)
8716
FORMAT(/,a,6x,
'WMHD BETA PHIEDGE DEL-BSQ FEDGE',/)
8820
FORMAT(/,a,6x,
'WMHD DEL-BSQ',/)
8925
FORMAT(/,a,6x,
'WMHD BETA <M> ',/)
9030
FORMAT(/,a,1x,a,5x,
'WMHD',/)
98 delt0,
r00, w, betav, avm
108 IF (.not.lfreeb)
THEN
12340
FORMAT(i6,1x,1p,15e10.2,e11.3,e12.4,e11.3,0p,f7.3,1p,2e9.2)
12442
FORMAT(i5,1p,15e10.2,e11.3,e12.4,2e11.3,0p,f7.3,1p,e9.2)
12545
FORMAT(i5,1p,7e10.2,e11.3,e10.2,e12.4)
12650
FORMAT(i5,1p,7e10.2,e11.3,e10.2,e12.4,e11.3)
12760
FORMAT(i6,1x,1p,15e10.2,2e11.3,e12.4,e11.3,0p,f7.3,1p,2e9.2)
12865
FORMAT(i5,1p,7e10.2,2e11.3,e10.2,e12.4)
12970
FORMAT(i5,1p,7e10.2,2e11.3,e10.2,e12.4,e11.3)
integer irzloff
offset in xc array between R,Z,L components
real(rprec), dimension(:), allocatable vp
radial derivative of enclosed volume
real(rprec) wp
kinetic/thermal energy (from pressure)
real(rprec), dimension(:), allocatable dbsq
integer ivac
counts number of free-boundary iterations
real(rprec), dimension(:), allocatable specw
spectral width (diagnostic)
real(rprec), dimension(:,:), allocatable bsqsav
real(rprec) wb
magnetic energy: volume integral over B^2/2
integer num_eqsolve_retries
integer iter2
total number of iterations
real(rprec), dimension(:), allocatable gc
stacked array of R, Z, Lambda Spectral force coefficients (see above for stack order)