PB3D [2.47]
Ideal linear high-n MHD stability in 3-D
Loading...
Searching...
No Matches
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
integer function calc_inv_3d (inv_3d, a, n)
 array version

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 771 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 675 of file num_utilities.f90.

Here is the call graph for this function:

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