From: wolf Date: Thu, 3 Jun 2004 21:17:40 +0000 (+0000) Subject: Let matrix go out of scope before sparsity pattern. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74860adac204fe61b16e1265e655d4d570ef4660;p=dealii-svn.git Let matrix go out of scope before sparsity pattern. git-svn-id: https://svn.dealii.org/trunk@9376 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/bits/block_sparse_matrix_1.cc b/tests/bits/block_sparse_matrix_1.cc index 999e87e7e1..26121d7937 100644 --- a/tests/bits/block_sparse_matrix_1.cc +++ b/tests/bits/block_sparse_matrix_1.cc @@ -55,8 +55,6 @@ int main() deallog.attach(logfile); deallog.depth_console(0); - BlockSparseMatrix B; - Triangulation<2> tria; GridGenerator::hyper_cube (tria,0,1); tria.refine_global (1); @@ -93,6 +91,7 @@ int main() sparsity_pattern.block(1,1).add (0,0); sparsity_pattern.compress (); + BlockSparseMatrix B; B.reinit (sparsity_pattern); QGauss<2> qr (2);