From: wolf Date: Tue, 13 Mar 2001 14:21:46 +0000 (+0000) Subject: Fix non-compilability. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f2424e91bfc33daa2c9287abfccd06b86619b0d;p=dealii-svn.git Fix non-compilability. git-svn-id: https://svn.dealii.org/trunk@4196 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/fe/mapping_q.cc b/deal.II/deal.II/source/fe/mapping_q.cc index 136e07ddcc..960fba2980 100644 --- a/deal.II/deal.II/source/fe/mapping_q.cc +++ b/deal.II/deal.II/source/fe/mapping_q.cc @@ -806,7 +806,7 @@ MappingQ::compute_support_points_laplace(const typename Triangulation: apply_laplace_vector (laplace_on_hex_vector, a); break; - default 1: + default: Assert(false, ExcNotImplemented()); break; }; @@ -924,7 +924,15 @@ MappingQ::add_line_support_points (const Triangulation::cell_iterator if (degree==2) { for (unsigned int line_no=0; line_no::lines_per_cell; ++line_no) - a.push_back(boundary->get_new_point_on_line(line)); + { + const typename Triangulation::line_iterator line = cell->line(line_no); + const Boundary * const boundary + = (line->at_boundary() ? + &line->get_triangulation().get_boundary(line->boundary_indicator()) : + &straight_boundary); + + a.push_back(boundary->get_new_point_on_line(line)); + }; } else // otherwise call the more