From d2e726239ce0d845d51c903d002c4ab612870c1c Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 8 Mar 1999 12:13:25 +0000 Subject: [PATCH] Fix two problems of which I wonder why they didn't show up earlier. git-svn-id: https://svn.dealii.org/trunk@962 0785d39b-7218-0410-832d-ea1e28bc413d --- .../Attic/examples/error-estimation/error-estimation.cc | 3 ++- tests/big-tests/error-estimation/error-estimation.cc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/deal.II/deal.II/Attic/examples/error-estimation/error-estimation.cc b/deal.II/deal.II/Attic/examples/error-estimation/error-estimation.cc index 9c8db1acae..2ce177e2de 100644 --- a/deal.II/deal.II/Attic/examples/error-estimation/error-estimation.cc +++ b/deal.II/deal.II/Attic/examples/error-estimation/error-estimation.cc @@ -507,7 +507,7 @@ void PoissonProblem::run (ParameterHandler &prm) { Vector l2_error_per_dof, linfty_error_per_dof; Vector h1_error_per_dof, estimated_error_per_dof; - Vector error_ratio; + Vector 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::run (ParameterHandler &prm) { print_history (prm, refine_mode); cout << endl << endl << endl; + dof->clear (); delete equation; }; diff --git a/tests/big-tests/error-estimation/error-estimation.cc b/tests/big-tests/error-estimation/error-estimation.cc index 9c8db1acae..2ce177e2de 100644 --- a/tests/big-tests/error-estimation/error-estimation.cc +++ b/tests/big-tests/error-estimation/error-estimation.cc @@ -507,7 +507,7 @@ void PoissonProblem::run (ParameterHandler &prm) { Vector l2_error_per_dof, linfty_error_per_dof; Vector h1_error_per_dof, estimated_error_per_dof; - Vector error_ratio; + Vector 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::run (ParameterHandler &prm) { print_history (prm, refine_mode); cout << endl << endl << endl; + dof->clear (); delete equation; }; -- 2.39.5