PB3D
[2.45]
Ideal linear high-n MHD stability in 3-D
|
Go to the documentation of this file.
5 #include <PB3D_macros.h>
11 use read_wout_mod,
only: &
12 &is_asym_v => lasym, vmec_version => version_, is_freeb_v => lfreeb, &
13 &mpol_v => mpol, ntor_v => ntor, &
14 &mnmax_v => mnmax, nfp_v => nfp, &
18 &rmax_surf, rmin_surf, zmax_surf
25 &
flux_p_v, vmec_version, gam_v, is_freeb_v, nfp_v,
b_0_v, rmin_surf, &
32 integer,
allocatable ::
mn_v(:,:)
93 &trim(
i2str(mem_diff))//
'kB deallocating VMEC')
integer, parameter, public dp
double precision
Numerical variables used by most other modules.
integer, dimension(:,:), allocatable, public mn_v
m and n of modes
integer, parameter, public max_str_ln
maximum length of strings
subroutine, public dealloc_vmec()
Deallocates VMEC quantities that are not used anymore.
elemental character(len=max_str_ln) function, public i2str(k)
Convert an integer to string.
real(dp), dimension(:,:), allocatable, public b_v_c
Coeff. of magnitude of B in sine series (HM and FM)
real(dp), dimension(:,:), allocatable, public j_v_sup_int
Integrated poloidal and toroidal current (FM)
integer function, public get_mem_usage()
Returns the memory usage in kilobytes.
real(dp), dimension(:,:,:), allocatable, public jac_v_s
Coeff. of in cosine series (HM and FM) and norm. deriv.
real(dp), dimension(:,:,:), allocatable, public b_v_sub_s
Coeff. of B_i in cosine series (r,theta,phi) (FM)
real(dp), dimension(:,:), allocatable, public flux_p_v
poloidal flux
real(dp), dimension(:,:,:), allocatable, public b_v_sub_c
Coeff. of B_i in sine series (r,theta,phi) (FM)
logical, public print_mem_usage
print memory usage is printed
real(dp), dimension(:,:), allocatable, public flux_t_v
toroidal flux
real(dp), dimension(:,:), allocatable, public pres_v
pressure
real(dp), dimension(:,:), allocatable, public rot_t_v
rotational transform
real(dp), dimension(:,:), allocatable, public b_v_s
Coeff. of magnitude of B in cosine series (HM and FM)
subroutine, public writo(input_str, persistent, error, warning, alert)
Write output to file identified by output_i.
Numerical utilities related to giving output.
real(dp), dimension(:,:,:), allocatable, public z_v_s
Coeff. of in cosine series (FM) and norm. deriv.
real(dp), parameter, public pi
real(dp), dimension(:,:), allocatable, public q_saf_v
safety factor
real(dp), dimension(:,:,:), allocatable, public r_v_c
Coeff. of in sine series (FM) and norm. deriv.
Variables that concern the output of VMEC.
real(dp), dimension(:,:,:), allocatable, public l_v_c
Coeff. of in sine series (HM) and norm. deriv.
real(dp), dimension(:,:,:), allocatable, public r_v_s
Coeff. of in cosine series (FM) and norm. deriv.
real(dp), dimension(:,:,:), allocatable, public jac_v_c
Coeff. of in sine series (HM and FM) and norm. deriv.
Operations concerning giving output, on the screen as well as in output files.
real(dp), public b_0_v
the magnitude of B at the magnetic axis,
integer, public rank
MPI rank.
real(dp), dimension(:,:,:), allocatable, public l_v_s
Coeff. of in cosine series (HM) and norm. deriv.
real(dp), dimension(:,:,:), allocatable, public z_v_c
Coeff. of in sine series (FM) and norm. deriv.