]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix two problems of which I wonder why they didn't show up earlier.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 8 Mar 1999 12:13:25 +0000 (12:13 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 8 Mar 1999 12:13:25 +0000 (12:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@962 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/Attic/examples/error-estimation/error-estimation.cc
tests/big-tests/error-estimation/error-estimation.cc

index 9c8db1acaec5770382d5eb7caaa4a773a93332db..2ce177e2de375f8c67031ddfdb97f8b448b6d89d 100644 (file)
@@ -507,7 +507,7 @@ void PoissonProblem<dim>::run (ParameterHandler &prm) {
 
       Vector<double> l2_error_per_dof, linfty_error_per_dof;
       Vector<double> h1_error_per_dof, estimated_error_per_dof;
-      Vector<double> error_ratio;
+      Vector<double> error_ratio (dof->n_dofs());
       dof->distribute_cell_to_dof_vector (l2_error_per_cell, l2_error_per_dof);
       dof->distribute_cell_to_dof_vector (linfty_error_per_cell,
                                          linfty_error_per_dof);
@@ -603,6 +603,7 @@ void PoissonProblem<dim>::run (ParameterHandler &prm) {
   print_history (prm, refine_mode);
   cout << endl << endl << endl;
 
+  dof->clear ();
   delete equation;
 };
 
index 9c8db1acaec5770382d5eb7caaa4a773a93332db..2ce177e2de375f8c67031ddfdb97f8b448b6d89d 100644 (file)
@@ -507,7 +507,7 @@ void PoissonProblem<dim>::run (ParameterHandler &prm) {
 
       Vector<double> l2_error_per_dof, linfty_error_per_dof;
       Vector<double> h1_error_per_dof, estimated_error_per_dof;
-      Vector<double> error_ratio;
+      Vector<double> error_ratio (dof->n_dofs());
       dof->distribute_cell_to_dof_vector (l2_error_per_cell, l2_error_per_dof);
       dof->distribute_cell_to_dof_vector (linfty_error_per_cell,
                                          linfty_error_per_dof);
@@ -603,6 +603,7 @@ void PoissonProblem<dim>::run (ParameterHandler &prm) {
   print_history (prm, refine_mode);
   cout << endl << endl << endl;
 
+  dof->clear ();
   delete equation;
 };
 

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.