From b51acc90c8b9d2361ff941b7742f10b5bde2b9ff Mon Sep 17 00:00:00 2001 From: "Dennis.Glaeser" <dennis.glaeser@iws.uni-stuttgart.de> Date: Wed, 4 Mar 2020 15:10:41 +0100 Subject: [PATCH] [deprecated][effectivediffusion] improve warning message --- dumux/common/deprecated.hh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dumux/common/deprecated.hh b/dumux/common/deprecated.hh index 6d1f2e9679..3dca02be67 100644 --- a/dumux/common/deprecated.hh +++ b/dumux/common/deprecated.hh @@ -117,6 +117,10 @@ auto neumann(const P& problem, return problem.neumann(element, fvGeometry, elemVolVars, elemFluxVarsCache, scvf); } +//////////////////////////////////////////// +// Remove the following after Release 3.2 // +//////////////////////////////////////////// + /////////////////////////////////////////////////////////////// // Deprecation warnings for effective diffusion coefficients // /////////////////////////////////////////////////////////////// @@ -125,7 +129,9 @@ template<class VolumeVariables> constexpr bool hasEffDiffCoeff = decltype(hasEff template<class EDL, class VV, typename std::enable_if_t<!hasEffDiffCoeff<VV>, int> = 0> -[[deprecated("The volume variables class used does not have an effectiveDiffusionCoefficient(phaseIdx, compIIdx, compJIdx) function. This will become mandatory after the 3.2 release!")]] +[[deprecated("The volume variables class used does not have an effectiveDiffusionCoefficient(phaseIdx, compIIdx, compJIdx) function. " + "This will become mandatory after the 3.2 release! See e.g. the files /dumux/porousmediumflow/2p2c/volumevariables.hh " + "and /dumux/porousmediumflow/2p2c/properties.hh to see how this can be realized.")]] decltype(EDL::effectiveDiffusionCoefficient(std::declval<VV>(), int(), int(), int())) effectiveDiffusionCoefficient(const VV& volVars, int phaseIdx, int compIIdx, int compJIdx) { -- GitLab