From d57ed59ceb0d901c6a8e6db00418f6140ac21739 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 27 Sep 2000 15:56:35 +0000 Subject: [PATCH] Avoid compiler message in 1d. git-svn-id: https://svn.dealii.org/trunk@3354 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/grid/grid_reordering.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 -- 2.39.5