From 0ddeaa3084385e3ac28c4e12688873ff59631729 Mon Sep 17 00:00:00 2001 From: Andreas Lauser <and@poware.org> Date: Wed, 11 Jan 2012 10:48:07 +0000 Subject: [PATCH] tabulated component: disable range check for the "intelligent" the tabulation, alphas can be well out of range [0, 1] git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@7339 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- dumux/material/components/tabulatedcomponent.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dumux/material/components/tabulatedcomponent.hh b/dumux/material/components/tabulatedcomponent.hh index e3aeb048df..0ddd6781bc 100644 --- a/dumux/material/components/tabulatedcomponent.hh +++ b/dumux/material/components/tabulatedcomponent.hh @@ -546,8 +546,7 @@ private: alphaP1 -= iP1; alphaP2 -= iP2; - -#if !defined NDEBUG +#if 0 && !defined NDEBUG if(!(0 <= alphaT && alphaT <= 1.0)) DUNE_THROW(NumericalProblem, "Temperature out of range: " << "T=" << T << " range: [" << tempMin_ << ", " << tempMax_ << "]"); @@ -586,7 +585,7 @@ private: alphaP1 -= iP1; alphaP2 -= iP2; -#if !defined NDEBUG +#if 0 && !defined NDEBUG if(!(0 <= alphaT && alphaT <= 1.0)) DUNE_THROW(NumericalProblem, "Temperature out of range: " << "T=" << T << " range: [" << tempMin_ << ", " << tempMax_ << "]"); -- GitLab