7 character(len = 100) :: txtout(40)
8 logical :: diagnostics_on
9 logical :: standard_output, elite_output
10 logical :: profiles_output, additional_output
11 logical :: xmgrace_output
12 logical :: vec_file, eqdsk_file
32 integer(itm_i4),
parameter :: npts_out = 2000
33 integer(itm_i4),
parameter :: profile_out = 22
35 type (type_equilibrium
),
intent(in) :: equilibrium
36 real(r8),
intent(in) :: pskn1(nr)
37 integer(itm_i4),
intent(in) :: nr
39 real(r8),
dimension(npts_out) :: ps_equi, dp_equi, fdf_equi, p_equi, j_equi
43 ps_equi(i) = pskn1(1) + dble(i - 1) / dble(npts_out - 1) &
44 * (pskn1(
size(pskn1)) - pskn1(1))
49 ps_equi, j_equi, spline_type = 1)
51 ps_equi, dp_equi, spline_type = 1)
53 ps_equi, fdf_equi, spline_type = 1)
55 ps_equi, p_equi, spline_type = 1)
58 if (trim(
output) ==
'profiles' .or. trim(
output) ==
'full')
then
59 open (unit = profile_out, file = trim(adjustl(path)) //
'psi.out', &
60 status =
'replace', form =
'formatted', action =
'write', &
62 if (i_error /= 0)
then
63 write(iu6, *)
' ERROR writing psi.out '
65 write(profile_out, 26) (ps_equi(i) * cpsurfin, i = 1, npts_out)
68 open (unit = profile_out, file = trim(adjustl(path)) //
'dp.out', &
69 status =
'replace', form =
'formatted', action =
'write', &
71 if (i_error /= 0)
then
72 write(iu6, *)
' ERROR writing dp.out '
74 write(profile_out, 26) (dp_equi(i), i = 1, npts_out)
77 open (unit = profile_out, file = trim(adjustl(path)) //
'p.out', &
78 status =
'replace', form =
'formatted', action =
'write', &
80 if (i_error /= 0)
then
81 write(iu6, *)
' ERROR writing p.out '
83 write(profile_out, 26) (p_equi(i), i = 1, npts_out)
86 open (unit = profile_out, file = trim(adjustl(path)) //
'fdf.out', &
87 status =
'replace', form =
'formatted', action =
'write', &
89 if (i_error /= 0)
then
90 write(iu6, *)
' ERROR writing fdf.out '
92 write(profile_out, 26) (fdf_equi(i), i = 1, npts_out)
95 open (unit = profile_out, file = trim(adjustl(path)) //
'j_tor.out', &
96 status =
'replace', form =
'formatted', action =
'write', &
98 if (i_error /= 0)
then
99 write(iu6, *)
' ERROR writing j_tor.out '
101 write(profile_out, 26) (j_equi(i), i = 1, npts_out)
subroutine output(NGRID, betpol, zli3)
subroutine write_equidistant_profiles(equilibrium, pskn1, nr)
subroutine transfer_1d_profile(x_in, f_in, x_out, f_out, df_out, spline_type, monotonic)