]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid declared but never referenced warning.
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Thu, 22 Sep 2005 07:56:20 +0000 (07:56 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Thu, 22 Sep 2005 07:56:20 +0000 (07:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@11494 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/fe_dgp_monomial.cc

index ee9c22299c130e520c2d92ce1a269302c6c5989e..cf784b3421c870a0813337c2e3bb230a74638ede 100644 (file)
@@ -27,6 +27,7 @@ namespace
                                   // storage of hand-chosen support
                                   // points
                                   //
+#if deal_II_dimension == 2
                                   // For dim=2, dofs_per_cell of
                                   // FE_DGPMonomial(k) is given by
                                   // 0.5(k+1)(k+2), i.e.
@@ -47,8 +48,9 @@ namespace
    {0,0},{1,0},{0,1},{1,1},{1./3.,0},{2./3.,0},{0,1./3.},{0,2./3.},{0.5,1},{1,0.5},
    {0,0},{1,0},{0,1},{1,1},{0.25,0},{0.5,0},{0.75,0},{0,0.25},{0,0.5},{0,0.75},{1./3.,1},{2./3.,1},{1,1./3.},{1,2./3.},{0.5,0.5}
   };
+#endif
 
-                                  //
+#if deal_II_dimension == 3
                                   // For dim=3, dofs_per_cell of
                                   // FE_DGPMonomial(k) is given by
                                   // 1./6.(k+1)(k+2)(k+3), i.e.
@@ -61,6 +63,7 @@ namespace
    {0,0,0},{1,0,0},{0,1,0},{0,0,1},
    {0,0,0},{1,0,0},{0,1,0},{0,0,1},{0.5,0,0},{0,0.5,0},{0,0,0.5},{1,1,0},{1,0,1},{0,1,1}
   };
+#endif
 
   
   template<int dim>

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.