]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fixed mapping tests in codim_one case.
authorheltai <heltai@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 Jan 2014 13:09:23 +0000 (13:09 +0000)
committerheltai <heltai@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 Jan 2014 13:09:23 +0000 (13:09 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_manifold_id@32326 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/mapping_q.cc

index 4f357b7029e5f8627381ed55b68e44489a36e2c5..426c3fc2e78cbe048e21375e1569dca75558696c 100644 (file)
@@ -773,7 +773,12 @@ MappingQ<dim,spacedim>::add_line_support_points (const typename Triangulation<di
     {
       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);
          const Manifold<spacedim> &manifold = 

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.