]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix true bug.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 11 Apr 2001 13:47:08 +0000 (13:47 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 11 Apr 2001 13:47:08 +0000 (13:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@4435 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 01da5417e07f356fcc335002a14d3a9754cd2b78..a9b4152eb69e377183d48ce19591a3b0468af648 100644 (file)
@@ -177,6 +177,7 @@ void KellyErrorEstimator<dim>::estimate (const DoFHandler<dim>   &dof_handler,
                                         const Function<dim>     *coefficients,
                                         unsigned int             n_threads)
 {
+  Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping"));
   static const MappingQ1<dim> mapping;
   estimate(mapping, dof_handler, quadrature, neumann_bc, solution,
           error, component_mask, coefficients, n_threads);
@@ -325,8 +326,7 @@ void KellyErrorEstimator<1>::estimate (const Mapping<1>                    &mapp
              {
                if (n_components==1)
                  {
-                   double v=0;
-                   neumann_bc.find(n)->second->value(cell->vertex(0), v);
+                   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;
@@ -679,6 +679,7 @@ void KellyErrorEstimator<dim>::estimate (const DoFHandler<dim>               &do
                                         const Function<dim>                 *coefficients,
                                         unsigned int                         n_threads)
 {
+  Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping"));  
   static const MappingQ1<dim> mapping;
   estimate(mapping, dof_handler, quadrature, neumann_bc, solutions,
           errors, component_mask, coefficients, n_threads);

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.