]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Reverted lost fix in mapping_q.
authorheltai <heltai@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 18 Jan 2014 12:44:38 +0000 (12:44 +0000)
committerheltai <heltai@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 18 Jan 2014 12:44:38 +0000 (12:44 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_manifold_id@32245 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/mapping_q.cc

index 200d5b887b783f2b62d7719bb60a88fc1aed462f..3fd609b8c4cb06743ceec9ccd3d7237afd0c5cab 100644 (file)
@@ -789,7 +789,12 @@ MappingQ<dim,spacedim>::add_line_support_points (const typename Triangulation<di
       // get the boundary description and second compute the points on it
       for (unsigned int line_no=0; line_no<GeometryInfo<dim>::lines_per_cell; ++line_no)
         {
-          const typename Triangulation<dim,spacedim>::line_iterator line = cell->line(line_no);
+         const typename Triangulation<dim,spacedim>::line_iterator
+           line = (dim == 1
+                   ?
+                   static_cast<typename Triangulation<dim,spacedim>::line_iterator>(cell)
+                   :
+                   cell->line(line_no));
          ps[0] = line->vertex(0);
          ps[1] = line->vertex(1);
 

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.