From e21ea024a5fcb16dc2604e1a24890badbe233514 Mon Sep 17 00:00:00 2001 From: Timo Koch <timo.koch@iws.uni-stuttgart.de> Date: Mon, 30 Mar 2020 18:32:49 +0200 Subject: [PATCH] [efftoabs][2p] Remove underscore from public member function names --- .../fluidmatrixinteractions/2p/efftoabslaw.hh | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/dumux/material/fluidmatrixinteractions/2p/efftoabslaw.hh b/dumux/material/fluidmatrixinteractions/2p/efftoabslaw.hh index 3877b38e94..2afe1fb7ab 100644 --- a/dumux/material/fluidmatrixinteractions/2p/efftoabslaw.hh +++ b/dumux/material/fluidmatrixinteractions/2p/efftoabslaw.hh @@ -243,10 +243,12 @@ public: * and then the params container is constructed accordingly. Afterwards the values are set there, too. * \return Absolute saturation of the non-wetting phase. */ + static Scalar sweToSw(const Params ¶ms, Scalar swe) + { return swe*(1. - params.swr() - params.snr()) + params.swr(); } + + [[deprecated("Will be removed after 3.2. Use sweToSw (without underscore suffix) instead!")]] static Scalar sweToSw_(const Params ¶ms, Scalar swe) - { - return swe*(1. - params.swr() - params.snr()) + params.swr(); - } + { return sweToSw(params, swe); } /*! * \brief Derivative of the effective saturation w.r.t. the absolute saturation. @@ -256,9 +258,13 @@ public: * and then the params container is constructed accordingly. Afterwards the values are set there, too. * \return Derivative of the effective saturation w.r.t. the absolute saturation. */ - static Scalar dswe_dsw_(const Params ¶ms) + static Scalar dswe_dsw(const Params ¶ms) { return 1.0/(1. - params.swr() - params.snr()); } + [[deprecated("Will be removed after 3.2. Use dswe_dsw (without underscore suffix) instead!")]] + static Scalar dswe_dsw_(const Params ¶ms) + { return dswe_dsw(params); } + /*! * \brief Derivative of the absolute saturation w.r.t. the effective saturation. * @@ -267,8 +273,12 @@ public: * and then the params container is constructed accordingly. Afterwards the values are set there, too. * \return Derivative of the absolute saturation w.r.t. the effective saturation. */ - static Scalar dsw_dswe_(const Params ¶ms) + static Scalar dsw_dswe(const Params ¶ms) { return 1. - params.swr() - params.snr(); } + + [[deprecated("Will be removed after 3.2. Use dsw_dswe (without underscore suffix) instead!")]] + static Scalar dsw_dswe_(const Params ¶ms) + { return dsw_dswe(params); } }; } // end namespace Dumux -- GitLab