]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Work around another problem in icc.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 4 Mar 2004 16:11:52 +0000 (16:11 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 4 Mar 2004 16:11:52 +0000 (16:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@8657 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 150d4383488681ec4bc9f01941683f63b354b0c9..ee1e839af8708078cd3a9014d4c5251035e8e245 100644 (file)
@@ -204,11 +204,10 @@ estimate (const Mapping<1>                    &mapping,
          (coefficient->n_components == 1),
          ExcInvalidCoefficient());
 
-  for (FunctionMap<1>::type::const_iterator i=neumann_bc.begin(); i!=neumann_bc.end(); ++i)
-    Assert (i->second->n_components == n_components, ExcInvalidBoundaryFunction());
-
-
-  const unsigned int dim=1;
+  for (FunctionMap<1>::type::const_iterator i=neumann_bc.begin();
+       i!=neumann_bc.end(); ++i)
+    Assert (i->second->n_components == n_components,
+            ExcInvalidBoundaryFunction());
 
                                   // reserve one slot for each cell and set
                                   // it to zero
@@ -259,7 +258,7 @@ estimate (const Mapping<1>                    &mapping,
       for (unsigned int n=0; n<2; ++n)
        {
                                           // find right active neighbor
-         typename DoFHandler<dim>::cell_iterator neighbor = cell->neighbor(n);
+         DoFHandler<1>::cell_iterator neighbor = cell->neighbor(n);
          if (neighbor.state() == IteratorState::valid)
            while (neighbor->has_children())
              neighbor = neighbor->child(n==0 ? 1 : 0);

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.