]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
And make the right thing (tm).
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 8 Jun 1999 16:07:58 +0000 (16:07 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 8 Jun 1999 16:07:58 +0000 (16:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@1388 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/sparse_matrix.cc

index 3a951347749609c00513e6045fe4cb7f60e42441..c15ad7f8ec751cc579e00102942d150d66b877e5 100644 (file)
@@ -172,14 +172,12 @@ SparseMatrixStruct::operator = (const SparseMatrixStruct &s)
   Assert (s.rows == 0, ExcInvalidConstructorCall());
   Assert (s.cols == 0, ExcInvalidConstructorCall());
 
-                                  // no need to free existing arrays, since we
-                                  // should never get here.
-  max_dim = 0;
-  max_vec_len = 0;
-  rowstart = 0;
-  colnums = 0;
-  
-  reinit (0,0,0);
+  Assert (rowstart == 0, ExcInvalidConstructorCall());
+  Assert (colnums == 0, ExcInvalidConstructorCall());
+  Assert (rows == 0, ExcInvalidConstructorCall());
+  Assert (cols == 0, ExcInvalidConstructorCall());
+
+  return *this;
 };
 
 

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.