v0.16.3
Loading...
Searching...
No Matches
Classes | Public Attributes | List of all members
MoFEM::ElementColumns Struct Reference

Create compressed matrix. More...

Collaboration diagram for MoFEM::ElementColumns:
[legend]

Classes

struct  Segment
 

Public Attributes

std::vector< int > indices
 All elements, concatenated.
 
std::vector< Segment > segments
 Per element, one or more segments.
 
std::vector< std::array< int, 2 > > elementSegments
 Segment range per slot.
 
std::unordered_map< const EntFiniteElement *, int > slot
 Element slot.
 

Detailed Description

Create compressed matrix.

Note
Only function class members are allowed in this class. NO VARIABLES.
Todo:
It is obsolete implementation, code should be moved to interface MatrixManager.
Todo:
While matrix is created is assumed that all entities on element are adjacent to each other, in some cases, this is created denser matrices than it should be. Some kind of filtering can be added.
Todo:
Creation of the block matrices
Todo:
Some efficiency improvement are possible

Column indices of the finite elements met while assembling the rows, grouped by column field, built once per element from its column view and the entity DOF cache. A row entity merges the lists of its adjacent elements with a stamp array instead of walking the views, locking weak pointers and sorting the concatenation for every row entity.

Definition at line 42 of file MatrixManager.cpp.

Member Data Documentation

◆ elementSegments

std::vector<std::array<int, 2> > MoFEM::ElementColumns::elementSegments

Segment range per slot.

Definition at line 49 of file MatrixManager.cpp.

◆ indices

std::vector<int> MoFEM::ElementColumns::indices

All elements, concatenated.

Definition at line 47 of file MatrixManager.cpp.

◆ segments

std::vector<Segment> MoFEM::ElementColumns::segments

Per element, one or more segments.

Definition at line 48 of file MatrixManager.cpp.

◆ slot

std::unordered_map<const EntFiniteElement *, int> MoFEM::ElementColumns::slot

Element slot.

Definition at line 50 of file MatrixManager.cpp.


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