]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix bug.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 11 Apr 2001 13:51:34 +0000 (13:51 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 11 Apr 2001 13:51:34 +0000 (13:51 +0000)
git-svn-id: https://svn.dealii.org/branches/Branch-3-1@4437 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/error_estimator.cc

index 3241982d0a7fa5fd7e9d406788ff4de40fcb89db..51535c5bd8c3f2ebb00bde35a4cfa19705a397b2 100644 (file)
@@ -305,8 +305,8 @@ void KellyErrorEstimator<1>::estimate (const DoFHandler<1>                 &dof_
              {
                if (n_components==1)
                  {
-                   double v=0;
-                   neumann_bc.find(n)->second->value(cell->vertex(0), v);
+                   const double
+                     v = neumann_bc.find(n)->second->value(cell->vertex(0));
                    
                    for (unsigned int s=0; s<n_solution_vectors; ++s)
                      grad_neighbor[s](0) = v;

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.