From: heltai Date: Mon, 27 Jan 2014 13:09:23 +0000 (+0000) Subject: Fixed mapping tests in codim_one case. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48a492d213779bdd68abd81effd4074c478b4117;p=dealii-svn.git Fixed mapping tests in codim_one case. git-svn-id: https://svn.dealii.org/branches/branch_manifold_id@32326 0785d39b-7218-0410-832d-ea1e28bc413d --- 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 =