template<class MATRIX>
class MeshWorker::Assembler::MatrixSimple< MATRIX >
Assemble local matrices into a single global matrix. If this global matrix has a block structure, this structure is not used, but rather the global numbering of degrees of freedom.
After being initialized with a SparseMatrix object (or another matrix offering the same functionality as SparseMatrix::add()), this class can be used in a MeshWorker::loop() to assemble the cell and face matrices into the global matrix.
If a ConstraintMatrix has been provided during initialization, this matrix will be used (ConstraintMatrix::distribute_local_to_global(), to be precise) to enter the local matrix into the global sparse matrix.
The assembler can handle two different types of local data. First, by default, the obvious choice of taking a single local matrix with dimensions equal to the number of degrees of freedom of the cell. Alternatively, a local block structure can be initialized in DoFInfo. After this, the local data will be arranged as an array of n by n FullMatrix blocks, which are ordered lexicographically in DoFInfo.
- Author
- Guido Kanschat, 2009
Definition at line 152 of file simple.h.
- Deprecated:
- This function is of no effect. Only the block info structure in DoFInfo is being used.
Store information on the local block structure. If the assembler is inititialized with this function, initialize_info() will generate one local matrix for each block row and column, which will be numbered lexicographically, row by row.
In spite of using local block structure, all blocks will be enteres into the same global matrix, disregarding any global block structure.
Definition at line 627 of file simple.h.