From: Wolfgang Bangerth Date: Wed, 27 Sep 2000 15:56:35 +0000 (+0000) Subject: Avoid compiler message in 1d. X-Git-Tag: v8.0.0~20075 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2e8a13dec443a892fa778d60824b1491f017206;p=dealii.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