FEDEM Solver  R8.0
Source code of the dynamics solver
Private Member Functions | List of all members
matextensionmodule::csgetsub12 Interface Reference

Extracts and off-diagonal submatrix from the system matrix. More...

Private Member Functions

subroutine csgetsub12dense (sysMat, meqn1, meqn2, subMat12, ierr)
 Extracts the 12 sub-matrix from a system matrix. More...
 
subroutine csgetsub12sparse (sysMat, subMat12, ierr)
 Extracts the 12 sub-matrix from a system matrix. More...
 

Detailed Description

Extracts and off-diagonal submatrix from the system matrix.

Member Function/Subroutine Documentation

◆ csgetsub12dense()

subroutine matextensionmodule::csgetsub12::csgetsub12dense ( type(sysmatrixtype), intent(inout)  sysMat,
integer, dimension(:), intent(in)  meqn1,
integer, dimension(:), intent(in)  meqn2,
real(dp), dimension(:,:), intent(out)  subMat12,
integer, intent(out)  ierr 
)
private

Extracts the 12 sub-matrix from a system matrix.

Parameters
[in]sysMatThe system matrix to extract the sub-matrix from
[in]meqn1Matrix of status 1 equation numbers
[in]meqn2Matrix of status 2 equation numbers
[out]subMat12Extracted sub-matrix
[out]ierrError flag

The system matrix sysMat is stored on compact (sparse) form, but is logically composed of four submatrices, like

    sysMat = | sub11 sub12 |
             | sub21 sub22 |

The sub-matrix sub12 is returned as a dense rectangular matrix.

Author
Bjorn Haugen
Date
Oct 1998
Author
Knut Morten Okstad
Date
Jan 2003

◆ csgetsub12sparse()

subroutine matextensionmodule::csgetsub12::csgetsub12sparse ( type(sysmatrixtype), intent(inout)  sysMat,
type(sparsematrixtype), intent(out)  subMat12,
integer, intent(out)  ierr 
)
private

Extracts the 12 sub-matrix from a system matrix.

Parameters
[in]sysMatThe system matrix to extract the sub-matrix from
[out]subMat12Extracted sub-matrix
[out]ierrError flag

The system matrix sysMat is stored on compact (sparse) form, but is logically composed of four submatrices, like

    sysMat = | sub11 sub12 |
             | sub21 sub22 |

The sub-matrix sub12 is returned as a sparse matrix.

Author
Bjorn Haugen
Date
Jan 1999
Author
Knut Morten Okstad
Date
Jan 2003

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