From 00a19dcb717dfae42c000290e84b946116aa9822 Mon Sep 17 00:00:00 2001 From: Timo Koch <timokoch@uio.no> Date: Tue, 4 Jun 2024 10:45:08 +0200 Subject: [PATCH] [test][1d3d] Use smoothMin from common/math.hh --- .../embedded/1d3d/root_soil_benchmark/problem_root.hh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/multidomain/embedded/1d3d/root_soil_benchmark/problem_root.hh b/test/multidomain/embedded/1d3d/root_soil_benchmark/problem_root.hh index b98842ba76..246d353ae5 100644 --- a/test/multidomain/embedded/1d3d/root_soil_benchmark/problem_root.hh +++ b/test/multidomain/embedded/1d3d/root_soil_benchmark/problem_root.hh @@ -12,6 +12,7 @@ #ifndef DUMUX_TEST_ROOT_SOIL_BENCHMARK_ROOT_PROBLEM_HH #define DUMUX_TEST_ROOT_SOIL_BENCHMARK_ROOT_PROBLEM_HH +#include <dumux/common/math.hh> #include <dumux/common/parameters.hh> #include <dumux/common/properties.hh> #include <dumux/common/boundarytypes.hh> @@ -125,14 +126,6 @@ public: return values; } - //! Smooth minimum function - Scalar smoothMin(const Scalar a, const Scalar b, const Scalar k) const - { - using std::max; using std::min; using std::abs; - const auto h = max(k-abs(a-b), 0.0 )/k; - return min(a, b) - h*h*h*k*(1.0/6.0); - } - //! Compute potential transpiration rate in kg/s Scalar potentialTranspirationRate() const { -- GitLab