PB3D
[2.45]
Ideal linear high-n MHD stability in 3-D
|
Variables pertaining to the different grids used. More...
Interfaces and Types | |
type | grid_type |
Type for grids. More... | |
Functions/Subroutines | |
integer function | init_grid (grid, n, i_lim, divided) |
Initializes a new grid. More... | |
subroutine | dealloc_grid (grid) |
Deallocates a grid. More... | |
integer function | copy_grid (grid_i, grid_o) |
Deep copy of a grid. More... | |
Variables | |
integer, public | n_r_in |
nr. of normal points in input grid More... | |
integer, public | n_r_eq |
nr. of normal points in equilibrium grid More... | |
integer, public | n_r_x |
nr. of normal points in perturbation grid More... | |
integer, public | n_r_sol |
nr. of normal points in solution grid More... | |
integer, public | n_alpha |
nr. of field-lines More... | |
real(dp), public | min_par_x |
min. of parallel coordinate [ \(\pi\)] in field-aligned grid More... | |
real(dp), public | max_par_x |
max. of parallel coordinate [ \(\pi\)] in field-aligned grid More... | |
real(dp), public | min_alpha |
min. of field-line label [ \(\pi\)] in field-aligned grid More... | |
real(dp), public | max_alpha |
max. of field-line label [ \(\pi\)] in field-aligned grid More... | |
real(dp), dimension(:), allocatable, public | alpha |
field line label alpha More... | |
integer, public | n_alloc_grids |
nr. of allocated grids More... | |
integer, public | n_alloc_discs |
nr. of allocated discretizations More... | |
Variables pertaining to the different grids used.
integer function grid_vars::copy_grid | ( | class(grid_type), intent(in) | grid_i, |
type(grid_type), intent(inout) | grid_o | ||
) |
Deep copy of a grid.
[in] | grid_i | grid to be copied |
[in,out] | grid_o | copied grid |
Definition at line 267 of file grid_vars.f90.
subroutine grid_vars::dealloc_grid | ( | class(grid_type), intent(inout) | grid | ) |
Deallocates a grid.
[in,out] | grid | grid to be deallocated |
Definition at line 203 of file grid_vars.f90.
integer function grid_vars::init_grid | ( | class(grid_type), intent(inout) | grid, |
integer, dimension(3), intent(in) | n, | ||
integer, dimension(2), intent(in), optional | i_lim, | ||
logical, intent(in), optional | divided | ||
) |
Initializes a new grid.
Optionally, the local limits can be provided for a divided grid.
Optionally, it can be set whether the grid is divided or not. A situation where this is useful is when only a subset of MPI processes is used to calculate the solution in SLEPC. In this case, the extra ranks all only contain the last grid point, and the last used process has as upper limit this same grid point. This way, all the procedures are reusable, but in this case if only one process is used, this procedure becomes confused and sets this process to undivided. In most cases, this functionality probably does not need to be used.
[in,out] | grid | grid to be initialized |
[in] | n | tot. nr. of points (par,r,alpha) |
[in] | i_lim | min. and max. local normal index |
[in] | divided | divided grid or not |
Definition at line 102 of file grid_vars.f90.
real(dp), dimension(:), allocatable, public grid_vars::alpha |
field line label alpha
Definition at line 28 of file grid_vars.f90.
real(dp), public grid_vars::max_alpha |
max. of field-line label [ \(\pi\)] in field-aligned grid
Definition at line 27 of file grid_vars.f90.
real(dp), public grid_vars::max_par_x |
max. of parallel coordinate [ \(\pi\)] in field-aligned grid
Definition at line 25 of file grid_vars.f90.
real(dp), public grid_vars::min_alpha |
min. of field-line label [ \(\pi\)] in field-aligned grid
Definition at line 26 of file grid_vars.f90.
real(dp), public grid_vars::min_par_x |
min. of parallel coordinate [ \(\pi\)] in field-aligned grid
Definition at line 24 of file grid_vars.f90.
integer, public grid_vars::n_alloc_discs |
nr. of allocated discretizations
Definition at line 31 of file grid_vars.f90.
integer, public grid_vars::n_alloc_grids |
integer, public grid_vars::n_alpha |
nr. of field-lines
Definition at line 23 of file grid_vars.f90.
integer, public grid_vars::n_r_eq |
nr. of normal points in equilibrium grid
Definition at line 20 of file grid_vars.f90.
integer, public grid_vars::n_r_in |
nr. of normal points in input grid
Definition at line 19 of file grid_vars.f90.
integer, public grid_vars::n_r_sol |
nr. of normal points in solution grid
Definition at line 22 of file grid_vars.f90.
integer, public grid_vars::n_r_x |
nr. of normal points in perturbation grid
Definition at line 21 of file grid_vars.f90.