Skip to content
Snippets Groups Projects
Commit 5624f57e authored by Timo Koch's avatar Timo Koch
Browse files

[fix] Exception is not allowed in constepxr function

parent eeb23606
No related branches found
No related tags found
1 merge request!1383[fix] Exception is not allowed in constepxr function
......@@ -183,7 +183,7 @@ public:
* \brief Calculates the number of scvfs in a given element geometry type.
* \param gt The element geometry type
*/
static constexpr std::size_t getNumLocalScvfs(const Dune::GeometryType& gt)
static std::size_t getNumLocalScvfs(const Dune::GeometryType& gt)
{
if (gt == Dune::GeometryTypes::triangle)
return 6;
......@@ -479,7 +479,7 @@ public:
*
* \param gt The element geometry type
*/
static constexpr std::size_t getNumLocalScvfs(const Dune::GeometryType& gt)
static std::size_t getNumLocalScvfs(const Dune::GeometryType& gt)
{
if (gt == Dune::GeometryTypes::tetrahedron)
return 12;
......
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