From 48a492d213779bdd68abd81effd4074c478b4117 Mon Sep 17 00:00:00 2001 From: heltai Date: Mon, 27 Jan 2014 13:09:23 +0000 Subject: [PATCH] Fixed mapping tests in codim_one case. git-svn-id: https://svn.dealii.org/branches/branch_manifold_id@32326 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 4f357b7029..426c3fc2e7 100644 --- a/deal.II/source/fe/mapping_q.cc +++ b/deal.II/source/fe/mapping_q.cc @@ -773,7 +773,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); const Manifold &manifold = -- 2.39.5