Loading src/TNL/Meshes/MeshDetails/MeshEntity_impl.h +1 −45 Original line number Diff line number Diff line Loading @@ -134,32 +134,6 @@ getSubentityIndex( const LocalIndexType localIndex) const localIndex ); } template< typename MeshConfig, typename EntityTopology > template< int Subdimensions > typename MeshEntity< MeshConfig, EntityTopology >::template SubentityTraits< Subdimensions >::AccessArrayType& MeshEntity< MeshConfig, EntityTopology >:: getSubentityIndices() { static_assert( SubentityTraits< Subdimensions >::storageEnabled, "You try to get subentities which are not configured for storage." ); typedef MeshSubentityStorageLayers< MeshConfig, EntityTopology > SubentityBaseType; // FIXME: method does not exist return SubentityBaseType::getSubentityIndices( MeshDimensionsTag< Subdimensions >() ); } template< typename MeshConfig, typename EntityTopology > template< int Subdimensions > const typename MeshEntity< MeshConfig, EntityTopology >::template SubentityTraits< Subdimensions >::AccessArrayType& MeshEntity< MeshConfig, EntityTopology >:: getSubentityIndices() const { static_assert( SubentityTraits< Subdimensions >::storageEnabled, "You try to set subentities which are not configured for storage." ); typedef MeshSubentityStorageLayers< MeshConfig, EntityTopology > SubentityBaseType; // FIXME: method does not exist return SubentityBaseType::getSubentityIndices( MeshDimensionsTag< Subdimensions >() ); } template< typename MeshConfig, typename EntityTopology > constexpr typename MeshEntity< MeshConfig, EntityTopology >::LocalIndexType Loading @@ -180,25 +154,7 @@ getVertexIndex( const LocalIndexType localIndex ) const template< typename MeshConfig, typename EntityTopology > typename MeshEntity< MeshConfig, EntityTopology >::template SubentityTraits< 0 >::AccessArrayType& MeshEntity< MeshConfig, EntityTopology >:: getVerticesIndices() { return this->getSubentityIndices< 0 >(); } template< typename MeshConfig, typename EntityTopology > const typename MeshEntity< MeshConfig, EntityTopology >::template SubentityTraits< 0 >::AccessArrayType& MeshEntity< MeshConfig, EntityTopology >:: getVerticesIndices() const { return this->getSubentityIndices< 0 >(); } template< typename MeshConfig, typename EntityTopology > template< int Dimension > template< int Dimensions > typename MeshEntity< MeshConfig, EntityTopology >::IdPermutationArrayAccessorType MeshEntity< MeshConfig, EntityTopology >:: subentityOrientation( LocalIndexType index ) const Loading src/TNL/Meshes/MeshDetails/initializer/MeshInitializer.h +3 −3 Original line number Diff line number Diff line Loading @@ -238,15 +238,15 @@ class MeshInitializerLayer< MeshConfig, i < this->getMesh().getCell( cell ).getNumberOfVertices(); i++ ) { if( this->getMesh().getCell( cell ).getVerticesIndices()[ i ] == - 1 ) if( this->getMesh().getCell( cell ).getVertexIndex( i ) == - 1 ) { std::cerr << "The cell number " << cell << " does not have properly set vertex index number " << i << "." << std::endl; return false; } if( this->getMesh().getCell( cell ).getVerticesIndices()[ i ] >= numberOfVertices ) if( this->getMesh().getCell( cell ).getVertexIndex( i ) >= numberOfVertices ) { std::cerr << "The cell number " << cell << " does not have properly set vertex index number " << i << ". The index " << this->getMesh().getCell( cell ).getVerticesIndices()[ i ] << ". The index " << this->getMesh().getCell( cell ).getVertexIndex( i ) << "is higher than the number of all vertices ( " << numberOfVertices << " )." << std::endl; return false; Loading src/TNL/Meshes/MeshEntity.h +1 −11 Original line number Diff line number Diff line Loading @@ -79,12 +79,6 @@ class MeshEntity template< int Subdimensions > GlobalIndexType getSubentityIndex( const LocalIndexType localIndex) const; template< int Subdimensions > typename SubentityTraits< Subdimensions >::AccessArrayType& getSubentityIndices(); template< int Subdimensions > const typename SubentityTraits< Subdimensions >::AccessArrayType& getSubentityIndices() const; /**** * Superentities */ Loading @@ -98,11 +92,7 @@ class MeshEntity GlobalIndexType getVertexIndex( const LocalIndexType localIndex ) const; typename SubentityTraits< 0 >::AccessArrayType& getVerticesIndices(); const typename SubentityTraits< 0 >::AccessArrayType& getVerticesIndices() const; template< int Dimension > template< int Dimensions > IdPermutationArrayAccessorType subentityOrientation( LocalIndexType index ) const; protected: Loading Loading
src/TNL/Meshes/MeshDetails/MeshEntity_impl.h +1 −45 Original line number Diff line number Diff line Loading @@ -134,32 +134,6 @@ getSubentityIndex( const LocalIndexType localIndex) const localIndex ); } template< typename MeshConfig, typename EntityTopology > template< int Subdimensions > typename MeshEntity< MeshConfig, EntityTopology >::template SubentityTraits< Subdimensions >::AccessArrayType& MeshEntity< MeshConfig, EntityTopology >:: getSubentityIndices() { static_assert( SubentityTraits< Subdimensions >::storageEnabled, "You try to get subentities which are not configured for storage." ); typedef MeshSubentityStorageLayers< MeshConfig, EntityTopology > SubentityBaseType; // FIXME: method does not exist return SubentityBaseType::getSubentityIndices( MeshDimensionsTag< Subdimensions >() ); } template< typename MeshConfig, typename EntityTopology > template< int Subdimensions > const typename MeshEntity< MeshConfig, EntityTopology >::template SubentityTraits< Subdimensions >::AccessArrayType& MeshEntity< MeshConfig, EntityTopology >:: getSubentityIndices() const { static_assert( SubentityTraits< Subdimensions >::storageEnabled, "You try to set subentities which are not configured for storage." ); typedef MeshSubentityStorageLayers< MeshConfig, EntityTopology > SubentityBaseType; // FIXME: method does not exist return SubentityBaseType::getSubentityIndices( MeshDimensionsTag< Subdimensions >() ); } template< typename MeshConfig, typename EntityTopology > constexpr typename MeshEntity< MeshConfig, EntityTopology >::LocalIndexType Loading @@ -180,25 +154,7 @@ getVertexIndex( const LocalIndexType localIndex ) const template< typename MeshConfig, typename EntityTopology > typename MeshEntity< MeshConfig, EntityTopology >::template SubentityTraits< 0 >::AccessArrayType& MeshEntity< MeshConfig, EntityTopology >:: getVerticesIndices() { return this->getSubentityIndices< 0 >(); } template< typename MeshConfig, typename EntityTopology > const typename MeshEntity< MeshConfig, EntityTopology >::template SubentityTraits< 0 >::AccessArrayType& MeshEntity< MeshConfig, EntityTopology >:: getVerticesIndices() const { return this->getSubentityIndices< 0 >(); } template< typename MeshConfig, typename EntityTopology > template< int Dimension > template< int Dimensions > typename MeshEntity< MeshConfig, EntityTopology >::IdPermutationArrayAccessorType MeshEntity< MeshConfig, EntityTopology >:: subentityOrientation( LocalIndexType index ) const Loading
src/TNL/Meshes/MeshDetails/initializer/MeshInitializer.h +3 −3 Original line number Diff line number Diff line Loading @@ -238,15 +238,15 @@ class MeshInitializerLayer< MeshConfig, i < this->getMesh().getCell( cell ).getNumberOfVertices(); i++ ) { if( this->getMesh().getCell( cell ).getVerticesIndices()[ i ] == - 1 ) if( this->getMesh().getCell( cell ).getVertexIndex( i ) == - 1 ) { std::cerr << "The cell number " << cell << " does not have properly set vertex index number " << i << "." << std::endl; return false; } if( this->getMesh().getCell( cell ).getVerticesIndices()[ i ] >= numberOfVertices ) if( this->getMesh().getCell( cell ).getVertexIndex( i ) >= numberOfVertices ) { std::cerr << "The cell number " << cell << " does not have properly set vertex index number " << i << ". The index " << this->getMesh().getCell( cell ).getVerticesIndices()[ i ] << ". The index " << this->getMesh().getCell( cell ).getVertexIndex( i ) << "is higher than the number of all vertices ( " << numberOfVertices << " )." << std::endl; return false; Loading
src/TNL/Meshes/MeshEntity.h +1 −11 Original line number Diff line number Diff line Loading @@ -79,12 +79,6 @@ class MeshEntity template< int Subdimensions > GlobalIndexType getSubentityIndex( const LocalIndexType localIndex) const; template< int Subdimensions > typename SubentityTraits< Subdimensions >::AccessArrayType& getSubentityIndices(); template< int Subdimensions > const typename SubentityTraits< Subdimensions >::AccessArrayType& getSubentityIndices() const; /**** * Superentities */ Loading @@ -98,11 +92,7 @@ class MeshEntity GlobalIndexType getVertexIndex( const LocalIndexType localIndex ) const; typename SubentityTraits< 0 >::AccessArrayType& getVerticesIndices(); const typename SubentityTraits< 0 >::AccessArrayType& getVerticesIndices() const; template< int Dimension > template< int Dimensions > IdPermutationArrayAccessorType subentityOrientation( LocalIndexType index ) const; protected: Loading