]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove invalid instantiations
authorKarl Ljungkvist <k.ljungkvist@gmail.com>
Wed, 23 Nov 2016 13:33:51 +0000 (14:33 +0100)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 26 Nov 2016 03:11:32 +0000 (20:11 -0700)
include/deal.II/grid/tria.h
source/grid/tria.cc

index 421ff17e86f931daa43c33999558b7c286950ce6..9ba7656484ee47d35411807cd1962a41fbd24ea1 100644 (file)
@@ -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
index 35d0810de9cbbd1833842a518ea3acb0391db8dc..c3800c2b8c93e02e4a09b53b9b59a389c3dc68c9 100644 (file)
@@ -13586,39 +13586,6 @@ Triangulation<dim, spacedim>::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<FlatManifold<2,1>*>(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<FlatManifold<3,1>*>(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<FlatManifold<3,2>*>(0);
-}
-
 // explicit instantiations
 #include "tria.inst"
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.