From bd2d944a07dcf75394d47c31e7737e12c313eae1 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 9 Aug 2007 22:18:28 +0000 Subject: [PATCH] Forward declare a bunch of functions that have explicit specializations. git-svn-id: https://svn.dealii.org/trunk@14932 0785d39b-7218-0410-832d-ea1e28bc413d --- .../deal.II/include/grid/grid_reordering.h | 20 ++++++++++++++++++- deal.II/deal.II/include/grid/grid_tools.h | 6 ++++++ deal.II/deal.II/include/grid/tria_objects.h | 15 ++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-) diff --git a/deal.II/deal.II/include/grid/grid_reordering.h b/deal.II/deal.II/include/grid/grid_reordering.h index 77f2ca91c9..68a022c4ce 100644 --- a/deal.II/deal.II/include/grid/grid_reordering.h +++ b/deal.II/deal.II/include/grid/grid_reordering.h @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors +// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -697,6 +697,24 @@ class GridReordering }; +// declaration of explicit specializations +template<> +void +GridReordering<2>::reorder_cells (std::vector > &original_cells); + +template<> +void +GridReordering<2>::invert_all_cells_of_negative_grid(const std::vector > &all_vertices, + std::vector > &cells); + +template <> +void +Triangulation<2>::create_triangulation_compatibility (const std::vector > &v, + const std::vector > &c, + const SubCellData &subcelldata); + + + DEAL_II_NAMESPACE_CLOSE #endif diff --git a/deal.II/deal.II/include/grid/grid_tools.h b/deal.II/deal.II/include/grid/grid_tools.h index eb0d953d47..84e1bd7d90 100644 --- a/deal.II/deal.II/include/grid/grid_tools.h +++ b/deal.II/deal.II/include/grid/grid_tools.h @@ -750,6 +750,12 @@ GridTools::get_active_child_cells (const typename DH::cell_iterator& cell) } +// declaration of explicit specializations +template <> +double +GridTools::cell_measure(const std::vector > &all_vertices, + const unsigned int (&vertex_indices) [GeometryInfo<2>::vertices_per_cell]); + diff --git a/deal.II/deal.II/include/grid/tria_objects.h b/deal.II/deal.II/include/grid/tria_objects.h index 88557e6adf..a41f84b4fd 100644 --- a/deal.II/deal.II/include/grid/tria_objects.h +++ b/deal.II/deal.II/include/grid/tria_objects.h @@ -606,6 +606,21 @@ namespace internal } + +// declaration of explicit specializations + + template<> + void + TriaObjects::reserve_space (const unsigned int new_lines); + + template<> + void + TriaObjects::reserve_space (const unsigned int new_quads); + + template<> + void + TriaObjects::monitor_memory (const unsigned int) const; + } } -- 2.39.5