PB3D  [2.45]
Ideal linear high-n MHD stability in 3-D
Public Member Functions | List of all members
num_utilities::calc_inv Interface Reference

Calculate inverse of square matrix A. More...

Public Member Functions

integer function calc_inv_0d (inv_0D, A)
 private constant version More...
 
integer function calc_inv_3d (inv_3D, A, n)
 array version More...
 

Detailed Description

Calculate inverse of square matrix A.

This matrix can be defined on a 3-D grid or constant. The storage convention described in eq_vars.eq_2_type is used.

In the former case the size of the matrix (last two indices) should be small, as direct inversion is performed using Cramer's rule.

In the latter case, lapack routines are used.

Returns
ierr

Definition at line 81 of file num_utilities.f90.

Member Function/Subroutine Documentation

◆ calc_inv_0d()

integer function num_utilities::calc_inv::calc_inv_0d ( real(dp), dimension(:,:), intent(inout)  inv_0D,
real(dp), dimension(:,:), intent(in)  A 
)

private constant version

Parameters
[in,out]inv_0doutput
[in]ainput

Definition at line 772 of file num_utilities.f90.

◆ calc_inv_3d()

integer function num_utilities::calc_inv::calc_inv_3d ( real(dp), dimension(:,:,:,:), intent(inout)  inv_3D,
real(dp), dimension(:,:,:,:), intent(in)  A,
integer, intent(in)  n 
)

array version

Parameters
[in,out]inv_3doutput
[in]ainput
[in]nsize of matrix

Definition at line 676 of file num_utilities.f90.

+ Here is the call graph for this function:

The documentation for this interface was generated from the following file: