Commit a7b9bb7f authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed corner-cases in mesh layers

parent a73b6f6f
Loading
Loading
Loading
Loading
+38 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ public:
   }

   template< int Subdimensions >
   constexpr typename SubentityTraits< Subdimensions >::LocalIndexType getNumberOfSubentities() const
   static constexpr typename SubentityTraits< Subdimensions >::LocalIndexType getNumberOfSubentities()
   {
      return SubentityTraits< Subdimensions >::count;
   }
@@ -509,6 +509,43 @@ class MeshSubentityAccessLayer< MeshConfig,
                                false,
                                false >
{
protected:
   /***
    * Necessary because of 'using BaseType::...;' in the derived classes
    */
   template< typename SubentityAccessorType >
   void bindSubentitiesStorageNetwork( DimensionsTag,
                                       const SubentityAccessorType& storage ) {}
   void getNumberOfSubentities( DimensionsTag ) const {}
   template< typename LocalIndexType >
   void getSubentityIndex( DimensionsTag,
                           const LocalIndexType localIndex ) const {}
   template< typename LocalIndexType, typename GlobalIndexType >
   void setSubentityIndex( DimensionsTag,
                           const LocalIndexType& localIndex,
                           const GlobalIndexType& globalIndex ) {}
   void getSubentityIndices() {}

   template< typename LocalIndexType >
   void getSubentityOrientation( DimensionsTag, LocalIndexType index) const {}
	void subentityOrientationsArray( DimensionsTag ) {}

   bool save( File& file ) const
   {
      return true;
   }

   bool load( File& file )
   {
      return true;
   }

   bool operator==( const MeshSubentityAccessLayer& other ) const
   {
      return true;
   }

   void print( std::ostream& str ) const {}
};

} // namespace Meshes
+1 −0
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@ public:
   typename MeshTraitsType::template SuperentityTraits< EntityTopology, Superdimensions >::StorageNetworkType&
   getSuperentityStorageNetwork( MeshDimensionsTag< EntityTopology::dimensions > )
   {
      static_assert( EntityTopology::dimensions < Superdimensions, "Invalid combination of Dimensions and Superdimensions." );
      return BaseType::getSuperentityStorageNetwork( MeshDimensionsTag< Superdimensions >() );
   }
};