Skip to content
Snippets Groups Projects
Commit eeb233f1 authored by Martin Nolte's avatar Martin Nolte
Browse files

remove unused helper Topology

parent 22d47ac1
No related branches found
No related tags found
1 merge request!34remove generic geometry subdirectory
......@@ -263,49 +263,6 @@ namespace Dune
// Topology
// --------
template< unsigned int id, unsigned int dim >
class Topology
{
static const unsigned int dimension = dim;
static_assert((id < (1 << dimension)), "id too large.");
static const bool isPrism = ((id >> (dimension-1)) != 0);
typedef typename Topology< (id & ~(1 << (dimension-1))), dimension-1 >::type
BaseTopology;
template< bool >
struct Prism
{
typedef GenericGeometry :: Prism< BaseTopology > type;
};
template< bool >
struct Pyramid
{
typedef GenericGeometry :: Pyramid< BaseTopology > type;
};
public:
typedef typename std::conditional< isPrism, Prism<true>, Pyramid<false> >::type::type type;
};
template< unsigned int id >
class Topology< id, 0 >
{
static const unsigned int dimension = 0;
static_assert((id < (1 << dimension)), "id too large.");
public:
typedef Point type;
};
// IfTopology
// ----------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment