Skip to content
Snippets Groups Projects
Commit 997a7931 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed GridEntityCrossStencilStorage to avoid a warning with GCC 7.1.1

I'm assuming that the 'GridEntityCrossStencil' enum constant was cast to 1
parent 49c4ec9d
No related branches found
No related tags found
No related merge requests found
...@@ -73,9 +73,7 @@ class GridEntityCrossStencilStorage ...@@ -73,9 +73,7 @@ class GridEntityCrossStencilStorage
constexpr static bool neighbourEntityStorage( const int neighbourEntityDimension ) constexpr static bool neighbourEntityStorage( const int neighbourEntityDimension )
{ {
return ( GridEntity::getEntityDimension() == GridEntity::GridType::getMeshDimension() && return ( GridEntity::getEntityDimension() == GridEntity::GridType::getMeshDimension() &&
neighbourEntityDimension == GridEntity::GridType::getMeshDimension() ) neighbourEntityDimension == GridEntity::GridType::getMeshDimension() );
// FIXME: how is GridEntityCrossStencil cast to int?
* GridEntityCrossStencil;
} }
constexpr static int getStencilSize() constexpr static int getStencilSize()
...@@ -86,4 +84,3 @@ class GridEntityCrossStencilStorage ...@@ -86,4 +84,3 @@ class GridEntityCrossStencilStorage
} // namespace Meshes } // namespace Meshes
} // namespace TNL } // namespace TNL
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment