From b2e81783fa5ca76effd9cbb8961bd2e5ed630ba4 Mon Sep 17 00:00:00 2001 From: bangerth Date: Sat, 13 Dec 2008 17:15:31 +0000 Subject: [PATCH] Guard more explicit specializations to avoid multiple definitions. git-svn-id: https://svn.dealii.org/trunk@17927 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/fe/mapping_q1.cc | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/deal.II/deal.II/source/fe/mapping_q1.cc b/deal.II/deal.II/source/fe/mapping_q1.cc index e4fb0206ae..821d2e3429 100644 --- a/deal.II/deal.II/source/fe/mapping_q1.cc +++ b/deal.II/deal.II/source/fe/mapping_q1.cc @@ -1194,6 +1194,8 @@ MappingQ1::transform_covariant ( } +#if deal_II_dimension == 1 + template<> void MappingQ1<1,2>::transform_covariant ( @@ -1221,6 +1223,10 @@ MappingQ1<1,2>::transform_covariant ( } } +#endif + +#if deal_II_dimension == 2 + template<> void MappingQ1<2,3>::transform_covariant ( @@ -1249,6 +1255,9 @@ MappingQ1<2,3>::transform_covariant ( } } +#endif + + template void MappingQ1::transform_covariant ( @@ -1270,6 +1279,8 @@ MappingQ1::transform_covariant ( contract (output[i], input[i+offset], data.covariant[i]); } +#if deal_II_dimension == 1 + template <> void MappingQ1<1, 2>::transform_covariant ( @@ -1281,6 +1292,10 @@ MappingQ1<1, 2>::transform_covariant ( Assert(false, ExcNotImplemented()); } +#endif + +#if deal_II_dimension == 2 + template <> void MappingQ1<2, 3>::transform_covariant ( @@ -1292,6 +1307,8 @@ MappingQ1<2, 3>::transform_covariant ( Assert(false, ExcNotImplemented()); } +#endif + template void @@ -1423,6 +1440,9 @@ transform_real_to_unit_cell (const typename Triangulation::cell_it return p_unit; } + +#if deal_II_dimension == 1 + template<> void MappingQ1<1,2>:: @@ -1434,6 +1454,11 @@ transform_real_to_unit_cell_internal { Assert(false, ExcNotImplemented()); } + +#endif + +#if deal_II_dimension == 2 + template<> void MappingQ1<2,3>:: @@ -1446,6 +1471,8 @@ transform_real_to_unit_cell_internal Assert(false, ExcNotImplemented()); } +#endif + template void -- 2.39.5