zgrid Module


Variables

Type Visibility Attributes Name Initial
integer, public :: nzed
integer, public :: nzgrid
integer, public :: nztot
integer, public :: nz2pi
integer, public :: nperiod
integer, public :: ntubes
logical, public :: zed_equal_arc
real, public :: shat_zero
real, public :: grad_x_grad_y_zero
real, public :: dkx_over_dky
real, public, dimension(:), allocatable :: zed
real, public, dimension(:), allocatable :: delzed
integer, public :: boundary_option_switch
integer, public, parameter :: boundary_option_zero = 1
integer, public, parameter :: boundary_option_self_periodic = 2
integer, public, parameter :: boundary_option_linked = 3
integer, public, parameter :: boundary_option_linked_stellarator = 4
logical, private :: zgridinit = .false.

Subroutines

public subroutine init_zgrid()

Arguments

None

private subroutine read_parameters()

Arguments

None

private subroutine broadcast_parameters()

Arguments

None

public subroutine finish_zgrid()

Arguments

None

public subroutine get_total_arc_length(nz, gp, dz, length)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: nz
real, intent(in), dimension(-nz:) :: gp
real, intent(in) :: dz
real, intent(out) :: length

public subroutine get_arc_length_grid(nz_max, nzext_max, zboundary, gp, dz, zarc)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: nz_max
integer, intent(in) :: nzext_max
real, intent(in) :: zboundary
real, intent(in), dimension(-nzext_max:) :: gp
real, intent(in) :: dz
real, intent(out), dimension(-nzext_max:) :: zarc

private subroutine integrate_zed(nz, dz, f, intf)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: nz
real, intent(in) :: dz
real, intent(in), dimension(-nz:) :: f
real, intent(out) :: intf