From 1b2e01c211d6f798ee0497d9d1719f3ebc60019a Mon Sep 17 00:00:00 2001 From: Karl Ljungkvist Date: Wed, 23 Nov 2016 14:33:51 +0100 Subject: [PATCH] remove invalid instantiations --- include/deal.II/grid/tria.h | 10 ---------- source/grid/tria.cc | 33 --------------------------------- 2 files changed, 43 deletions(-) diff --git a/include/deal.II/grid/tria.h b/include/deal.II/grid/tria.h index 421ff17e86..9ba7656484 100644 --- a/include/deal.II/grid/tria.h +++ b/include/deal.II/grid/tria.h @@ -3681,16 +3681,6 @@ template <> unsigned int Triangulation<1,3>::n_active_quads () const; template <> unsigned int Triangulation<1,3>::max_adjacent_cells () const; -// ------------------------------------------------------------------- -// Explicit invalid things... -template <> -const Manifold<2,1> &Triangulation<2, 1>::get_manifold(const types::manifold_id) const; -template <> -const Manifold<3,1> &Triangulation<3, 1>::get_manifold(const types::manifold_id) const; -template <> -const Manifold<3,2> &Triangulation<3, 2>::get_manifold(const types::manifold_id) const; - - #endif // DOXYGEN DEAL_II_NAMESPACE_CLOSE diff --git a/source/grid/tria.cc b/source/grid/tria.cc index 35d0810de9..c3800c2b8c 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -13586,39 +13586,6 @@ Triangulation::DistortedCellList::~DistortedCellList () DEAL_II_N } -template <> -const Manifold<2,1> &Triangulation<2, 1>::get_manifold(const types::manifold_id) const -{ - Assert(false, ExcImpossibleInDim(1)); - // We cannot simply create a temporary Manifold<2,1> because it is not - // instantiated and would lead to unresolved symbols. Given the fact that - // this function should be unreachable anyaway, just dereference a - // nullptr: - return *static_cast*>(0); -} - -template <> -const Manifold<3,1> &Triangulation<3, 1>::get_manifold(const types::manifold_id) const -{ - Assert(false, ExcImpossibleInDim(1)); - // We cannot simply create a temporary Manifold<2,1> because it is not - // instantiated and would lead to unresolved symbols. Given the fact that - // this function should be unreachable anyaway, just dereference a - // nullptr: - return *static_cast*>(0); -} - -template <> -const Manifold<3,2> &Triangulation<3, 2>::get_manifold(const types::manifold_id) const -{ - Assert(false, ExcImpossibleInDim(2)); - // We cannot simply create a temporary Manifold<2,1> because it is not - // instantiated and would lead to unresolved symbols. Given the fact that - // this function should be unreachable anyaway, just dereference a - // nullptr: - return *static_cast*>(0); -} - // explicit instantiations #include "tria.inst" -- 2.39.5