From 226a128deb0825f363f9d90db3a32dd8d2da527d Mon Sep 17 00:00:00 2001 From: bangerth Date: Sat, 26 Aug 2006 20:06:11 +0000 Subject: [PATCH] Properly guard functions to be available for only one dimension git-svn-id: https://svn.dealii.org/trunk@13759 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/fe/fe_poly_tensor.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deal.II/deal.II/source/fe/fe_poly_tensor.cc b/deal.II/deal.II/source/fe/fe_poly_tensor.cc index d6033386bb..a0eadc134e 100644 --- a/deal.II/deal.II/source/fe/fe_poly_tensor.cc +++ b/deal.II/deal.II/source/fe/fe_poly_tensor.cc @@ -35,6 +35,7 @@ namespace * algorithm, which determines the DoFs, which need this sign change for a * given cell. */ +#if deal_II_dimension == 1 void get_face_sign_change (const Triangulation<1>::cell_iterator &, const unsigned int , @@ -43,8 +44,9 @@ namespace // nothing to do in 1d std::fill (face_sign.begin (), face_sign.end (), 1.0); } - +#endif +#if deal_II_dimension == 2 void get_face_sign_change (const Triangulation<2>::cell_iterator &cell, const unsigned int dofs_per_face, @@ -89,9 +91,10 @@ namespace } } } +#endif - +#if deal_II_dimension == 3 void get_face_sign_change (const Triangulation<3>::cell_iterator &/*cell*/, const unsigned int /*dofs_per_face*/, @@ -100,6 +103,7 @@ namespace std::fill (face_sign.begin (), face_sign.end (), 1.0); //TODO: think about what it would take here } +#endif } -- 2.39.5