<h3>Specific improvements</h3>
<ol>
+ <li>
+ Fixed: ConstraintMatrix would not compress() the IndexSet in the constructor
+ leading to crashes that only happen in release mode. This is now fixed.
+ <br>
+ (Timo Heister, 2013/09/27)
+ </li>
+
<li>
Fixed: PetscWrappers::MatrixBase::row_length() no longer worked after recent changes
to PETSc (around PETSc release 3.4). This is now fixed.
lines (),
local_lines (local_constraints),
sorted (false)
-{}
+{
+ // make sure the IndexSet is compressed. Otherwise this can lead to crashes
+ // that are hard to find (only happen in release mode).
+ // see tests/mpi/constraint_matrix_crash_01
+ local_lines.compress();
+}
void ConstraintMatrix::reinit (const IndexSet &local_constraints)
{
local_lines = local_constraints;
+
+ // make sure the IndexSet is compressed. Otherwise this can lead to crashes
+ // that are hard to find (only happen in release mode).
+ // see tests/mpi/constraint_matrix_crash_01
+ local_lines.compress();
+
clear();
}
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