]> https://gitweb.dealii.org/ - dealii.git/commit
Optimize BlockSparsityPatternBase::add_entries(). 14398/head
authorDavid Wells <drwells@email.unc.edu>
Sun, 13 Nov 2022 21:06:21 +0000 (16:06 -0500)
committerDavid Wells <drwells@email.unc.edu>
Sun, 13 Nov 2022 21:46:52 +0000 (16:46 -0500)
commit5b2d8e2ad8043f54d6243f3eb0d455bb6b224eae
tree9cc0502cf4fb1508eb4ef781175a2387132c61c5
parent628fd5d0d040462f36e86d264a2fc915a0c6926d
Optimize BlockSparsityPatternBase::add_entries().

We can avoid some expensive parts and looping over data more than once by
utilizing the fact that the DoFs are sorted, which implies that they are also
sorted by block.
include/deal.II/lac/block_sparsity_pattern.h
source/lac/block_sparsity_pattern.cc

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.