#1041 BCRSMatrix does not always initialize data memory
Metadata
Property | Value |
---|---|
Reported by | Steffen Müthing (steffen.muething@iwr.uni-heidelberg.de) |
Reported at | Feb 14, 2012 15:15 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Markus Blatt (markus@dr-blatt.de) |
Last edited at | Jan 22, 2013 08:49 |
Closed by | Markus Blatt (markus@dr-blatt.de) |
Closed at | Jan 22, 2013 08:49 |
Closed in version | Unknown |
Resolution | Fixed |
Comment | rev. 1767 |
Description
BCRSMatrix does not initialize the memory allocated for the actual matrix values when the matrix is created using the random scheme. While this is unproblematic in the common case where the block type is some kind of FieldMatrix, this behavior causes crashes if the block type is again a BCRSMatrix, since the BCRSMatrix has a non-trivial constructor.
Is this behavior desired (to speed up matrix creation)? If not, the attached patch fixes the issue for me.
Steffen