Commit 9785bec8 authored by Timo Koch's avatar Timo Koch
Browse files

[compositional] Specialize NumEqVector for SwitchablePriVars

parent ccef57f3
......@@ -26,6 +26,7 @@
#define DUMUX_SWITCHABLE_PRIMARY_VARIABLES_HH
#include <dune/common/exceptions.hh>
#include <dumux/common/numeqvector.hh>
namespace Dumux {
......@@ -73,6 +74,17 @@ private:
bool stateIsSet_{false};
};
/*!
* \ingroup PorousmediumflowModels
* \brief The corresponding NumEqVectorTraits for the primary variables with switchable state
*/
template<class PrimaryVariables, class StateType>
struct NumEqVectorTraits<SwitchablePrimaryVariables<PrimaryVariables, StateType>>
{
static constexpr std::size_t numEq = PrimaryVariables::size();
using type = PrimaryVariables;
};
} // end namespace Dumux
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment