]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix non-compilability.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 13 Mar 2001 14:21:46 +0000 (14:21 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 13 Mar 2001 14:21:46 +0000 (14:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@4196 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/mapping_q.cc

index 136e07ddcc608b331542f9d37c806359b9b4645c..960fba29804d3b949b5b6539e137da73dc97d5ae 100644 (file)
@@ -806,7 +806,7 @@ MappingQ<dim>::compute_support_points_laplace(const typename Triangulation<dim>:
               apply_laplace_vector (laplace_on_hex_vector, a);
              break;
              
-       default 1:
+       default:
              Assert(false, ExcNotImplemented());
              break;
       };
@@ -924,7 +924,15 @@ MappingQ<dim>::add_line_support_points (const Triangulation<dim>::cell_iterator
   if (degree==2)
     {
       for (unsigned int line_no=0; line_no<GeometryInfo<dim>::lines_per_cell; ++line_no)
-       a.push_back(boundary->get_new_point_on_line(line));
+       {
+         const typename Triangulation<dim>::line_iterator line = cell->line(line_no);
+         const Boundary<dim> * const boundary
+           = (line->at_boundary() ?
+              &line->get_triangulation().get_boundary(line->boundary_indicator()) :
+              &straight_boundary);
+         
+         a.push_back(boundary->get_new_point_on_line(line));
+       };
     }
   else
                                     // otherwise call the more

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.