]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make get_boundary_indicators compile for 1d.
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 30 Sep 2005 17:10:05 +0000 (17:10 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 30 Sep 2005 17:10:05 +0000 (17:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@11565 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/tria.cc

index 7b08fd6f6b7ac089936ce1372d4f63d5127b7647..2e6de959cf3dcec0ab732790155d67a7f84e2487 100644 (file)
@@ -121,6 +121,17 @@ Triangulation<dim>::get_boundary (const unsigned int number) const
 }
 
 
+#if deal_II_dimension == 1
+
+template <>
+void
+Triangulation<1>::get_boundary_indicators (
+  std::vector<unsigned char> &boundary_indicators) const 
+{
+  boundary_indicators.resize(0);
+}
+
+#else
 
 template <int dim>
 void
@@ -144,6 +155,7 @@ Triangulation<dim>::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.                */

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.