16 INTEGER,
INTENT(in) :: nsval
17 INTEGER,
INTENT(inout) :: ns_old
18 REAL(rprec),
INTENT(out) :: delt0
20 INTEGER :: neqs_old = 0
21 LOGICAL :: lreset_internal, linterp
6210
FORMAT(/
' NS = ',i4,
' NO. FOURIER MODES = ',i4,
' FTOLV = ',1p,e10.3,
' NITER = ',i6)
64 lreset_internal = .true.
68 linterp = (ns_old.lt.ns .and. ns_old.ne.0)
70 IF (ns_old .ne. ns)
then
77 IF (neqs_old.gt.0 .and. linterp)
THEN
83 IF (lreset_internal)
THEN
subroutine allocate_ns(linterp, neqs_old)
allocate arrays depending on the number of flux surfaces ns
subroutine initialize_radial(nsval, ns_old, delt0)
Allocates memory for radial arrays and initializes radial profiles.
subroutine interp(xnew, xold, scalxc, nsnew, nsold)
Interpolate , and on full grid.
integer irzloff
offset in xc array between R,Z,L components
real(rprec) hs
radial mesh size increment
integer iter1
number of iterations at which the currently active evolution was branched off from
integer neqs
total number of equations to evolve (size of xc)
integer first
"counter" monitoring sign of jacobian; resets R, Z, and Lambda when jacobian changes sign and decreas...
integer niterv
max iterations for current multi-grid iteration
integer ijacob
counter for number of times jacobian changes sign
integer num_eqsolve_retries
integer iter2
total number of iterations
integer ntmax
number of contributing Fourier basis function (can be 1, 2 or 4); assigned in read_indata()
real(rprec), dimension(:), allocatable gc
stacked array of R, Z, Lambda Spectral force coefficients (see above for stack order)
real(rprec), dimension(:), allocatable, target xc
stacked array of scaled R, Z, Lambda Fourier coefficients (see above for stack order)
real(rprec), dimension(:), allocatable scalxc
real(rprec), dimension(:), allocatable xcdot
"velocity": change of Fourier coefficients per time step
real(rprec), dimension(:), allocatable xstore
backup copy of last-known-good xc
subroutine profil1d()
Compute phip and iota profiles on full grid.
subroutine profil3d(rmn, zmn, lreset)
Compute three-dimensional profiles of flux-surface geometry etc.
subroutine restart_iter(time_step)
Save current or restore previous good state vector and reduce time step.