From ae7aced67be86def84746a2c39699c69cdd98556 Mon Sep 17 00:00:00 2001 From: Timo Koch <timo.koch@iws.uni-stuttgart.de> Date: Sat, 13 Jan 2018 16:36:52 +0100 Subject: [PATCH] [cc] Make maxNumNeighborsPerScvf constexpr --- dumux/discretization/cellcentered/mpfa/properties.hh | 2 +- dumux/discretization/cellcentered/tpfa/properties.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dumux/discretization/cellcentered/mpfa/properties.hh b/dumux/discretization/cellcentered/mpfa/properties.hh index 3a20ad8844..ce805e818a 100644 --- a/dumux/discretization/cellcentered/mpfa/properties.hh +++ b/dumux/discretization/cellcentered/mpfa/properties.hh @@ -81,7 +81,7 @@ private: public: // Per default, we allow for 8 neighbors on network/surface grids - static const std::size_t value = dim < dimWorld ? 9 : 2; + static constexpr std::size_t value = dim < dimWorld ? 9 : 2; }; //! Set the index set type used on the dual grid nodes diff --git a/dumux/discretization/cellcentered/tpfa/properties.hh b/dumux/discretization/cellcentered/tpfa/properties.hh index 3710cf0fa7..c9262c4b14 100644 --- a/dumux/discretization/cellcentered/tpfa/properties.hh +++ b/dumux/discretization/cellcentered/tpfa/properties.hh @@ -92,7 +92,7 @@ private: public: // Per default, we allow for 8 neighbors on network/surface grids - static const std::size_t value = dim < dimWorld ? 9 : 2; + static constexpr std::size_t value = dim < dimWorld ? 9 : 2; }; //! The sub control volume -- GitLab