PB3D  [2.45]
Ideal linear high-n MHD stability in 3-D
Interfaces and Types | Functions/Subroutines | Variables
sol_vars Module Reference

Variables pertaining to the solution quantities. More...

Interfaces and Types

type  sol_type
 solution type More...
 

Functions/Subroutines

subroutine init_sol (sol, mds, grid_sol, n_EV, lim_sec_X)
 Initialize a solution type and allocate the variables. More...
 
subroutine dealloc_sol (sol)
 Deallocates solution variables. More...
 

Variables

integer, public n_alloc_sols
 nr. of allocated grids More...
 

Detailed Description

Variables pertaining to the solution quantities.

Function/Subroutine Documentation

◆ dealloc_sol()

subroutine sol_vars::dealloc_sol ( class(sol_type), intent(inout)  sol)

Deallocates solution variables.

Note
intent(out) automatically deallocates the variable
Parameters
[in,out]solsolution variables to be deallocated

Definition at line 106 of file sol_vars.f90.

+ Here is the call graph for this function:

◆ init_sol()

subroutine sol_vars::init_sol ( class(sol_type), intent(inout)  sol,
type(modes_type), intent(in)  mds,
type(grid_type), intent(in)  grid_sol,
integer, intent(in)  n_EV,
integer, dimension(2), intent(in), optional  lim_sec_X 
)

Initialize a solution type and allocate the variables.

The number of modes as well as n and m are also set up.

Optionally, the secondary mode number can be specified (m if poloidal flux is used as normal coordinate and c n if toroidal flux). By default, they are taken from the global X_vars variables.

Note
If the lowest limits of the grid is not 1 (e.g. grid_soli_min = 1 for first process), the input variable i_min should be set to set correctly. For a full grid, it should be set to 1.
Parameters
[in,out]solsolution variables
[in]mdsgeneral modes variables
[in]grid_solsolution grid
[in]n_evnr. of Eigenvalues
[in]lim_sec_xlimits of m_X (pol. flux) or n_X (tor. flux)

Definition at line 60 of file sol_vars.f90.

+ Here is the call graph for this function:

Variable Documentation

◆ n_alloc_sols

integer, public sol_vars::n_alloc_sols

nr. of allocated grids

Note
Debug version only

Definition at line 22 of file sol_vars.f90.