31 REAL(rprec),
DIMENSION(-ntord:ntord,0:mpol1d) ::
rbc
32 REAL(rprec),
DIMENSION(-ntord:ntord,0:mpol1d) ::
zbs
33 REAL(rprec),
DIMENSION(-ntord:ntord,0:mpol1d) ::
rbs
34 REAL(rprec),
DIMENSION(-ntord:ntord,0:mpol1d) ::
zbc
43 REAL(rprec),
DIMENSION(0:20) ::
am
44 REAL(rprec),
DIMENSION(0:20) ::
ai
45 REAL(rprec),
DIMENSION(0:20) ::
ac
47 REAL(rprec),
DIMENSION(1:20) ::
aphi
62 REAL(rprec),
DIMENSION(nigroup) ::
extcur
297 INTEGER,
intent(in) :: iunit
298 INTEGER,
intent(inout) :: istat
300 character(len=1000) :: line
368 READ (iunit, nml=indata, iostat=istat)
370 if (istat .ne. 0)
then
374 read(iunit,fmt=
'(A)') line
375 write(*,
'(A)')
'Invalid line in namelist: '//trim(line)
384 INTEGER,
INTENT(in) :: iunit
385 INTEGER,
INTENT(inout) :: istat
386 INTEGER :: iftol,i,n,m
387 INTEGER,
DIMENSION(1) :: ins
388 CHARACTER(LEN=*),
PARAMETER :: outboo =
"(2X,A,1X,'=',1X,L1)"
389 CHARACTER(LEN=*),
PARAMETER :: outint =
"(2X,A,1X,'=',1X,I0)"
390 CHARACTER(LEN=*),
PARAMETER :: outint1 =
"(2X,A,1X,'=',1X,I1.1)"
391 CHARACTER(LEN=*),
PARAMETER :: outint2 =
"(2X,A,1X,'=',1X,I2.2)"
392 CHARACTER(LEN=*),
PARAMETER :: outint3 =
"(2X,A,1X,'=',1X,I3.3)"
393 CHARACTER(LEN=*),
PARAMETER :: outint4 =
"(2X,A,1X,'=',1X,I4.4)"
394 CHARACTER(LEN=*),
PARAMETER :: outint5 =
"(2X,A,1X,'=',1X,I5.5)"
395 CHARACTER(LEN=*),
PARAMETER :: outint6 =
"(2X,A,1X,'=',1X,I6.6)"
396 CHARACTER(LEN=*),
PARAMETER :: outflt=
"(2X,A,1X,'=',1X,ES22.12E3)"
397 CHARACTER(LEN=*),
PARAMETER :: outexp=
"(2X,A,1X,'=',1X,ES22.12E3)"
398 IF (istat < 0)
RETURN
399 WRITE(iunit,
'(A)')
'!----- Runtime Parameters -----'
400 WRITE(iunit,
'(A)')
'&INDATA'
401 WRITE(iunit,outflt)
'DELT',
delt
402 WRITE(iunit,outint)
'NSTEP',
nstep
403 WRITE(iunit,outflt)
'TCON0',
tcon0
405 WRITE(iunit,
'(a,(1p,4i14))')
' NS_ARRAY = ',(
ns_array(i), i=1,ins(1))
407 DO WHILE(
ftol_array(iftol).ne.0 .and. iftol.lt.100)
410 WRITE(iunit,
'(a,(1p,4e14.6))')
' FTOL_ARRAY = ',(
ftol_array(i), i=1,iftol - 1)
412 IF (ins(1) > 1)
WRITE(iunit,
'(a,(1p,4i14))')
' NITER_ARRAY = ',(
niter_array(i), i=1,ins(1)-1)
413 WRITE(iunit,
'(A)')
'!----- Grid Parameters -----'
414 WRITE(iunit,outboo)
'LASYM',
lasym
415 WRITE(iunit,outint4)
'NFP',
nfp
416 WRITE(iunit,outint4)
'MPOL',
mpol
417 WRITE(iunit,outint4)
'NTOR',
ntor
418 WRITE(iunit,outflt)
'PHIEDGE',
phiedge
419 WRITE(iunit,
'(A)')
'!----- Free Boundary Parameters -----'
420 WRITE(iunit,outboo)
'LFREEB',
lfreeb
422 WRITE (iunit,
'(2x,3a)')
"MGRID_FILE = '",trim(
mgrid_file),
"'"
423 WRITE(iunit,outint4)
'NZETA',
nzeta
426 WRITE(iunit,
'(2X,A,I3.3,A,ES22.12E3)')
'EXTCUR(',n,
') = ',
extcur(n)
428 WRITE(iunit,outint4)
'NVACSKIP',
nvacskip
430 WRITE(iunit,
'(A)')
'!----- Pressure Parameters -----'
431 WRITE(iunit,outflt)
'GAMMA',
gamma
432 WRITE(iunit,outflt)
'BLOAT',
bloat
433 WRITE(iunit,outflt)
'SPRES_PED',
spres_ped
435 WRITE(iunit,
'(2x,3a)')
"PMASS_TYPE = '",trim(
pmass_type),
"'"
436 WRITE(iunit,
'(a,(1p,4e22.14))')
' AM = ', (
am(i-1), i=1,
SIZE(
am))
439 WRITE (iunit,
'(a,(1p,4ES22.12E3))')
' AM_AUX_S = ', (
am_aux_s(n), n=1,i)
440 WRITE (iunit,
'(a,(1p,4ES22.12E3))')
' AM_AUX_F = ', (
am_aux_f(n), n=1,i)
443 WRITE(iunit,
'(A)')
'!----- Current/Iota Parameters -----'
444 WRITE(iunit,outexp)
'CURTOR',
curtor
445 WRITE(iunit,outint)
'NCURR',
ncurr
446 WRITE (iunit,
'(2x,3a)')
"PIOTA_TYPE = '",trim(
piota_type),
"'"
447 WRITE (iunit,
'(a,(1p,4e22.14))')
' AI = ',(
ai(n-1), n=1,
SIZE(
ai))
450 WRITE (iunit,
'(a,(1p,4ES22.12E3))')
' AI_AUX_S = ', (
ai_aux_s(n), n=1,i)
451 WRITE (iunit,
'(a,(1p,4ES22.12E3))')
' AI_AUX_F = ', (
ai_aux_f(n), n=1,i)
453 WRITE (iunit,
'(2x,3a)')
"PCURR_TYPE = '",trim(
pcurr_type),
"'"
454 WRITE (iunit,
'(a,(1p,4ES22.12E3))')
' AC = ',(
ac(n-1), n=1,
SIZE(
ac))
457 WRITE (iunit,
'(a,(1p,4ES22.12E3))')
' AC_AUX_S = ', (
ac_aux_s(n), n=1,i)
458 WRITE (iunit,
'(a,(1p,4ES22.12E3))')
' AC_AUX_F = ', (
ac_aux_f(n), n=1,i)
461 WRITE(iunit,
'(A)')
'!----- Axis Parameters ----- '
462 WRITE (iunit,
'(a,(1p,4e22.14))')
' RAXIS_CC = ',(
raxis_cc(n), n=0,
ntor)
464 WRITE (iunit,
'(a,(1p,4ES22.12E3))')
' RAXIS_CS = ',(
raxis_cs(n), n=0,
ntor)
465 WRITE (iunit,
'(a,(1p,4ES22.12E3))')
' ZAXIS_CC = ',(
zaxis_cc(n), n=0,
ntor)
467 WRITE (iunit,
'(a,(1p,4ES22.12E3))')
' ZAXIS_CS = ',(
zaxis_cs(n), n=0,
ntor)
469 WRITE(iunit,
'(A)')
'!----- Boundary Parameters -----'
472 IF ((
rbc(n,m).ne.0) .or. (
zbs(n,m).ne.0))
THEN
473 WRITE(iunit,
'(2(A,I4.3,A,I3.3,A,ES22.12E3))') &
474 ' RBC(',n,
',',m,
') = ',
rbc(n,m),
' ZBS(',n,
',',m,
') = ',
zbs(n,m)
476 WRITE(iunit,
'(2(A,I4.3,A,I3.3,A,ES22.12E3))') &
477 ' RBS(',n,
',',m,
') = ',
rbs(n,m),
' ZBC(',n,
',',m,
') = ',
zbc(n,m)
483 WRITE(iunit,
'(A)')
'/'
integer, parameter mpol1d
integer, parameter ndatafmax
integer, parameter ntord
maximum number of toroidal harmonics