]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
free the memory of the right_hand_side and solution vectors during #ProblemBase:...
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 30 Jun 1999 13:02:06 +0000 (13:02 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 30 Jun 1999 13:02:06 +0000 (13:02 +0000)
git-svn-id: https://svn.dealii.org/trunk@1515 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 509ff3b5dc164623c0f7f2580589fdc9acdd909e..766117295dea2df7b290c3d25889253d7d790731 100644 (file)
@@ -58,8 +58,8 @@ void ProblemBase<dim>::clear () {
   if (dof_handler) { delete dof_handler;  dof_handler = 0; };
   system_sparsity.reinit (0,0,1);
   system_matrix.clear ();
-  right_hand_side.reinit (1);
-  solution.reinit (1);
+  right_hand_side.reinit (0);
+  solution.reinit (0);
   constraints.clear ();
 };
 

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.