]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use new scheme to free memory of dVectors and dSMatrices as well as the associated...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 3 Jun 1998 00:38:06 +0000 (00:38 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 3 Jun 1998 00:38:06 +0000 (00:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@374 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/base.cc

index 3f517bb8f9f629cd0f4f13c65012da28f0a0065f..eb037d72ff62282963121987b6faca0dc339eb6e 100644 (file)
@@ -27,7 +27,7 @@ template <int dim>
 ProblemBase<dim>::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 <int dim>
 void ProblemBase<dim>::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);

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.