]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Let matrix go out of scope before sparsity pattern.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 3 Jun 2004 21:17:40 +0000 (21:17 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 3 Jun 2004 21:17:40 +0000 (21:17 +0000)
git-svn-id: https://svn.dealii.org/trunk@9376 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/block_sparse_matrix_1.cc

index 999e87e7e119ba21ce7c325de54a735210b36c3a..26121d7937b395146eaa561ec01e29a15e14d505 100644 (file)
@@ -55,8 +55,6 @@ int main()
   deallog.attach(logfile);
   deallog.depth_console(0);
 
-  BlockSparseMatrix<double> 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<double> B;
   B.reinit (sparsity_pattern);  
   
   QGauss<2> qr (2); 

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


Typeset in Trocchi and Trocchi Bold Sans Serif.