[bugfix] fix number of columns for non-scalar matrix blocks
Merge request reports
Activity
The
ColCompMatrix
is not supporting block entries. When it is setup from aBCRSMatrix<BlockType> mat
, then the resulting number of scalar columns ismat.N()*BlockType::columns
. This is also correctly set in theColCompMatrix
class but not in the factory classColCompMatrixInitializer
. The tests indune-istl
never observed this because only scalar problems are tested.I had another look at the problem and I found that my fix was not correct. I ran into this problem when trying to use
SuperLU
to decompose a matrix with rectangular blocks. I got an assertion failure inColCompMatrixInitialiser
that the number of columns is wrong. The problem was that the number of columns was initialised by the number of rows (which is the same for square matrices that appear in thedune-istl
tests). I adjusted the patch to fix thismentioned in commit 49e78fa1
Mentioned in commit 49e78fa1