From 8e7eb37c54d8fe5e089e9ad44d15c2df9522c906 Mon Sep 17 00:00:00 2001 From: DennisGlaeser <dennis.glaeser@iws.uni-stuttgart.de> Date: Tue, 30 Jan 2018 17:48:05 +0100 Subject: [PATCH] [mpfa-o][iv] make numIVsAtVertex function constexpr --- .../cellcentered/mpfa/omethod/interactionvolume.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dumux/discretization/cellcentered/mpfa/omethod/interactionvolume.hh b/dumux/discretization/cellcentered/mpfa/omethod/interactionvolume.hh index be2e526ac1..3091b94868 100644 --- a/dumux/discretization/cellcentered/mpfa/omethod/interactionvolume.hh +++ b/dumux/discretization/cellcentered/mpfa/omethod/interactionvolume.hh @@ -295,7 +295,8 @@ public: //! returns the number of interaction volumes living around a vertex //! the mpfa-o scheme always constructs one iv per vertex template< class NodalIndexSet > - static std::size_t numInteractionVolumesAtVertex(const NodalIndexSet& nodalIndexSet) { return 1; } + static constexpr std::size_t numInteractionVolumesAtVertex(const NodalIndexSet& nodalIndexSet) + { return 1; } //! adds the iv index sets living around a vertex to a given container //! and stores the the corresponding index in a map for each scvf -- GitLab