![]() |
Documentation 6b54b78464
|
Wrapper class that converts between SU2 sparse format and PaStiX format and simplifies calls to the external solver. More...
#include <CPastixWrapper.hpp>
Public Member Functions | |
| CPastixWrapper ()=default | |
| CPastixWrapper (CPastixWrapper &&)=delete | |
| CPastixWrapper (const CPastixWrapper &)=delete | |
| CPastixWrapper & | operator= (CPastixWrapper &&)=delete |
| CPastixWrapper & | operator= (const CPastixWrapper &)=delete |
| ~CPastixWrapper () | |
| Class destructor. | |
| bool | IsSetup () const |
| Returns true once SetLDU has been called. | |
| void | SetLDU (unsigned long nVar, unsigned long nPoint, unsigned long nPointDomain, const su2uint *row_ptr_l, const su2uint *col_ind_l, const su2uint *row_ptr_u, const su2uint *col_ind_u, const ScalarType *d, const ScalarType *l, const ScalarType *u) |
| Set LDU structure and value pointers; builds and owns assembled CSR (called once). | |
| void | Factorize (CGeometry *geometry, const CConfig *config, unsigned short kind_fact) |
| Factorize matrix. | |
| void | SetTransposedSolve (bool transposed=true) |
| Request solves with the transposed matrix. | |
| template<class T > | |
| void | Solve (const T &rhs, T &sol) |
| Runs the "solve" task for any rhs/sol with operator []. | |
Wrapper class that converts between SU2 sparse format and PaStiX format and simplifies calls to the external solver.
|
default |
|
delete |
|
delete |
|
inline |
Class destructor.
| void CPastixWrapper< ScalarType >::Factorize | ( | CGeometry * | geometry, |
| const CConfig * | config, | ||
| unsigned short | kind_fact | ||
| ) |
Factorize matrix.
| [in] | geometry | - Geometrical definition of the problem. |
| [in] | config | - Definition of the particular problem. |
| [in] | kind_fact | - Type of factorization. |
|
inline |
Returns true once SetLDU has been called.
|
delete |
|
delete |
|
inline |
Set LDU structure and value pointers; builds and owns assembled CSR (called once).
| [in] | nVar | - DOF per point (square blocks: nVar x nVar). |
| [in] | nPoint | - Total number of points including halos. |
| [in] | nPointDomain | - Number of internal points (domain rows). |
| [in] | row_ptr_l/u | - LDU lower/upper row pointers (geometry-owned, must outlive wrapper). |
| [in] | col_ind_l/u | - LDU lower/upper column indices (geometry-owned). |
| [in] | d/l/u | - LDU value blocks (matrix-owned, must outlive wrapper). |
|
inline |
Request solves with the transposed matrix.
| [in] | transposed | - Yes or no. |
|
inline |
Runs the "solve" task for any rhs/sol with operator [].
| [in] | rhs | - Right hand side of the linear system. |
| [out] | sol | - Solution of the system. |
| unsigned long CPastixWrapper< ScalarType >::blkSz = 0 |
Block size (nVar * nVar) for value assembly.
| const ScalarType* CPastixWrapper< ScalarType >::d = nullptr |
Diagonal blocks (matrix-owned).
| const ScalarType* CPastixWrapper< ScalarType >::l = nullptr |
Lower blocks (matrix-owned).
| unsigned long CPastixWrapper< ScalarType >::nPoint = 0 |
| unsigned long CPastixWrapper< ScalarType >::nPointDomain = 0 |
| unsigned long CPastixWrapper< ScalarType >::nVar = 0 |
| const su2uint* CPastixWrapper< ScalarType >::row_ptr_l = nullptr |
LDU lower row pointers (geometry-owned).
| const su2uint* CPastixWrapper< ScalarType >::row_ptr_u = nullptr |
LDU upper row pointers (geometry-owned).
| const ScalarType* CPastixWrapper< ScalarType >::u = nullptr |
Upper blocks (matrix-owned).