From: Wolfgang Bangerth Date: Wed, 3 Jun 1998 00:38:06 +0000 (+0000) Subject: Use new scheme to free memory of dVectors and dSMatrices as well as the associated... X-Git-Tag: v8.0.0~22880 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=497caca8fa1a5bd80111769ccee595a307faea6b;p=dealii.git Use new scheme to free memory of dVectors and dSMatrices as well as the associated possibility to initialize/construct a matrix empty. git-svn-id: https://svn.dealii.org/trunk@374 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/numerics/base.cc b/deal.II/deal.II/source/numerics/base.cc index 3f517bb8f9..eb037d72ff 100644 --- a/deal.II/deal.II/source/numerics/base.cc +++ b/deal.II/deal.II/source/numerics/base.cc @@ -27,7 +27,7 @@ template ProblemBase::ProblemBase () : tria(0), dof_handler(0), - system_sparsity(1,1,1), // dummy initialisation, is later reinit'd + system_sparsity(), // dummy initialisation, is later reinit'd system_matrix() // dummy initialisation, is later reinit'd {}; @@ -49,7 +49,7 @@ template void ProblemBase::clear () { tria = 0; dof_handler = 0; - system_sparsity.reinit (1,1,1); + system_sparsity.reinit (0,0,1); system_matrix.clear (); right_hand_side.reinit (1); solution.reinit (1);