18 INTEGER ier_flag, iunit
19 CHARACTER(LEN=*) :: in_file
21 INTEGER :: ireadseq, iosnml = 0
24 CALL safe_open (iunit, ireadseq, in_file,
'old',
'formatted')
25 IF (ireadseq .ne. 0)
THEN
26 WRITE (6,
'(3a,i4)')
' In VMEC, error opening input file: ',trim(in_file),
'. Iostat = ', ireadseq
37 IF (iosnml .ne. 0)
THEN
38 WRITE (6,
'(a,i4)')
' In VMEC, indata NAMELIST error: iostat = ', iosnml
56 IF (
ncurr.eq.1 .and. all(
ac.eq.cbig))
then
61 WHERE (
ac .eq. cbig)
ac = zero
66 IF (
mpol .gt. mpold) stop
'mpol>mpold: lower mpol'
67 IF (
ntor .gt. ntord) stop
'ntor>ntord: lower ntor'
78 ntheta2 = 1 + ntheta1/2
96 mnmax = ntor1 + mpol1*(1 + 2*
ntor)
fault-tolerant file opening routines
subroutine safe_open(iunit, istat, filename, filestat, fileform, record_in, access_in, delim_in)
subroutine set_nestor_sizes(nfp, ntor, mpol, nzeta, ntheta, lasym)
integer, parameter input_error_flag
integer ntmax
number of contributing Fourier basis function (can be 1, 2 or 4); assigned in read_indata()
subroutine read_indata(in_file, iunit, ier_flag)
Read the INDATA namelist from a given input file.