From: Wolfgang Bangerth Date: Sat, 13 Dec 2008 17:07:10 +0000 (+0000) Subject: Guard two explicit specializations to avoid multiple definitions. X-Git-Tag: v8.0.0~8278 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdf8b607cf7e4ea9fed113300e54d782f4886179;p=dealii.git Guard two explicit specializations to avoid multiple definitions. git-svn-id: https://svn.dealii.org/trunk@17924 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/fe/fe.cc b/deal.II/deal.II/source/fe/fe.cc index 87d25560d6..7fa616e2e5 100644 --- a/deal.II/deal.II/source/fe/fe.cc +++ b/deal.II/deal.II/source/fe/fe.cc @@ -950,6 +950,9 @@ FiniteElement::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 void