Skip to content
Snippets Groups Projects
Commit 40181570 authored by Dmitri Naumov's avatar Dmitri Naumov Committed by Lars Bilke
Browse files

[MaL] EigenMatrix: set/add values even if 0.

Under certain circumstances the sparsity pattern will be destroyed and
adding/setting values would then result in an expensive reallocation.

Assume that in the first global iteration only one half of the values is
set to non-zero. Before the linear solver is called the sparse matrix is
compressed thus reducing the allocated space in each row. In the
subsequent iterations, which might add or set the other half of the
matrix values reallocations would be necessary.
parent ff22b210
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment