From: wolf Date: Tue, 8 Jun 1999 16:07:58 +0000 (+0000) Subject: And make the right thing (tm). X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63a1a933778defc82ee041613bc6efbadd70b687;p=dealii-svn.git And make the right thing (tm). git-svn-id: https://svn.dealii.org/trunk@1388 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/sparse_matrix.cc b/deal.II/lac/source/sparse_matrix.cc index 3a95134774..c15ad7f8ec 100644 --- a/deal.II/lac/source/sparse_matrix.cc +++ b/deal.II/lac/source/sparse_matrix.cc @@ -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; };