From: hartmann Date: Fri, 30 Sep 2005 17:10:05 +0000 (+0000) Subject: Make get_boundary_indicators compile for 1d. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b51bcdf794c85b183289c1d8675f87eccd887521;p=dealii-svn.git Make get_boundary_indicators compile for 1d. git-svn-id: https://svn.dealii.org/trunk@11565 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/grid/tria.cc b/deal.II/deal.II/source/grid/tria.cc index 7b08fd6f6b..2e6de959cf 100644 --- a/deal.II/deal.II/source/grid/tria.cc +++ b/deal.II/deal.II/source/grid/tria.cc @@ -121,6 +121,17 @@ Triangulation::get_boundary (const unsigned int number) const } +#if deal_II_dimension == 1 + +template <> +void +Triangulation<1>::get_boundary_indicators ( + std::vector &boundary_indicators) const +{ + boundary_indicators.resize(0); +} + +#else template void @@ -144,6 +155,7 @@ Triangulation::get_boundary_indicators ( boundary_indicators[bi_counter++]=i; } +#endif /*--------- Put the next functions a bit out-or-order to avoid use before --------- explicit specialization, which is not allowed. */