16 type (type_equilibrium
) :: equilibrium_out
17 character(len = 132) :: path
19 integer(itm_i4) :: i, j
22 open (unit = out_map, file = trim(adjustl(path)) // file_map_out, &
23 status =
'replace', form =
'formatted', action =
'write', iostat = i_error)
26 write(out_map, 1) nr, nchi
29 write(out_map, 2) equilibrium_out%eqgeometry%geom_axis%r
30 write(out_map, 2) equilibrium_out%eqgeometry%a_minor
31 write(out_map, 2) equilibrium_out%global_param%mag_axis%position%r
32 write(out_map, 2) equilibrium_out%global_param%mag_axis%bphi
35 write(out_map, 3) (equilibrium_out%profiles_1d%psi(i), i = 1, nr)
36 write(out_map, 3) (equilibrium_out%profiles_1d%pressure(i), i = 1, nr)
37 write(out_map, 3) (equilibrium_out%profiles_1d%F_dia(i), i = 1, nr)
38 write(out_map, 3) (equilibrium_out%profiles_1d%q(i), i = 1, nr)
39 write(out_map, 3) (equilibrium_out%profiles_1d%pprime(i), i = 1, nr)
42 write(out_map, 3) (equilibrium_out%eqgeometry%boundary(1)%r(i), i = 1, &
44 write(out_map, 3) (equilibrium_out%eqgeometry%boundary(1)%z(i), i = 1, &
48 write(out_map, 3) ((equilibrium_out%coord_sys%position%r(i, j), &
49 i = 1, nr), j = 1, nchi)
50 write(out_map, 3) ((equilibrium_out%coord_sys%position%z(i, j), &
51 i = 1, nr), j = 1, nchi)
52 write(out_map, 3) ((equilibrium_out%coord_sys%g_11(i, j), &
53 i = 1, nr), j = 1, nchi)
54 write(out_map, 3) ((equilibrium_out%coord_sys%g_12(i, j), &
55 i = 1, nr), j = 1, nchi)
56 write(out_map, 3) ((equilibrium_out%coord_sys%g_33(i, j), &
57 i = 1, nr), j = 1, nchi)
subroutine write_equilibrium(path, equilibrium_out)