PB3D
[2.45]
Ideal linear high-n MHD stability in 3-D
|
Go to the source code of this file.
Interfaces and Types | |
interface | num_utilities::add_arr_mult |
Add to an array (3) the product of arrays (1) and (2). More... | |
interface | num_utilities::calc_det |
Calculate determinant of a matrix. More... | |
interface | num_utilities::calc_inv |
Calculate inverse of square matrix A . More... | |
interface | num_utilities::calc_mult |
Calculate matrix multiplication of two square matrices \(\overline{\text{AB}} = \overline{\text{A}} \ \overline{\text{B}}\). More... | |
interface | num_utilities::conv_mat |
Converts a (symmetric) matrix A with the storage convention described in eq_vars.eq_2_type. More... | |
interface | num_utilities::calc_int |
Integrates a function using the trapezoidal rule. More... | |
interface | num_utilities::round_with_tol |
Rounds an arry of values to limits, with a tolerance \(10^{-5}\) that can optionally be modified. More... | |
interface | num_utilities::con2dis |
Convert between points from a continuous grid to a discrete grid. More... | |
interface | num_utilities::dis2con |
Convert between points from a discrete grid to a continuous grid. More... | |
interface | num_utilities::con |
Either takes the complex conjugate of a square matrix element A, defined on a 3-D grid, or not. More... | |
interface | num_utilities::bubble_sort |
Sorting with the bubble sort routine. More... | |
interface | num_utilities::order_per_fun |
Order a periodic function to include \(0\ldots 2\pi\) and an overlap. More... | |
interface | num_utilities::spline |
Wrapper to the pspline library, making it easier to use for 1-D applications where speed is not the main priority. If spline representations are to be reused, manually use the library. More... | |
Modules | |
module | num_utilities |
Numerical utilities. | |
Functions/Subroutines | |
integer function | num_utilities::calc_inv_0d (inv_0D, A) |
private constant version More... | |
integer function | setup_lim_vals (xb, lim_vals) |
/private set up limit values More... | |
subroutine, public | num_utilities::calc_aux_utilities (n_mod) |
Initialize utilities for fast future reference, depending on program style. More... | |
integer function | num_utilities::calc_derivs_1d_id (deriv, dims) |
Returns the 1D indices for derivatives of a certain order in certain dimensions. More... | |
integer function, dimension(:,:), allocatable, public | num_utilities::derivs (order, dims) |
Returns derivatives of certain order. More... | |
integer function, public | num_utilities::check_deriv (deriv, max_deriv, sr_name) |
checks whether the derivatives requested for a certain subroutine are valid More... | |
integer function, public | num_utilities::calc_ext_var (ext_var, var, var_points, ext_point, deriv_in) |
Extrapolates a function. More... | |
integer function, public | num_utilities::calc_coeff_fin_diff (deriv, nr, ind, coeff) |
Calculate the coefficients for finite differences. More... | |
integer function, public | num_utilities::c (ij, sym, n, lim_n) |
Convert 2-D coordinates (i,j) to the storage convention used in matrices. More... | |
recursive integer function, public | num_utilities::fac (n) |
Calculate factorial. More... | |
integer function, public | num_utilities::is_sym (n, nn, sym) |
Determines whether a matrix making use of the storage convention in eq_vars.eq_2_type is symmetric or not. More... | |
recursive integer function, public | num_utilities::lcm (u, v) |
Returns common multiple using the Euclid's algorithm. More... | |
recursive integer function, public | num_utilities::gcd (u, v) |
Returns least denominator using the GCD. More... | |
subroutine, public | num_utilities::shift_f (Al, Bl, Cl, A, B, C) |
Calculate multiplication through shifting of fourier modes A and B into C. More... | |
subroutine, public | num_utilities::solve_vand (n, a, b, x, transp) |
Solve a Vandermonde system \(\overline{\text{A}} \ \vec{X} = \vec{B}\). More... | |
integer function, public | num_utilities::calc_d2_smooth (fil_N, x, y, D2y, style) |
Calculate second derivative with smoothing formula by Holoborodko, [9]. More... | |
Variables | |
integer, dimension(:,:,:), allocatable, public | num_utilities::d |
1-D array indices of derivatives More... | |
integer, dimension(:,:), allocatable, public | num_utilities::m |
1-D array indices of metric indices More... | |
integer, dimension(:,:), allocatable, public | num_utilities::f |
1-D array indices of Fourier mode combination indices More... | |
logical, public | num_utilities::debug_con2dis_reg = .false. |
plot debug information for con2dis_reg() More... | |
logical, public | num_utilities::debug_calc_coeff_fin_diff = .false. |
plot debug information for calc_coeff_fin_diff() More... | |
integer function spline_real::setup_lim_vals | ( | real(dp), intent(in) | xb, |
real(dp), dimension(0:3), intent(out) | lim_vals | ||
) |
/private set up limit values
Makes use of f_spl
Definition at line 1938 of file num_utilities.f90.