From 5624f57e0e91e1e2271728ccf2b3a8f804e9ba39 Mon Sep 17 00:00:00 2001 From: Timo Koch Date: Tue, 4 Dec 2018 21:49:34 +0100 Subject: [PATCH] [fix] Exception is not allowed in constepxr function --- dumux/discretization/cellcentered/mpfa/helper.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dumux/discretization/cellcentered/mpfa/helper.hh b/dumux/discretization/cellcentered/mpfa/helper.hh index cc0ea3286b..5cd7b1a6be 100644 --- a/dumux/discretization/cellcentered/mpfa/helper.hh +++ b/dumux/discretization/cellcentered/mpfa/helper.hh @@ -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; -- GitLab