]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Guard two explicit specializations to avoid multiple definitions.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 13 Dec 2008 17:07:10 +0000 (17:07 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 13 Dec 2008 17:07:10 +0000 (17:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@17924 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 87d25560d66d124efe9533c84703819aa2603790..7fa616e2e5e188cf7cdf5388c01294a40467a287 100644 (file)
@@ -950,6 +950,9 @@ FiniteElement<dim,spacedim>::memory_consumption () const
          MemoryConsumption::memory_consumption (n_nonzero_components_table));
 }
 
+
+#if deal_II_dimension == 1
+
 template<>
 void
 FiniteElement<1,2>::compute_2nd (
@@ -964,6 +967,10 @@ FiniteElement<1,2>::compute_2nd (
        Assert(false, ExcNotImplemented());
 }
 
+#endif
+
+#if deal_II_dimension == 2
+
 template<>
 void
 FiniteElement<2,3>::compute_2nd (
@@ -978,6 +985,7 @@ FiniteElement<2,3>::compute_2nd (
        Assert(false, ExcNotImplemented());
 }
 
+#endif
 
 template <int dim, int spacedim>  
 void

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.