FEI
Version of the Day
|
#include <snl_fei_BlockMatrixTraits.hpp>
Static Public Member Functions | |
static const char * | typeName () |
static int | putScalar (T *, double) |
static int | getRowLength (T *, int, int &) |
static int | getPointRowLength (T *, int, int &) |
static int | copyOutRow (T *, int, int, int, int *, int *, double *, int, int &) |
static int | copyOutPointRow (T *, int, int, int, double *, int *, int &) |
static int | sumIn (T *, int, int, int, const int *, const int *, int, const double *) |
static int | copyIn (T *, int, int, int, const int *, const int *, int, const double *) |
static int | sumIn (T *, int, int, int, const int *, const int *, const int *, const double *const *) |
static int | copyIn (T *, int, int, int, const int *, const int *, const int *, const double *const *) |
static int | globalAssemble (T *) |
Internal implementation block-entry matrix traits. Define a "template" for accessing matrix data. Provide function stubs for default type "T", which will catch the use of any matrix type for which specialized traits have not been defined.
Definition at line 22 of file snl_fei_BlockMatrixTraits.hpp.
|
inlinestatic |
Return a string type-name for the underlying matrix
Definition at line 25 of file snl_fei_BlockMatrixTraits.hpp.
|
inlinestatic |
Set a specified scalar value throughout the matrix.
Definition at line 30 of file snl_fei_BlockMatrixTraits.hpp.
|
inlinestatic |
Given a global (zero-based) row number, query the length of that row.
Definition at line 35 of file snl_fei_BlockMatrixTraits.hpp.
|
inlinestatic |
Given a global (zero-based) point-row number, query the length of that row.
Definition at line 41 of file snl_fei_BlockMatrixTraits.hpp.
|
inlinestatic |
Given a global (zero-based) row number, pass out a copy of the contents of that row.
mat | |
row | |
numBlkCols | Length of the user-allocated arrays indices and colDims. |
rowDim | Number of point-equations associated with this block-row. |
blkCols | User-allocated array which will hold column-indices on output. |
colDims | User-allocated array which will hold the number of point- indices per block-column. |
coefs | User-allocated array of arrays. First dimension (number of arrays) must be 'len'. i-th array will hold the coefficients from the i-th block-entry in this matrix row, packed in column-major order as a 1D list. |
coefsLen | Length of the user-allocated coefs array. |
blkRowLength | Output value, will be the length of the matrix row, (number of blk-cols) which may be more or less than the length of the input 'numBlkCols'. If blkRowLength is less than numBlkCols, then only 'blkRowLength' positions in the above array arguments will be referenced. If blkRowLength is greater than numBlkCols, then only numBlkCols positions will be referenced. |
Definition at line 67 of file snl_fei_BlockMatrixTraits.hpp.
|
inlinestatic |
Given a global (zero-based) point-row number, pass out a copy of the contents of that row.
mat | |
firstLocalOffset | First point-equation that is owned by the local processor. |
row | Global equation-number of the point-row being requested. |
len | Length of the user-allocated arrays coefs and indices. |
coefs | User-allocated array which will hold matrix coefficients on output. |
indices | User-allocated array which will hold column-indices on output. |
rowLength | Output value, will be the length of the matrix row, which may be more or less than the length of the above user-allocated arrays. |
Definition at line 95 of file snl_fei_BlockMatrixTraits.hpp.
|
inlinestatic |
Sum a flat Fortran-style array of coefficient data into the underlying matrix.
Definition at line 105 of file snl_fei_BlockMatrixTraits.hpp.
|
inlinestatic |
Copy a flat Fortran-style array of coefficient data into the underlying matrix.
Definition at line 118 of file snl_fei_BlockMatrixTraits.hpp.
|
inlinestatic |
Sum a C-style table of coefficient data into the underlying matrix.
Definition at line 130 of file snl_fei_BlockMatrixTraits.hpp.
|
inlinestatic |
Copy (replacing any already-existing values at the specified locations) a C-style table of coefficient data into the underlying matrix.
Definition at line 141 of file snl_fei_BlockMatrixTraits.hpp.
|
inlinestatic |
Have the underlying matrix perform any global synchronization or assembly that needs to be done after all data has been input.
Definition at line 152 of file snl_fei_BlockMatrixTraits.hpp.