Skip to content
Snippets Groups Projects
Commit b51acc90 authored by Dennis Gläser's avatar Dennis Gläser Committed by Ned Coltman
Browse files

[deprecated][effectivediffusion] improve warning message

parent d02c27dc
No related branches found
No related tags found
1 merge request!1684Improve effective laws
...@@ -117,6 +117,10 @@ auto neumann(const P& problem, ...@@ -117,6 +117,10 @@ auto neumann(const P& problem,
return problem.neumann(element, fvGeometry, elemVolVars, elemFluxVarsCache, scvf); return problem.neumann(element, fvGeometry, elemVolVars, elemFluxVarsCache, scvf);
} }
////////////////////////////////////////////
// Remove the following after Release 3.2 //
////////////////////////////////////////////
/////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////
// Deprecation warnings for effective diffusion coefficients // // Deprecation warnings for effective diffusion coefficients //
/////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////
...@@ -125,7 +129,9 @@ template<class VolumeVariables> constexpr bool hasEffDiffCoeff = decltype(hasEff ...@@ -125,7 +129,9 @@ template<class VolumeVariables> constexpr bool hasEffDiffCoeff = decltype(hasEff
template<class EDL, class VV, template<class EDL, class VV,
typename std::enable_if_t<!hasEffDiffCoeff<VV>, int> = 0> 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())) decltype(EDL::effectiveDiffusionCoefficient(std::declval<VV>(), int(), int(), int()))
effectiveDiffusionCoefficient(const VV& volVars, int phaseIdx, int compIIdx, int compJIdx) effectiveDiffusionCoefficient(const VV& volVars, int phaseIdx, int compIIdx, int compJIdx)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment