[deal.II] convert BlockSparseMatrix to SparseMatrix

15 views
Skip to first unread message

陈敏

unread,
Apr 15, 2022, 4:35:57 AM4/15/22
to dea...@googlegroups.com
Hi everyone,

Is it possible to convert BlockSparseMatrix to SparseMatrix in deal.ii?
If so, Is it possible to convert LA::MPI::BlockSparseMatrix to LA::MPI::SparseMatrix in deal.ii? and what should I do to dof_handler and Sparse_pattern?

best,
chen

SebG

unread,
Apr 15, 2022, 7:32:33 AM4/15/22
to deal.II User Group
Dear Chen,

I guess that the namespace LA::MPI refers to PETScWrappers or PETScWrappers or TrilinosWrappers (without MPI). According to my knowledge, the answer to the first two question is no. Regarding the DoFHandler, a component wise or block wise renumbering of the degrees of freedom is usually performed when block systems are used. The SparsityPattern is replaced by a BlockSparsityPattern. You may consider one of the tutorial programs on the Stokes problem for details.

Best wishes,
Sebastian
Reply all
Reply to author
Forward
0 new messages