]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid compiler message in 1d.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 27 Sep 2000 15:56:35 +0000 (15:56 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 27 Sep 2000 15:56:35 +0000 (15:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@3354 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_reordering.cc

index 5cfc34202d43b8cb6a0781c1ca6d1107920263ba..f448f5f06c6692d86f0b019acf3122254955f0a1 100644 (file)
@@ -784,6 +784,8 @@ void GridReordering<dim>::reorder_cells (vector<CellData<dim> > &original_cells)
 
 
 
+#if deal_II_dimension == 1
+
 template <>
 void GridReordering<1>::reorder_cells (vector<CellData<1> > &)
 {
@@ -791,13 +793,16 @@ void GridReordering<1>::reorder_cells (vector<CellData<1> > &)
                                   // in 1d...
 };
 
+#endif
 
 
 
 // explicit instantiations. only require the main function, it should
-// then claim whatever templates it needs
+// then claim whatever templates it needs. note that in 1d, the
+// respective function is already specialized
+#if deal_II_dimension >= 2
 template
 void
 GridReordering<deal_II_dimension>::
 reorder_cells (vector<CellData<deal_II_dimension> > &);
-
+#endif

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.