]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Guard more explicit specializations to avoid multiple definitions.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 13 Dec 2008 17:15:31 +0000 (17:15 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 13 Dec 2008 17:15:31 +0000 (17:15 +0000)
git-svn-id: https://svn.dealii.org/trunk@17927 0785d39b-7218-0410-832d-ea1e28bc413d

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

index e4fb0206ae4b43f7cc240fbaffaebcff56d88294..821d2e34296880053b429f8c6f10782e5a095e82 100644 (file)
@@ -1194,6 +1194,8 @@ MappingQ1<dim,spacedim>::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 <int dim, int spacedim>
 void
 MappingQ1<dim, spacedim>::transform_covariant (
@@ -1270,6 +1279,8 @@ MappingQ1<dim, spacedim>::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<int dim, int spacedim>
 void
@@ -1423,6 +1440,9 @@ transform_real_to_unit_cell (const typename Triangulation<dim,spacedim>::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<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.