Commit 58f07626 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed mesh traits so that it can be compiled with clang

parent f3f51441
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -57,9 +57,6 @@ class MeshEntityTraits
public:
   static_assert( 0 <= Dimension && Dimension <= MeshConfig::meshDimension, "invalid dimension" );

   static constexpr bool storageEnabled = MeshConfig::entityStorage( Dimension );
   static constexpr bool orientationNeeded = MeshEntityOrientationNeeded< MeshConfig, DimensionTag< Dimension > >::value;

   using GlobalIndexType               = typename MeshConfig::GlobalIndexType;
   using LocalIndexType                = typename MeshConfig::LocalIndexType;
   using EntityTopology                = typename MeshEntityTopology< MeshConfig, DimensionTag< Dimension > >::Topology;
@@ -72,6 +69,8 @@ public:
   using SeedIndexedSetType            = Containers::IndexedSet< typename SeedType::KeyType, GlobalIndexType >;
   using ReferenceOrientationArrayType = Containers::Array< ReferenceOrientationType, Devices::Host, GlobalIndexType >;

   static constexpr bool storageEnabled = MeshConfig::entityStorage( Dimension );
   static constexpr bool orientationNeeded = MeshEntityOrientationNeeded< MeshConfig, DimensionTag< Dimension > >::value;
   static constexpr bool boundaryTagsEnabled = MeshConfig::boundaryTagsStorage( EntityTopology() );
};

+3 −0
Original line number Diff line number Diff line
@@ -26,6 +26,9 @@ namespace Meshes {

template< typename MeshConfig, typename EntityTopology >
class MeshEntityOrientation;
template< typename MeshConfig, typename EntityTopology >
class MeshEntitySeed;
template< typename MeshConfig, int Dimension > class MeshEntityTraits;

template< typename MeshConfig,
          typename EntityTopology,