From ed5e26d21aa3770ec262328e1e29f18449ebb0a8 Mon Sep 17 00:00:00 2001 From: Timo Koch Date: Fri, 22 Apr 2022 18:48:55 +0000 Subject: [PATCH] [test][co2tablereader] Constexpr function cannot throw non-literal type exception --- test/porousmediumflow/co2/co2tablereader.hh | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/test/porousmediumflow/co2/co2tablereader.hh b/test/porousmediumflow/co2/co2tablereader.hh index 76633b45d0..0e16eaeca7 100644 --- a/test/porousmediumflow/co2/co2tablereader.hh +++ b/test/porousmediumflow/co2/co2tablereader.hh @@ -100,17 +100,6 @@ public: constexpr Scalar val(int i, int j) const { -#if !defined NDEBUG - if (i < 0 || i >= Traits::numTempSteps || - j < 0 || j >= Traits::numPressSteps) { - DUNE_THROW(NumericalProblem, - "Attempt to access element (" - << i << ", " << j - << ") on a " << Traits::name << " table of size (" - << Traits::numTempSteps << ", " << Traits::numPressSteps - << ")\n"); - } -#endif return Traits::vals[i][j]; } -- GitLab