Skip to content
Snippets Groups Projects
Commit 38f93608 authored by Ned Coltman's avatar Ned Coltman
Browse files

[deprecated] Add constexpr for effective laws deprecation

parent 7e687785
No related branches found
No related tags found
1 merge request!1684Improve effective laws
...@@ -46,7 +46,6 @@ namespace Deprecated { ...@@ -46,7 +46,6 @@ namespace Deprecated {
///// REMOVE THIS AFTER RELEASE 3.1 ///// REMOVE THIS AFTER RELEASE 3.1
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
// support old interface of the effective thermal conductivity laws // support old interface of the effective thermal conductivity laws
template<class VV> template<class VV>
struct HasNewEffThermCondIF struct HasNewEffThermCondIF
...@@ -118,6 +117,11 @@ auto neumann(const P& problem, ...@@ -118,6 +117,11 @@ auto neumann(const P& problem,
return problem.neumann(element, fvGeometry, elemVolVars, elemFluxVarsCache, scvf); return problem.neumann(element, fvGeometry, elemVolVars, elemFluxVarsCache, scvf);
} }
constexpr auto hasEffTherCondImpl = Dumux::isValid([](auto&& v) -> decltype(v.effectiveThermalConductivity()){return 0;});
template<class VolumeVariables> constexpr bool hasEffTherCond = decltype(hasEffTherCondImpl(std::declval<VolumeVariables>())){};
constexpr auto hasEffDiffCoeffImpl = Dumux::isValid([](auto&& v) -> decltype(v.effectiveDiffusionCoefficient(0,0,0)){return 0;});
template<class VolumeVariables> constexpr bool hasEffDiffCoeff = decltype(hasEffDiffCoeffImpl(std::declval<VolumeVariables>())){};
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
......
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