From cba28c74b9cb4dc9258d68af7841438242f877c8 Mon Sep 17 00:00:00 2001 From: Christoph Grueninger <christoph.grueninger@iws.uni-stuttgart.de> Date: Tue, 21 May 2013 12:06:58 +0000 Subject: [PATCH] Fix headercheck for evalcflflux*.hh by including header. Use calculated porosity (found by a unused warning) (partly reviewed by bernd, thanks for helping with the fix) git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@10716 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- dumux/decoupled/2p/transport/fv/evalcflfluxcoats.hh | 1 + dumux/decoupled/2p/transport/fv/evalcflfluxdefault.hh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dumux/decoupled/2p/transport/fv/evalcflfluxcoats.hh b/dumux/decoupled/2p/transport/fv/evalcflfluxcoats.hh index aa959e4b24..09ac8a3dc6 100644 --- a/dumux/decoupled/2p/transport/fv/evalcflfluxcoats.hh +++ b/dumux/decoupled/2p/transport/fv/evalcflfluxcoats.hh @@ -24,6 +24,7 @@ * @brief CFL-flux-function to evaluate a CFL-Condition after Coats 2003 */ +#include <dumux/decoupled/common/impetproperties.hh> #include "evalcflflux.hh" namespace Dumux diff --git a/dumux/decoupled/2p/transport/fv/evalcflfluxdefault.hh b/dumux/decoupled/2p/transport/fv/evalcflfluxdefault.hh index 195c3ee423..c6a5d3a06a 100644 --- a/dumux/decoupled/2p/transport/fv/evalcflfluxdefault.hh +++ b/dumux/decoupled/2p/transport/fv/evalcflfluxdefault.hh @@ -24,6 +24,7 @@ * @brief Fluxes to evaluate a CFL-Condition */ +#include <dumux/decoupled/common/impetproperties.hh> #include "evalcflflux.hh" namespace Dumux @@ -106,8 +107,7 @@ public: { Scalar porosity = std::max(problem_.spatialParams().porosity(element), porosityThreshold_); - return (getCFLFluxFunction(element) * problem_.spatialParams().porosity(element) * element.geometry().volume()); - + return (getCFLFluxFunction(element) * porosity * element.geometry().volume()); } //! resets the accumulated CFL-fluxes to zero -- GitLab