]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix bug.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 6 Feb 2002 11:07:32 +0000 (11:07 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 6 Feb 2002 11:07:32 +0000 (11:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@5474 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/sparse_matrix.templates.h

index 12fcc7e0ff7378d1fb90c2a38f0e723d5e4cbcb9..ccf128d2959c4063124b71778c61cc4f2a9ee383 100644 (file)
@@ -245,7 +245,7 @@ void
 SparseMatrix<number>::copy_from (const FullMatrix<somenumber> &matrix)
 {
                                   // first delete previous content
-  clear ();
+  reinit ();
 
                                   // then copy old matrix
   for (unsigned int row=0; row<matrix.m(); ++row)

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.