]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Properly guard functions to be available for only one dimension
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 26 Aug 2006 20:06:11 +0000 (20:06 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 26 Aug 2006 20:06:11 +0000 (20:06 +0000)
git-svn-id: https://svn.dealii.org/trunk@13759 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/fe_poly_tensor.cc

index d6033386bb3d4bf5e7d625ac341bdee9e691fc2e..a0eadc134e799f63111e08a3ce5538a63182b56d 100644 (file)
@@ -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
 }
 
 

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.