From: Wolfgang Bangerth Date: Fri, 5 Mar 2021 20:04:47 +0000 (+0100) Subject: Add some missing forward declarations. X-Git-Tag: v9.3.0-rc1~367^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a777a8dc2ddfc1773c15f50025e659c5fdb5c00a;p=dealii.git Add some missing forward declarations. These are functions for which explicit specializations exist in the .cc file. The standard says that we need to forward-declare them. In practice, it doesn't matter, but it did matter for an experiment I'm currently running that explicitly makes use of the fact that these functions are specialized. --- diff --git a/include/deal.II/grid/tria.h b/include/deal.II/grid/tria.h index a840993ab3..29a352deea 100644 --- a/include/deal.II/grid/tria.h +++ b/include/deal.II/grid/tria.h @@ -4297,13 +4297,35 @@ unsigned int Triangulation<2, 2>::n_raw_quads(const unsigned int level) const; template <> unsigned int -Triangulation<1, 1>::n_raw_hexs(const unsigned int level) const; +Triangulation<3, 3>::n_raw_quads(const unsigned int level) const; +template <> +unsigned int +Triangulation<3, 3>::n_raw_quads() const; template <> unsigned int Triangulation<1, 1>::n_active_quads(const unsigned int level) const; template <> unsigned int Triangulation<1, 1>::n_active_quads() const; +template <> +unsigned int +Triangulation<1, 1>::n_raw_hexs(const unsigned int level) const; +template <> +unsigned int +Triangulation<3, 3>::n_raw_hexs(const unsigned int level) const; +template <> +unsigned int +Triangulation<3, 3>::n_hexs() const; +template <> +unsigned int +Triangulation<3, 3>::n_active_hexs() const; +template <> +unsigned int +Triangulation<3, 3>::n_active_hexs(const unsigned int) const; +template <> +unsigned int +Triangulation<3, 3>::n_hexs(const unsigned int level) const; + template <> unsigned int Triangulation<1, 1>::max_adjacent_cells() const; @@ -4341,7 +4363,6 @@ Triangulation<1, 2>::max_adjacent_cells() const; // ------------------------------------------------------------------- // -- Explicit specializations for codimension two grids - template <> unsigned int Triangulation<1, 3>::n_quads() const; @@ -4367,6 +4388,16 @@ template <> unsigned int Triangulation<1, 3>::max_adjacent_cells() const; +template <> +bool +Triangulation<1, 1>::prepare_coarsening_and_refinement(); +template <> +bool +Triangulation<1, 2>::prepare_coarsening_and_refinement(); +template <> +bool +Triangulation<1, 3>::prepare_coarsening_and_refinement(); + #endif // DOXYGEN