From: wolf Date: Wed, 27 Sep 2000 15:56:35 +0000 (+0000) Subject: Avoid compiler message in 1d. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d57ed59ceb0d901c6a8e6db00418f6140ac21739;p=dealii-svn.git Avoid compiler message in 1d. git-svn-id: https://svn.dealii.org/trunk@3354 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/grid/grid_reordering.cc b/deal.II/deal.II/source/grid/grid_reordering.cc index 5cfc34202d..f448f5f06c 100644 --- a/deal.II/deal.II/source/grid/grid_reordering.cc +++ b/deal.II/deal.II/source/grid/grid_reordering.cc @@ -784,6 +784,8 @@ void GridReordering::reorder_cells (vector > &original_cells) +#if deal_II_dimension == 1 + template <> void GridReordering<1>::reorder_cells (vector > &) { @@ -791,13 +793,16 @@ void GridReordering<1>::reorder_cells (vector > &) // 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:: reorder_cells (vector > &); - +#endif