From 95d21a07040f47474a96991d26eaa4576bf3336a Mon Sep 17 00:00:00 2001 From: heltai Date: Sat, 18 Jan 2014 12:44:38 +0000 Subject: [PATCH] Reverted lost fix in mapping_q. git-svn-id: https://svn.dealii.org/branches/branch_manifold_id@32245 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/fe/mapping_q.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deal.II/source/fe/mapping_q.cc b/deal.II/source/fe/mapping_q.cc index 200d5b887b..3fd609b8c4 100644 --- a/deal.II/source/fe/mapping_q.cc +++ b/deal.II/source/fe/mapping_q.cc @@ -789,7 +789,12 @@ MappingQ::add_line_support_points (const typename Triangulation::lines_per_cell; ++line_no) { - const typename Triangulation::line_iterator line = cell->line(line_no); + const typename Triangulation::line_iterator + line = (dim == 1 + ? + static_cast::line_iterator>(cell) + : + cell->line(line_no)); ps[0] = line->vertex(0); ps[1] = line->vertex(1); -- 2.39.5