From 63a1a933778defc82ee041613bc6efbadd70b687 Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 8 Jun 1999 16:07:58 +0000 Subject: [PATCH] And make the right thing (tm). git-svn-id: https://svn.dealii.org/trunk@1388 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/sparse_matrix.cc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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; }; -- 2.39.5